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_