Debugging PHP application after exit is called
<p>I have a PHP application that is using a very modest amount of memory until exit is called; at which point the memory usage spikes dramatically causing a fatal error due to exceeding the memory limit.</p>

<p>Is there any way to debug what the application/PHP is doing after exit is called? Alternatively, are there any common reasons for a massive increase in memory to occur at this time? The output buffers are empty when the script is terminated.</p>
