My python script does connect to different ssh'es for like 1000 times, per python script run, also fetches web-pages, using requests.
What I'm using is subprocess, to execute ssh connection, and requests library, to fetch web-pages.
After that, when app finishes it's execution, I have +500Mb in RAM, moreover, while running, I've been logging resources, there are up to 15 Mb of resources, but takes in RAM/Swap about 500mb.
What can be causing that kind a problem?
Garbage Collector (gc.collect()) is not helping, everything is same.
Tried not to use global variables, delete used variables, which may be large-sized, nothing helps.