Grzegorz N. wrote:
If you use ‘ps auxf’, you’ll probably see that one of the php-cgi
processes is the master, with all others hanging off from it as its
children. By that time, spawn-fcgi is long gone (it called exec…() and
became the master php process). BTW, do you really see increasing memory
usage on all the processes including the parent?
Yes, all processes, including the parent. I’ve set-up 3 children and one
parent, and all 4 instances slowly grow in size.
spawn-fcgi isn’t really a process manager, it just starts your fastcgi
server and hopes for the best. Anyway, only the php interpreter is to
Thats what I thought.
It shouldn’t matter at all, the memory used for e.g. php code and
variables should get properly freed at the end of the request. You might
leak resources (database connections etc.) though. Are you using any
non-standard php extensions?
I don’t know about non-standard. I’m not using any PECL entensions, but
I have custom compiled the php instance on the box to include items such
as IMAP support and turn off things that we don’t use. My compile
options are below:
Don’t know if any of those items are known to cause memory leaks.
Phillip B Oldham
The Activity People
[email protected] mailto:[email protected]
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
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.