frankpuppa commented on issue #2229:
URL: https://github.com/apache/plc4x/issues/2229#issuecomment-3351777883
Hello there, just to add a little note about this. In my case, ( I was using
the PlcConnectionManager, not the CachedConnectionManager), the number of
threads was increasing only between disconnections and reconnections, not
between requests.
If you look at my PR #2241 I used the channel Inactive event which is fired
when the device disconnects abruptly (unfortunately I could not test this on a
real physical device and so I had to rely on the modbus simulator). In the
handler, I propagate the event which closes the timer and shutdown the
tm(RequestTransactionManager). Both these objects are responsible of the
leakage, but the latter owns the plc4x-tm-threads, on shutdown it releases them.
At the moment I have an application running 24/7 which polls roughly 20
devices between S7(1200) and modbus and so far it is working fine.
Hope this helps.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]