Re: [PHP-DEV] Memory Leaks with Objects (no circular reference)

2009-03-09 Thread Dmitry Stogov
Hi, these caches can't grow over some internal limits and they can't take 128M. It may be some other source of the problem. Could you create a script which reproduces memory overflow? Thanks. Dmitry. Igor Feghali wrote: Hello Dmitry, Thank you for your answer. The problem comes when you pu

Re: [PHP-DEV] Memory Leaks with Objects (no circular reference)

2009-03-06 Thread Igor Feghali
Hello Dmitry, Thank you for your answer. The problem comes when you put that piece of code inside a Daemon that is supposed to run 24h/7 days. The reserved memory increases at each loop, never gets freed, and in about 1~2 days the process dies because it reaches the memory limit of 128MB. Isn't t

Re: [PHP-DEV] Memory Leaks with Objects (no circular reference)

2009-03-05 Thread Dmitry Stogov
Hi Igor, It's definitely not a memory leak. The memory manager in php-5.2 was changed so it behaves little bit different. BTW: both 5.1 and 5.2 use some caches of the chunks with most useful sizes. They allow to eliminate annecessury free()/malloc() calls and speedup the whole system. memory_

[PHP-DEV] Memory Leaks with Objects (no circular reference)

2009-02-27 Thread Igor Feghali
Hi, I am facing some memory leaks with php 5.1.6 that has been fixed in 5.2.0. So I suppose the fix should be somewhere between those versions, but I couldn't find exactly which line in the NEWS file is that. Output for 5.1.6: --- 9 --- 44712 44784 44848 44912 44976 --- 8 --- 45008 45008 45008