cloudsoft / winrm4j

Apache License 2.0
93 stars 53 forks source link

Leaking PIPEs in 0.6.0 #96

Closed nakomis closed 5 years ago

nakomis commented 5 years ago

After polling a windows server for some time, a downstream app starts failing with Too many open files errors. lsof -p <PID> | wc -l showed around 10000 open files

I restarted the app, and lsof was stable at around 750. I then started polling the windows server using WinRM4j, lsof started to jump up by about 30 every 5 seconds (roughly the polling period the app was using). Once lsof hit around 2000, I stopped polling the server, with the app still running and lsof stabilised at around 2000

With the polling running, repeated runs of jmap -histo <PID> | grep -i winrm showed the number of winrm classes increasing over time. Again, after un-deploying the number stabilised at the 'high' figure

aledsage commented 5 years ago

This was fixed in 0.6.1. Closing issue.