Re: huge memory usage in PHP 4.0.2 object programming?
| From: | Teodor Cimpoesu | Date: | Sat, 16 Sep 2000 13:35:09 +0000 |
| Subject: | Re: huge memory usage in PHP 4.0.2 object programming? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-17037@lists.php.net to get a copy of this message | ||
Hi vincent!
On Sat, 16 Sep 2000, vincent@aib.net wrote:
> Hello,
>
> I'm writting a program using PHP4's object feature. However after each run I found
> that the apache process hold up
> 70M of the memory!!! In the 2nd run however it doesn't make the apache process grow to
> 140M, remain 70M.
>
> The program read 2000 records into 2000 objects from a mysql database and do some processing to
> produce another
> 2000 objects for later use (It hasn't finish). Is PHP4 will not release memory for
> objects, or rather this is an apache problem?
> I add unset() to the final produced objects seems still doens't free up the memory after
> the run.
>
>
do use make use of mysql_free_result() in your script?
maybe mysql resultsets eat up memory.
2c
-- teodor