Re: Trying to find out where the memory went

From: Date: Mon, 06 Jun 2011 23:05:12 +0000
Subject: Re: Trying to find out where the memory went
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Mon, 2011-06-06 at 22:30 +0200, Mike van Riel wrote:
> 1. Does it hurt to disable the Zend MM?
> 2. Can it be done from inside a PHP Script?
> 3. Why is the memory consumption so much lower, even lower than my 
> calculations?

When you disable Zend MM PHP will not use it but directly the system's
allocator, which won't be counted by ZendMM therefore. you therefore
loose all PHP-specific allocation improvements and the memory leak
protections. Nothing you'd actually want ;-)

Disabling the ZendMM is mostly useful for using memory debuggers (incl.
valgrind) to do further checks.

> I assume it is a good thing to at least try to create an easy way to 
> reproduce the issue (cannot include my test file) and create a bug 
> report about this :)

Reproducible bug reports are always a good thing.

johannes




Thread (18 messages)

« previous php.internals (#53102) next »