PHP-FCGI children don't get killed
I have PHPFCGIMAX_CHILDREN = 5 in my config. I've executed
ab -n 1000 -c 5 [domain]
in another machine while watching "top" on my linode.
9828 www-data 20 0 105m 26m 14m S 0 7.7 0:20.02 php5
9830 www-data 20 0 105m 26m 14m S 0 7.7 0:23.29 php5
9829 www-data 20 0 105m 26m 14m S 0 7.6 0:39.03 php5
9638 www-data 20 0 104m 26m 14m S 0 7.6 0:31.26 php5
9690 www-data 20 0 103m 25m 14m S 0 7.2 0:31.88 php5
As you can see, all of the children remain at ~7.7% RAM which, to me, is simply a waste of resources.
Is there a way to terminate the children immediately after their work is done?
7 Replies
I have seperate config files for all domains, so each can have it's own fcgi settings.
So, is there any way to kill them immediately?
@dcelasun:
I guess that's possible, I've never used fcgi and mod_php at the same time. Do they play well together?
Yes, I've used them together and never had any problems.
I prefer 2bits version but none mention php opcodes like xcache.
Is there any problem using xcache with 2bits version?
I've read that we must be very carefully with fcgid and xcache to avoid ram wasting.
Another question is the configuration for:
ServerLimit
StartServers
MinSpareServers
MaxSpareServers
MaxClients
MaxRequestsPerChild
I'm running a 360 linode. What are your suggestions?