View Single Post
Old 5th April 2010, 19:37
dpicella dpicella is offline
Senior Member
Join Date: Apr 2009
Posts: 116
Thanks: 9
Thanked 8 Times in 7 Posts
Default php memory leak problem

Originally Posted by dpicella View Post
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


... 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.
Reply With Quote