Re: how to find a memory corruption in php ?
| From: | Pascal COURTOIS | Date: | Sun, 03 Apr 2011 10:20:26 +0000 |
| Subject: | Re: how to find a memory corruption in php ? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51798@lists.php.net to get a copy of this message | ||
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.