Submitted by Locutus on Sun, 01/30/2011 - 07:54
Hello?
Please allow me a quick question, and feel free to reply with a link if this has been answered somewhere already. :)
I'm experimenting a bit with FCGI instead of mod_php, and since I wish to still use the XCache extension (which basically works all okay in FCGI), I'm interested in these two things:
How is the number of FCGI processes for a domain determined? At this time, I see two processes for a specific domain and three for another.
When are FCGI processes restarted? Since every restart means that the cache is cleared (XCache only uses memory cache, no disk cache), degrading performance for a bit, I'd probably want them to restart as rarely as possible.
Thanks in advance for help! :)
Status:
Closed (fixed)
Comments
Submitted by Locutus on Sun, 01/30/2011 - 12:12 Comment #1
Hmm, I think I can answer this myself... Would the Apache directives like
FcgidProcessLifeTime
and others from theFcgid
group be the way to go?Submitted by JamieCameron on Sun, 01/30/2011 - 13:19 Comment #2
FCGI processes get started as needed, based on the number of concurrent requests. As far as I know, there is no upper limit.
The process lifetime can be set in Virtualmin, on the Website Options page. The field is called "Max PHP execution time", but it actually sets the FCGI timeout as well..
Submitted by JamieCameron on Sun, 01/30/2011 - 13:20 Comment #3
FCGI processes get started as needed, based on the number of concurrent requests. As far as I know, there is no upper limit.
The process lifetime can be set in Virtualmin, on the Website Options page. The field is called "Max PHP execution time", but it actually sets the FCGI timeout as well..
Submitted by Locutus on Sun, 01/30/2011 - 13:59 Comment #4
Okay yeah, I can see that function change the
MaxExecutionTime
directive in the vserver's PHP ini file... Though I can't see how it makes an entry for the FCGI process lifetime... Shouldn't that go into/etc/apache2/sites-available/domainname.conf
?EDIT: I just see it modifies the directive "IPCCommTimeout". Apache documentation lists that under this paragraph:
That directive is now named
FcgidIOTimeout
. Also, according to the same documentation, it has nothing to do with FCGI process lifetime, but does this:Any insights on this? :)
Submitted by JamieCameron on Sun, 01/30/2011 - 14:40 Comment #5
My mistake, you are correct .. that sets the max execution time of a single script, not the total fcgi process lifetime. For the latter, you'd need to set
FcgidProcessLifeTime
manually.Submitted by Locutus on Sun, 01/30/2011 - 14:50 Comment #6
Okidoki, thanks! Case closed. :)