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.
Posted August 7, 2008 by Casey Bisson
Categories: Dispatches, Technology. Tags: memory, memory_get_peak_usage, memory_get_usage, php, programming.
No Comments
No comments yet.
Comments RSS
TrackBack Identifier URI
Leave a comment
User contributed tags for this post:
php script memory (7) - seexy.com (4) - php out of memory (3) - memory (3) - Out of memory php (3) - memory_get_peak_usage (2) - seexy (2) - php memory_get_usage incorrect (1) - memory_get_peak_usage -manual (1) - memory_get_usage wordpress (1) - php running out of memory (1) - which php script is using memory (1) - how much memory do php scripts use (1) - error running out of memory in php (1) - script sex php (1) - out of memory in php (1) - sex seexy sexy seexy com (1) - what is a high php memory_get_usage (1) - php script running out of memory (1) - .seexy.com (1) - php memory_get_usage (1) - php script using too much memory (1) - wordpress out of memory (1) - my ipod running out of memory recently (1) - determine memory required for a php script (1) - how much memory consumes my php script (1) - php script sex (1) - script memory in php (1) - script running (1) - running php in memory (1) - Out of memory, php (1) - my php (1) - php script memort (1) - php how much memory is my script using (1) - php script uses too much memory (1) - php out of memory Out of memory (1) - php script too much memory (1) - www.xxxl.tv..com (1) - sex php script (1) - www.xxl sexy movis.com (1) -