[xdebug-general] Tracing memory usage question

From: Hugo Rumens <hugorumens[@]yahoo.com>
Date: Tue, 23 Sep 2008 09:17:06 -0700 (PDT)

I asked this question on the PHPLondon mailing list and didn't get any
response, so I thought I'd try here instead..

(I now think this is because xdebug show you the memory usage for
the entire Apache process and not just the actual script being run,
if anyone can confirm, that would be great.
Also, the same seems to apply to the xdebug_peak_memory_usage() function)

Thanks, Hugo

##################################################################

Hi all,
I was wondering if anyone has encountered a similar issue:

I've set up xdebug on my server and I've turned on auto-tracing.

The traces are coming out fine, but what I don't understand is that I've set

memory_limit = 70M

in php.ini (and phpinfo shows it is taking effect)

yet I have lines in my traces like so:

8.5151 97735256 -> devel_store_queries() www/docs/sites/all/modules/devel/devel.module:529

This shows the memory in use at the time as ~ 97Mb

The question is how can my xdebug trace be showing more memory being used than the memory_limit is set to? I'm trying to debug a script that's using too much memory and getting an out of memory fatal error, so understanding exactly what is going on here is important.

This is with Apache 2.2 (prefork) and php 5.2.0 on Debian on Amazon EC2.

Thanks.

      
Received on Tue Sep 23 2008 - 18:23:51 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST