• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

Apache Error Help

Recently my server has been getting more traffic and my sites have become unreachable until I restart the server, happens every few hours.  I found this error:

server reached MaxClient settings, consider raising the MaxClients setting

Does this mean right now that I can only have a certain amount of people looking at my site at 1 time?  Should I raise it?  Could this be crashing my server?
0
Nathan Riley
Asked:
Nathan Riley
  • 4
  • 3
3 Solutions
 
wesly_chenCommented:
check your httpd.conf (usually, /etc/httpd/conf/httpd.conf) for MaxClients setting
and increase it to see if it help the situation. (Restart/reload apache after change)

Also check the server CPU/memory usage to see if those system resource usage too high or not.

Besides, reduce the log level and turn off access_log if it is enabled.

Those will help to improve Apache performance.
0
 
Nathan RileyFounder/CTOAuthor Commented:
Ok I will check these things, but whatever my maxclients is set to that's the most people that I can have viewing my site at once?  Right now max clients is set at 50, but I know I have more than 50 people on my site at once.
0
 
wesly_chenCommented:
> but whatever my maxclients is set to that's the most people that I can have viewing my site at once?
That's the client connection. If one person use two browsers to check your website, then that person occupies two clients.

50 is kind of small but it depends on your system hardware specification.
You can try to increase to 100 or even 200.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Nathan RileyFounder/CTOAuthor Commented:
hmmm...strange b/c I have 400 people online sometimes.  how is this possible when my max clients is set to 50?  
0
 
wesly_chenCommented:
Check this
http://httpd.apache.org/docs/2.0/mod/mpm_common.html#maxclients
-- Quote ---
For threaded server, MaxClients restricts the total number of threads that will be available to serve clients.
0
 
Nathan RileyFounder/CTOAuthor Commented:
Ok, thanks for the help, can I just edit this file in windows on desktop with textpad then upload it?  Or does it need to be done on a linux box so that windows doesn't put in some type of bad formatting?
0
 
wesly_chenCommented:
> with textpad then upload it?
If the textpad supports unix format (no ^M, carrier return, at the end), then you can use textpad.

Otherwise, after uploaded, do
sed -e 's/^M//g' /tmp/httpd.conf  > /tmp/httpd.conf_unix
cp /tmp/httpd.conf_unix  /path-to-real-httpd.conf
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now