Hi there, I am currently testing some fix/workaround. I tried a simple test case like the previous one but I moved the connection to the PLC outside the while loop and only connecting again if the connection drops. Without temp, I don't get memory leaks (it seems) but the IDE froze after +- 60k MessageHandles. But with a 100ms sleep, I managed to get some decent result. I am currently testing my route again, and TCP ports/ Memory seem not getting overloaded/leaking!
I changed the Camel integration by putting the PlcConnection in the Endpoint class with a getter that can be used by Consumer/Producer to send requests. Idk if this is the correct way to do it, but it seems it kinda fixed/patched for a while my problem. Cheers, Etienne
