[UPHPU] PHP memory leaks

thebigdog bigdog at venticon.com
Mon Sep 22 23:13:28 MDT 2008


Wade Preston Shearer wrote:
> I am getting memory leak notices in Apache's error log. Are these leaks
> in the PHP engine or my script? If it's my script, how would I debug
> that? It tells me the file that the leaks are occurring with but that's
> all. Is there a way to get more verbose information?

you can use the following function memory_get_usage() to figure out after each
call how much memory you are using and you can call it after you are releasing
resources. I wondering if you are doing mysql stuff? Sometimes mysql is known to
cause some memory issues.

this might be a good read: http://www.webreference.com/programming/php_mem/


-- 
thebigdog


More information about the UPHPU mailing list