Page 1 of 1

Fatal error: Allowed memory size of 67108864 bytes exhausted

Posted: Mon Sep 06, 2010 2:41 am
by redfort
Hi ,

As you may all have experienced this problem is there way we can non-healthy exit of script ..due to memory problem........???

I got to know..we avoid this......by properly managing our php memory by unset function. remove unusable variables and objects from memory......and increasing memory limit in phph.ini

Is there any way we can check each time inside the script -to check memory is available or sleep for some time and check again.......to proceed without exit........

Is there a way to catch this fatal error and take necessary steps to avoid exit........

Thanks,
redfort

Re: Fatal error: Allowed memory size of 67108864 bytes exhau

Posted: Mon Sep 06, 2010 7:44 am
by josh
Its probably a bug, more so than not unsetting a variable. I never unset objects or variables (PHP handles that internally). Debug with this - http://php.net/manual/en/function.memory-get-usage.php