Memory leak

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
When I run a PHP script, the script gets killed , when I check the
memory using the command TOP, this process is taking lot of memory
eventually running out..!!
when i check for memory in the script using memory_get_usage or
memory_get_peak_usage functions its uses around 2mb..!! the script
takes a datalist file, reads each row and executes mysql queries..!!
wat could be the reason..!!??

Re: Memory leak

On 5/5/2011 10:43 AM, newphp cried from the depths of the abyss:
Quoted text here. Click to load it

You might want to include your script

Re: Memory leak

Quoted text here. Click to load it

I cannot include the script, but can u guide me with different methods
to check..??

Re: Memory leak

El 05/05/2011 17:43, newphp escribió/wrote:
Quoted text here. Click to load it

I don't think that a killed process can still show up in the process
list and even allocate more memory... What do you mean exactly with "the
script gets killed"? Do you mean that you close the Firefox tab?

-- - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web:
-- Mi web de humor satinado:

Re: Memory leak

On Thu, 05 May 2011 08:43:23 -0700, newphp wrote:

Quoted text here. Click to load it

Which process are you checking with top?

Are you sure it's not exceeding some arbitrary execution time?

What's the error message?

Are you running from command line or in a server environment?


Denis McMahon

Site Timeline