
1st July 2010, 09:01
|
|
Member
|
|
Join Date: Dec 2005
Posts: 56
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Set maximum fcgi processes per site/customer/reseller
Hi, I'm wondering if it will be possibile to set maximum fcgi processes per site/customer/reseller
Thank you!
Denis
|

1st July 2010, 13:01
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
This setting has to be 1 if you use fcgi on a apache webserver as apache uses only one fcgi process per apache child. So setting this per client or site does not makes any sense, as this value has to be 1. Settingit to a value > 1 will just use more ram without any benefit, as the other fcgi childs will never be used.
|

1st July 2010, 14:46
|
|
Member
|
|
Join Date: Dec 2005
Posts: 56
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Ok, thanks Till, I admit I don't know how fcgi works exactly, but I'd like to limit the max simultaneos connections for a site or group of sites and I thinked it should be easy with fcgi.
Hope you understood my english 
Denis
|

1st July 2010, 14:51
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
The max. simultanious connections can not be limited by changing the number of fcgi processes.
You might want to take a look at e.g. mod_bwshare:
http://www.topology.org/src/bwshare/README.html
|
|
The Following User Says Thank You to till For This Useful Post:
|
|

12th September 2011, 17:03
|
|
Junior Member
|
|
Join Date: Feb 2008
Posts: 26
Thanks: 1
Thanked 1 Time in 1 Post
|
|
Hello,
do you mean I have to set FcgidMaxProcesses to 1?
I have to much fcgid process per site, sometimes 100,
and its killing my server.
thnx
|

12th September 2011, 17:06
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Yes, set the number of fcgi processes started by mod_fcgi to 1. The reason is that apache mod_fcgi spawns already one process per apache child so that php does not have to spawn its own childs. If you would spawn more processes, then they will not get used by apache.
For details on the config options, see here:
http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
|
|
The Following User Says Thank You to till For This Useful Post:
|
|

13th September 2011, 07:58
|
|
Junior Member
|
|
Join Date: Feb 2008
Posts: 26
Thanks: 1
Thanked 1 Time in 1 Post
|
|
So 1 cgi process can handle multiple connections to the site?
I thought it start 1 process per pageview?
I have about 100+ Vhosts on that server
|

13th September 2011, 09:36
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
These are fcgi processes and not cgi processes. The difference is that CGI processes are started one per pageview and terminate afterwards while fcgi processes stay in memory and can process multiple pageviews.
Quote:
|
I have about 100+ Vhosts on that server
|
That arent that many for a modern server.
|

14th October 2012, 16:17
|
|
Junior Member
|
|
Join Date: Apr 2011
Posts: 27
Thanks: 5
Thanked 0 Times in 0 Posts
|
|
I followed your advice and indeed it's working but I'm still a bit confused since on all other sites I've visited recommended settings are much higher for FcgidMaxProcesses. Is this a difference in setup or are others just being silly (since you answered apache won't take advantage of the spawned php processes?)
Thanks anyway
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 12:06.
|
|
Recent comments
10 hours 45 min ago
15 hours 50 min ago
20 hours 14 min ago
22 hours 3 min ago
1 day 12 hours ago
1 day 12 hours ago
1 day 17 hours ago
1 day 23 hours ago
2 days 47 min ago
2 days 2 hours ago