Results 1 to 9 of 9
Thread: Apache issue MaxClients (10)
-
08-25-2011, 07:58 AM #1Junior Guru Wannabe
- Join Date
- May 2007
- Posts
- 85
Apache issue MaxClients (10)
Hi guys,
I want to change prefork to worker. I have already uncommented the required line, but when I am restarting the Apache, I always getting this error:
Starting httpd: WARNING: MaxClients (10) must be at least as large
as ThreadsPerChild (25). Automatically
increasing MaxClients to 25.
Actually I have 'MaxClients 150' in my httpd.conf, so I have no idea why it displays this error.
Thanks
-
08-25-2011, 09:09 AM #2Aspiring Evangelist
- Join Date
- Oct 2010
- Location
- Iraq
- Posts
- 409
hello,
for worker mpm you will need to recompile apache with worker mpm module.
can you please let us know what is your OS, how did you installed Apache in the first place. have you used any panel.... etc
Highest Regards
Mohammed HXsltel OÜ | Fast and Steady Internet services
cPanel Webhosting | VPS Hosting | Since 2011
-
08-25-2011, 09:19 AM #3Junior Guru Wannabe
- Join Date
- May 2007
- Posts
- 85
Mohammed,
Thanks for your reply.
I am using CentOS 5.5
No control panel.
-
08-25-2011, 09:26 AM #4Aspiring Evangelist
- Join Date
- Oct 2010
- Location
- Iraq
- Posts
- 409
Hello,
if you used yum to install Apache, you can change to mpm worker by uncommenting the line in this file
/etc/sysconfig/httpd
Code:#HTTPD=/usr/sbin/httpd.worker
Highest Regards
Mohammed HXsltel OÜ | Fast and Steady Internet services
cPanel Webhosting | VPS Hosting | Since 2011
-
08-25-2011, 09:45 AM #5Junior Guru Wannabe
- Join Date
- May 2007
- Posts
- 85
-
08-25-2011, 09:53 AM #6Aspiring Evangelist
- Join Date
- Oct 2010
- Location
- Iraq
- Posts
- 409
Hello,
some releases of httpd is including another file containing the parameters of MaxClients, MaxThreads, etc... .
may be you can find that parameters in
/etc/httpd/conf.d/swtune.conf
you may want to remove that file and keep changing those parameters in httpd.conf or you can change them directly in that file.
NOTE : if you don't have that file try to browse files in /etc/httpd/conf.d
Highest Regards
Mohammed HXsltel OÜ | Fast and Steady Internet services
cPanel Webhosting | VPS Hosting | Since 2011
-
08-25-2011, 09:53 AM #7Corporate Member
- Join Date
- Feb 2008
- Location
- Houston, Texas, USA
- Posts
- 3,262
Try this. service httpd stop. Wait 5 seconds then service httpd start.
RegardsUNIXy - Fully Managed Servers and Clusters - Established in 2006
Server Management - Unlimited Servers. Unlimited Requests. One Plan!
cPanel Varnish Plugin -- Seamless SSL Caching (Let's Encrypt, AutoSSL, etc)
Slow Site or Server? Unable to handle traffic? Same day performance fix: joe@unixy
-
08-26-2011, 11:03 AM #8Junior Guru Wannabe
- Join Date
- May 2007
- Posts
- 85
-
08-26-2011, 11:17 AM #9Web Hosting Master
- Join Date
- Apr 2011
- Location
- Las Vegas, NV
- Posts
- 1,643
No, you don't need to recompile anything.
I pulled my hair out over this issue for months, but finally got it. Before increasing serverlimit & maxclients in the prefork section of htpd.conf, increase them in the following file.
/etc/httpd/conf.d/swtune.conf
If you do that you won't throw an error on httpd startup.
Similar Threads
-
Track down apache maxclients issue, check slowqueries
By kenop in forum Systems Management RequestsReplies: 4Last Post: 08-09-2011, 01:20 PM -
Tracking down apache maxclients issue
By kenop in forum Hosting Security and TechnologyReplies: 1Last Post: 08-08-2011, 11:51 AM -
maxclients issue
By gaquay in forum Hosting Security and TechnologyReplies: 6Last Post: 05-28-2009, 02:40 AM -
Apache MaxClients
By neonlexx in forum Hosting Security and TechnologyReplies: 11Last Post: 04-10-2003, 04:44 PM -
Apache MaxClients
By emkatzen in forum Hosting Security and TechnologyReplies: 2Last Post: 12-01-2001, 01:12 PM