Skip to content
Advertisement

Tag: heap-dump

Have PHP dump heap on OutOfMemory exception

I am currently debugging a script that constantly runs into OutOfMemory exceptions. It is run as a cronjob and usually runs fine, but when the cronjob wasn’t run for a while (for whatever reason) the script has to handle to many elements that queued up and will run into a OutOfMemory exception. From examining the code I was not able

Advertisement