The problem comes back again, the php-cgi process would be swaped out for some reasons.by jamestanit - Php-fpm Mailing List - English
How to interpret the information from the top and free command on php-cgi memory usage under APC?by jamestanit - Php-fpm Mailing List - English
Now after 5hrs run, top command shows: (large VIRT, more than 40m php-cgi each process). SHR is about 35, I set apc_shm =128M . 29510 wwebusr 15 0 413m 41m 35m S 7.3 0.5 0:33.38 php-cgi 29685 wwebusr 16 0 410m 39m 34m S 5.3 0.5 0:31.87 php-cgi 29514 wwebusr 15 0 413m 39m 33m S 4.0 0.5 0:30.69 php-cgi 29604 wwebusr 15 0 415m 42m 34m S 4.0 0.5 0:35by jamestanit - Php-fpm Mailing List - English
Just tried that with ./configure --enable-apc --disable-apc-mmap --enable-apc-memprotect The memory still growing (compared with the 10M without APC), now it is 25M (top command RES) after 10mins run. So going back the the original post, why 25M?by jamestanit - Php-fpm Mailing List - English
Also why the apc.shm_segments is set to be 4?by jamestanit - Php-fpm Mailing List - English
Thanks for the reply. Nice person. The EA leaks memory a lot with PHP5.2.14, could you point a link to php-fpm 5.3.x? That was why I converted to APC. So if each PHP-CGI uses 10m by itself, how much would you expect if you turn on the EA with SHM=64M say? Why shm is better than mmap? apc.stat = "1" will this slow down the APC significantly since every time it has to check whetherby jamestanit - Php-fpm Mailing List - English
This also baffled me for a long long while!!! The same thing with Eaccelerator - the memory keeps going up. It crashes sometimes or hang there, the php-cgis would be unresponsive. I assume each child somehow got a copy of the APC used memory.by jamestanit - Php-fpm Mailing List - English
Did you try eaccelerator?by jamestanit - Php-fpm Mailing List - English
I think he was right, the php-cgi will continue to consume memory - it is NOT SHR, it is RES.by jamestanit - Php-fpm Mailing List - English
Co-ask, I didn't find much difference with accelerator though. If you use shm, you might have problems, but with Unix socket on /tmp or sth. this should be similar.by jamestanit - Php-fpm Mailing List - English
I also had similar problems that once in a while that php-fpm is not responsive. When using top command, you can't see php-cgi anymore. The memory leak problem is also severe. Initially it only consumes 10m, then gradually increased to 50M (my EA shmax is set to be 64). Could anyone here please help? I am using php 5.2.14 Linux 2.6.18-194.17.4.el5 #1 SMP Mon Oct 25 15:50:53 EDT 2010 x86by jamestanit - Php-fpm Mailing List - English
![]() |
![]() |
![]() |
![]() |
|