Is My PHP Script Running Out Of Memory?

I’ve got a PHP script that sometimes just dies with no errors to the browser and no messages in the error log. I’ve seen this in the past with scripts that consumed too much memory (yeah, it should have issued an error, but it didn’t, and increasing the memory limit fixed it), but now the memory limit is set pretty high and I’m not sure I want to increase it further. I certainly don’t want to increase it without seeing where it’s going wrong, anyway.

To do that, IBM developerWorks says the memory_get_usage() and memory_get_peak_usage() functions are for me. And they offer some other interesting tips as well.

No Comments Yet

No comments yet.

Comments RSS TrackBack Identifier URI

Leave a comment

 

User contributed tags for this post:

php out of memory (68) - Out of memory php (57) - php script memory (30) - aflemsex (30) - php release memory (27) - php memory_get_usage (25) - memory_get_peak_usage (25) - php running out of memory (23) - kos18 (22) - WWW.yooplex.com (22) - yooplex sex (15) - php out of memory error (14) - php how much memory (14) - yooplex (13) - memory (12) - php free memory (11) - php script running out of memory (11) - php run out of memory (10) - seexy.com (9) - www.kos18com (9) - php script memory usage (8) - wordpress out of memory (8) - php memory_get_peak_usage (7) - seexy (7) - out of memory in php (7) - how much memory should a php script use (7) - php script using too much memory (7) - release memory php (6) - kos18com (6) - sex egybte (6) - www.aflemsex.com (5) - memory_get_usage (5) - why is php running out of memory (4) - php script runs out of memory (4) - php script out of memory (4) - how much memory is php using (4) - Out of memory php error (4) - memory_get_usage php (4) - memory_get_usage wordpress (4) - php script taking too much memory (4) - www.google.egybte.com (4) - php script uses too much memory (4) - apc out of memory (4) - egybte sex (4) - php memory Out of memory (3) - how much memory php script (3) - out of memory wordpress (3) - php memory script (3) - set php script memory (3) - www.sex egybte.com (3) - php code not releasing memory (3) - increase memory php script (3) - php error out of memory (3) - php scripts memory problem (3) - seexy photo (3) - php script memory load (3) - php script too large (3) - wordpress php out of memory (3) - php consumed memory (3) - www.aflemsex (3) - how to release memory in php (3) - increase script memory (2) - php running out of memory log (2) - how much memory is my php script using (2) - how much memory php uses (2) - php memory (2) - php, memory_get_usage (2) - php Out of memory xml (2) - error 7 running out of memory php (2) - how much memory is a php page using (2) - php out of memory errors (2) - video sex egybte (2) - setting php memory limit in script (2) - script out of memory (2) - www.yooplex.com***** (2) - PHP scripts memory (2) - php script memory limit (2) - php dtermine how much memory memory_limit (2) - my php scripts (2) - free memory php script (2) - find out how much memory a script is using (2) - memory_get_peak_usage memory_get_usage (2) - www.sex kos18com (2) - wordpress out of memmory (2) - how much memory php (2) - memory php (2) - php increase script memory (2) - php prevent out of memory (2) - php script too big (2) - increase mysql memory php (2) - php script max memory usage (2) - out of memory in mysql (2) - php out of memory performance (2) - php log out of memory (2) - memory_get_peak_usage php (2) - memory_get_usage memory_get_peak_usage (2) - php memory consumed by script (2) - php memory log (2) - yooplex.com (2) - Out of memory error in php (2) - php detect out of memory (2) - free php memory (2) - php memory_get_usage(); (2) - wordpress memory_get_peak_usage (2) - *****www.yooplex.com (2) - php releasing memory (2) - php out of memory log (2) - phpo script requires too much memory (2) - www.yooplex (2) - www.youtube egybte.com (2) - wordpress out of memory error (2) - php out of memory with apc (2) - php outofmemory (2) - how much memory should php scripts use (2) - php how much memory is my page using? (2) - php is running out of memory (2) - centos increasing php memory (1) - php memory_get_usage memory_get_peak_usage (1) - php find out how much ram (1) - wordpress script memory limit (1) - php exec() runs out of memory (1) - how much memory should php use? (1) - php how much memory am I using php (1) - php tell how much memory a script is using (1) - how to prevent php to use all memory (1) - wordpress causing PHP out of memory errors (1) - freeing up memory in php script (1) - php memory limit script problem (1) - php max memory for script (1) - find out how much memory php scripts use (1) -