On Sun, Apr 3, 2011 at 12:20 PM, Pascal COURTOIS
<pascal.court...@nouvo.com> wrote:
> Le 01/04/2011 18:46, Pascal COURTOIS a écrit :
>> Le 01/04/2011 15:20, Pierre Joye a écrit :
>>> hi,
>>>
>>> In php 5.3+ the memory limit default is 256MB, not 128MB. 5.3 does not
>>> necessary use more memory but actually uses and reports its usage more
>>> efficiently. I would suggest to use this default value and try again.
>>
>>   the exact same bug occurs whatever the limit set. Anyway, when it works
>> it's ok with 6MB so it's not a matter of quantity obviously.
>
> further investigations show that my program uses around 3Mbytes of memory BUT
> real_usage memory increases constantly which could suggest either a bug in the
> zend memory manager or a very special condition in my php program making the
> memory manager unable to use holes in its system allocated memory.
>
> the use of gc_collect_cycles() as suggested privately does not make any 
> difference.

Try to run it by disabling the zend memory manager:

USE_ZEND_ALLOC=0 valgrind php --leak-check=full sapi/cli/php ... (or
httpd if you use apache or only reproducible there)

That will tell you if there are actual leaks. See Zend/README.ZEND_MM
for more details

Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to