Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Jul 28, 2009 7:44 am 
Offline
Newbie

Joined: Tue Nov 18, 2008 7:58 pm
Posts: 2
This morning a site of mine hosted on Linode stopped responding. I quickly logged in - could see nothing obviously wrong, and restarted Apache. This did not seem to fix the problem, so I had a look at the connection stats - it seemed there was anywhere between 40 and 100 connections with the status 'ESTABLISHED'.

I'm a little out of my depth here in terms of server admin - is this a sign of possible denial of service? Even though there were many connections, the cpu usage was not negligible - why would the site not respond? Do I need to increase max-clients or something?

Thanks in advance for any help.


Top
   
 Post subject:
PostPosted: Tue Jul 28, 2009 9:48 am 
Offline
Senior Member

Joined: Wed Feb 13, 2008 2:40 pm
Posts: 126
Only 40-100?

You say "stopped responding" but then you "logged in." Please define both - what part stopped responding and how did you log in?


Top
   
 Post subject:
PostPosted: Tue Jul 28, 2009 9:54 am 
Offline
Newbie

Joined: Tue Nov 18, 2008 7:58 pm
Posts: 2
sorry for the lack of clarity - I meant it was not responding to browser requests for web pages - they would time out.

I logged in via ssh using Putty.

My current thoughts are that I maybe don't have apache set up to respond to that many concurrent requests - as the CPU/memory graphs seem to show that those resources were not maxed out.

my prefork setup for apache was as follows:

Code:
<IfModule mpm_prefork_module>
    StartServers          2
    MinSpareServers       2
    MaxSpareServers       10
    MaxClients            75
    MaxRequestsPerChild   500
    ServerLimit           15
</IfModule>


Top
   
 Post subject:
PostPosted: Tue Jul 28, 2009 3:23 pm 
Offline
Senior Member

Joined: Wed Feb 13, 2008 2:40 pm
Posts: 126
Is apache running?


Top
   
 Post subject:
PostPosted: Tue Jul 28, 2009 4:37 pm 
Offline
Junior Member

Joined: Sat Mar 21, 2009 3:45 am
Posts: 48
What kind of content are you serving? How many apache processes are actually running ('ps -eaf |grep apache |wc -l')?

Being able to handle 75 clients at a time seems reasonable, unless you are really, really busy, or your clients are all on really slow connections and/or you are serving up big files.

For slow clients or big files, you should look into using nginx as a front end and proxy to apache. There is some info here: http://www.linode.com/forums/viewtopic. ... 2010#22010. Nginx can serve the static files directly, but even if it isn't, it is very memory and CPU efficient, even with thousands of active connections. It can receive results from apache and then return them efficiently, freeing the apache process to move on to the next request.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group