Quote:
Originally Posted by dpicella
I have a number of php scripts running ... perhaps I have persistent connections somewhere? I have written a number of my own php scripts and I can see in mysql that one there are quite a few processes open by one of the database users that my scripts rely on.
|
Looks like I solved this problem. It had to do with
$xml = simplexml_load_file(URL);
I released the memory at the end of the script with
unset($xml);
... and now everything is good.
Here is the new chart. You can see the memory leak is not occurring anymore when running this script every 5 min in crontab.
http://picella.com/wiki/docs/memory2.pdf