Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #1434

Re: Memory leak

From "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid>
Newsgroups comp.lang.php
Subject Re: Memory leak
Date 2011-05-05 17:49 +0200
Organization http://alvaro.es/
Message-ID <ipugv9$7vk$1@dont-email.me> (permalink)
References <ba8dcb14-7847-4292-b434-75db643fedad@p7g2000yqh.googlegroups.com>

Show all headers | View raw


El 05/05/2011 17:43, newphp escribió/wrote:
> 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..!!??

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?


-- 
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Memory leak newphp <shabarishhr@gmail.com> - 2011-05-05 08:43 -0700
  Re: Memory leak "Mr. B-o-B" <mr.chew.baka@gmail.com> - 2011-05-05 10:46 -0500
    Re: Memory leak newphp <shabarishhr@gmail.com> - 2011-05-05 08:53 -0700
  Re: Memory leak "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-05-05 17:49 +0200
  Re: Memory leak Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-05-05 17:09 +0000

csiph-web