Re: PHP memory problems

From: Date: Tue, 18 Dec 2001 16:56:48 +0000
Subject: Re: PHP memory problems
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-74280@lists.php.net to get a copy of this message
There's a memory limit patch available on the PHP download page at http://www.php.net/downloads.php (PHP 4.0.6 memory limit fix). It should fix this problem, I believe. Might want to considering upgrading to 4.1.0, though. J Cristiano Verondini wrote: > > Hello, > > I'm using PHP 4.0.6 and have the following (very annoying) problem: > > Running a complex web application, after some time of use, I got the > 'memory limit exceeded' message, in different points of my application. > Waiting some time sometimes solves the problem. > > I believe the fault is in the memory allocation/deallocation routines, > because I do a lot of string concatenation and know this operation can be > a real pain for memory management code. > > The question is how does PHP deal with memory? i mean, does it have a > unique memory pool for every page hit? Is the 8 Mb limit for every page > hit? > Is it possible that the memory reclaim code is causing such a behaviour? > is there a way to force a garbage collection run? > > Any hint/though? > > Thanks > > Cris >

« previous php.dev (#74280) next »