LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-12-2012, 06:16 PM   #1
bbrian017
Member
 
Registered: Dec 2009
Posts: 59

Rep: Reputation: 15
Max Child Connections Reached


I'm watching my error_log and I'm seeing the following,

Code:
[Sun Aug 12 15:22:24 2012] [error] server reached MaxClients setting, consider raising the MaxClients setting
Now my server was crashing hardcore and to solve this my friend limited the max child connections.

Can this be causing my server to crash? What is the out come when this happens?
 
Old 08-13-2012, 12:06 AM   #2
Toggan
Member
 
Registered: Oct 2011
Distribution: CentOS 5.9
Posts: 39

Rep: Reputation: 6
This error itself wouldn't be causing your server to crash. However, this error indicates that connections are being refused by apache because your settings are too low for the traffic you're trying to handle. You're running into your connection limit either because you're seeing a ton of traffic or the pages are taking too long to load. If you're just seeing a ton of traffic and you have the memory to spare, try enabling KeepAlive. If you're running into slowness, you may want to review site code to see if theres something that's inefficient.

Regarding what is the outcome, you're visitors are likely getting 530 errors.
 
Old 08-13-2012, 12:02 PM   #3
bbrian017
Member
 
Registered: Dec 2009
Posts: 59

Original Poster
Rep: Reputation: 15
So to increase this limit what should I do here,

Code:
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   14
ServerLimit      50
MaxClients       50
MaxRequestsPerChild  1000
</IfModule>
Code:
<IfModule worker.c>
StartServers         2
MaxClients         150
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>
Can I do anything to allow more connections?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What happens when max PID is reached? sreeharsha.t Linux - Kernel 1 06-16-2009 06:29 AM
VFS: file-max limit 25241 reached Toadman Mandriva 1 05-19-2005 11:39 PM
max connections yuhuashi Programming 1 09-25-2004 11:38 AM
Max connections from a IP cli_man Linux - Networking 2 04-08-2004 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration