Re: huge memory leaks.

From: Date: Wed, 22 Nov 2000 14:54:01 +0000
Subject: Re: huge memory leaks.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-26632@lists.php.net to get a copy of this message
Giovanni Tummarello wrote: > I thought at first i was witnessing a bug of PHP (memory leak) but since the > size doesnt really grow.. but rather stay at me maximum allocated value i > believe this is a strategy of either PHP , APACHE or the compiler itself (do > not release the unused memory). > > Comments? solutions? This is infact a strategy of some unixes. I don't recall if Linux or BSD does this. I know Irix does. What you can do is reduce the request (MaxRequestsPerChild) number for each daemon in your httpd.conf file. You can also twiddle with Max and MinSpareServeers and also try limiting MaxClients. Finally, based on the requests you are doing you could do some caching of the requests, or finding another way to do the requests. Shouldn't you also limit your record sets anyway? I mean, returning 4000 tuplets seems excessive... -- Paul K Egell-Johnsen Utvikler/PR Manager eZ systems as http://ez.no/

« previous php.general (#26632) next »