22 messages in ru.sysoev.nginxRe: php-fastcgi and memory leaks
FromSent OnAttachments
Phillip B OldhamMar 25, 2008 2:43 am 
Reinis RozitisMar 25, 2008 4:30 am 
Phillip B OldhamMar 25, 2008 4:47 am 
Yordan GeorgievMar 25, 2008 1:01 pm 
Phillip B OldhamMar 26, 2008 1:12 am 
ThomasMar 26, 2008 2:43 am 
Phillip B OldhamMar 26, 2008 3:00 am 
ThomasMar 26, 2008 3:08 am 
Corey DonohoeMar 26, 2008 7:18 am 
Yordan GeorgievMar 26, 2008 7:27 am 
Rob SchultzMar 26, 2008 12:14 pm 
Phillip B OldhamMar 28, 2008 2:36 am 
ThomasMar 29, 2008 1:41 pm 
Reinis RozitisMar 30, 2008 5:56 pm 
ThomasMar 31, 2008 4:41 am 
Phillip B OldhamMar 31, 2008 4:54 am 
Grzegorz NosekMar 31, 2008 5:06 am 
Phillip B OldhamMar 31, 2008 5:27 am 
Grzegorz NosekMar 31, 2008 5:40 am 
Phillip B OldhamMar 31, 2008 5:46 am 
Grzegorz NosekMar 31, 2008 6:33 am 
Phillip B OldhamMar 31, 2008 6:44 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: php-fastcgi and memory leaksActions...
From:Reinis Rozitis (r@roze.lv)
Date:Mar 30, 2008 5:56:36 pm
List:ru.sysoev.nginx

No matter how I look at it this doesnt seem right:

First - why and how the heck are you able to "smash" ab against spawn-fcgi (or I do misunderstood something)? Because spawn-fcgi isnt a permanent process nor does it handle any HTTP requests (or acts as fcgi gateway to handle the requests from nginx) .. spawn-fcgi is only an executable provided with lighttpd to spawn PHP master process (with setuid/setgid feature when the adaptive spawning on lighty was basically disabled). You can fully do the same just with php executable (built as fastcgi) eg provide port/socket and other settings from command line (and some from ENV variables).

So I can't really get how can spawn-fcgi eat up ram because it shouldnt be on the process list at all..

Second - MySQL ram usage on the other hand is unbelievable small.. but thats another discussion :)

rr

----- Original Message ----- From: "Thomas" <iamk@public.gmane.org> To: <nginx-nofU2znGi42HXe+LvDL@public.gmane.org> Sent: Saturday, March 29, 2008 11:42 PM Subject: Re: php-fastcgi and memory leaks

Hi Phillip,

As promised I have been trying to smash my spawn-fcgi process with ab but with no success. The cpu went crazy as expected, but the memory remained low. I don't if I am not testing enough. I was testing retrieving the index page of a PunBB forum hosted on my server. With too high concurrency, ab would stop benchmarking because of php-cgi starting to fail connections. spawn-fcgi uses 5MB of memory and MySQL 21MB.

I am using Ubuntu 7.10 Server Edition with all official Ubuntu packages.

And thanks for sharing your monitrc file ;-)