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:Phillip B Oldham (phil@public.gmane.org)
Date:Mar 31, 2008 4:54:53 am
List:ru.sysoev.nginx

I'm confused - when using a command similar to the one below, is it spawn-fcgi handling memory or php-cgi? When I check the processlist (ps aux) I see 4 instances of "php-cgi", each one with a slowly growing memory usage.

Maybe its the app I'm using which doesn't finish correctly. Its contributed to by a few different developers, some of which are new to the system and might not be finishing their scripts with the correct return state.

Thomas wrote:

You are right, I didn't express myself correctly. One should read "php-spawn-fcgi uses 5MB of memory", php-spawn-fcgi being a daemon that I created using the following command:

/usr/bin/spawn-fcgi -a 127.0.0.1 -p 10005 -u www-data -g www-data -C 5 -f /usr/bin/php-cgi -P /var/run/spawn-fcgi/php-spawn-fcgi.pid

I guess that Phillip is using the same kind of setup to handle php with Nginx. And that the ram usage he is talking about is the ram usage of the php-spawn-fcgi process.

The MySQL ram usage remains low certainly because I am always hitting the same index page which has very little data on it (I created 10 empty sub-forums), but that's benchmarking, it is impossible to perfeclty mimic real-life behavior and anyway the goal was no to stress test mysql.

Best regards,

--

*Phillip B Oldham* The Activity People phill-ABPfyfql6ydQOjYTieCOMbyq0pUa53/3@public.gmane.org
<mailto:phill-ABPfyfql6ydQOjYTieCOMbyq0pUa53/3@public.gmane.org>

------------------------------------------------------------------------

*Policies*

This e-mail and its attachments are intended for the above named recipient(s) only and may be confidential. If they have come to you in error, please reply to this e-mail and highlight the error. No action should be taken regarding content, nor must you copy or show them to anyone.

This e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium, and we have taken steps to ensure that this e-mail and attachments are free from any virus. We must advise that in keeping with good computing practice the recipient should ensure they are completely virus free, and that you understand and observe the lack of security when e-mailing us.

begin:vcard fn:Phillip Oldham n:Oldham;Phillip org:The Activity People;Systems Development email;internet:phill-ABPfyfql6ydQOjYTieCOMbyq0pUa53/3@public.gmane.org title:Chief Programmer tel;work:0870 162 4847 x-mozilla-html:TRUE url:http://theactivitypeople.co.uk/ version:2.1 end:vcard