TekTonic - Community Forums
Get Support
Live Chat
Community Forum
The talkative Tektonic member community
  #1  
Old 04-28-2009, 01:29 AM
mainpipe mainpipe is offline
Junior Member
 
Join Date: May 2007
Posts: 4
Default Apache ? about spare server processes

I am having an issue w/ apache on my vps (CentOS 5 w/ webmin). For some reason, I can't get apache to open more than 10 spare server processes. I have more than enough ram. I try to change start/min/max spare servers to more than 10 and it never opens more than 10. ServerLimit & MaxClients is set to 150. Anybody else ever have a problem exceeding 10?

I am wondering if it is Virtuozzo related. I have been able to make the change on other CentOS dedicated servers & xen-based vps's without issue. They all open as many spare processes as listed in httpd.conf without issue. I can easily open 100 on a 256MB xen instance.

BUT, I have another virtuozzo vps elsewhere and have the same problem.

The following modification doesn't work on my Virtuozzo vps:

StartServers 15
MinSpareServers 15
MaxSpareServers 25
ServerLimit 150
MaxClients 150

But, if I have 10 or less start/min/max it will always work as directed.
Reply With Quote
  #2  
Old 04-28-2009, 02:23 AM
matta matta is offline
TekTonic Principal
 
Join Date: Aug 2006
Posts: 879
Default

Did you make sure to restart the httpd service after making changes?

To confirm, it is most definitely NOT a Virtuozzo limitation. The 10 server limit is what comes in our default OS build and is easily changed via config files inside the VPS.
__________________
Matt Ayres
Reply With Quote
  #3  
Old 04-28-2009, 02:33 AM
mainpipe mainpipe is offline
Junior Member
 
Join Date: May 2007
Posts: 4
Default

Quote:
Originally Posted by matta View Post
Did you make sure to restart the httpd service after making changes?

To confirm, it is most definitely NOT a Virtuozzo limitation. The 10 server limit is what comes in our default OS build and is easily changed via config files inside the VPS.
Yes. I have tried it with a restart... also with a shutdown and startup. No matter what I do, I never get more than 10 httpd processes w/ owner apache. There is 1 additional process owned by root.

As stated earlier, I have experienced this with another virtuozzo host as well. But, if I try with a dedicated (non-virtuozzo) server or xen vps, I have no problem exceeding 10 processes.

Performance has been good... I am just going nuts with httpd.conf not using the modifications I have made.
Reply With Quote
  #4  
Old 04-28-2009, 01:17 PM
matta matta is offline
TekTonic Principal
 
Join Date: Aug 2006
Posts: 879
Default

Did you make sure to make the changes in /etc/httpd/conf.d/swtune.conf? The Max* options are not in the default httpd.conf, they are in swtune.conf and need to be either changed in there or removed and moved to httpd.conf.
__________________
Matt Ayres
Reply With Quote
  #5  
Old 04-28-2009, 04:55 PM
mainpipe mainpipe is offline
Junior Member
 
Join Date: May 2007
Posts: 4
Default

BINGO! That was the problem. Thanks a lot. I have been pulling my hair out on this for the last week.
Reply With Quote
  #6  
Old 03-06-2010, 10:33 AM
Myles Myles is offline
Junior Member
 
Join Date: Mar 2010
Posts: 1
Default

I got thee solution too. Nice job man.... thank you.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:00 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.