Re: Memory exceeding

From: Date: Tue, 25 Feb 2003 16:13:32 +0000
Subject: Re: Memory exceeding
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-137086@lists.php.net to get a copy of this message
"Markas" <mark@e-net.lt> wrote in message news:20030221232855.28901.qmail@pb1.pair.com... > Hi... I got a big site, which is not very well constructed inside, and the > script began to throw (rather often, but NOT always) a fatal error " Fatal > error: Allowed memory size of 8388608 bytes exhausted ", every time in > different places. I wonder how should I debug that, as there is pretty much > code inside, and I hardly got aqcuainted with it in a whole. > > SO THE QUESTION: Are there any functions or smth., to check, how much memory > is used at some particular moment of execution of the script??? If I could > state, that for example after some class instantiaton memory usage greatly > increases, I would be able to localise the problem. I would first guess that there's a session-related memory creep issue. I would check how much data is being placed into session vars and how long sessions are being cached. Steve

« previous php.general (#137086) next »