Re: Re: php daemons, memory
| From: | Antony Dovgal | Date: | Sun, 11 Jan 2009 09:07:21 +0000 |
| Subject: | Re: Re: php daemons, memory | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42553@lists.php.net to get a copy of this message | ||
On 11.01.2009 03:21, jvlad wrote:
> Almost.
> Try to compile your very-own-version of php, using configure argument
> --disable-zend-memory-manager
There is no such configure option since ages.
Zend MM can be disabled by setting USE_ZEND_ALLOC env var to 0, but only when
--enable-debug is used (since nobody is supposed to do that except for debugging
purposes).
> also, disable _all_ php extensions that your scripts do not depend on.
That won't affect memory usage very much.
> - --enable-debug did report some small leaks, but much less then the
>> consumption grow.
>
> zend memory manager won't release memory to the system.
That's plain wrong.
Of course it does free() memory whenever it thinks the memory should be free()-ed.
Though that doesn't guarantee that the OS is be able to reuse this memory.
--
Wbr,
Antony Dovgal