gurus.
I have a perl script which needs to run in an infinite loop and monitor my gnu/linux's load average and free ram and send an email using google's account if the load/ram is above/below the value set.
i found these
How can I find memory leaks in long-running Perl program?
and have done as suggested to use undef but that doesn't seems to help as most likely I have something that never gets cleared/freed.
here's a sample of how the memory usage is constantly increasing and after a day it can allocate quite much ram.
Here's the perl script itself. Can someone point me somewhere on how to fix this. Thanks.