Where's my memory going?!
| From: | Philip Thompson | Date: | Mon, 28 Sep 2009 21:14:08 +0000 |
| Subject: | Where's my memory going?! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-298391@lists.php.net to get a copy of this message | ||
Hi all.
I have a script that opens a socket, creates a persistent mysql connection, and loops to receive data. When the amount of specified data has been received, it calls a class which processes the data and inserts it into the database. Each iteration, I unset/destruct that class I call. However, the script keeps going up in memory and eventually runs out, causing a fatal error. Any thoughts on where to start to see where I'm losing my memory?
Thanks in advance,
~Philip