Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed May 04, 2011 6:40 pm 
Offline
Senior Newbie

Joined: Fri Oct 15, 2010 12:18 pm
Posts: 11
First off, I am very much a beginner when it comes to server administration and I am using a 512 Linode.

I was using Siege to test my server under higher usage. Everything was OK until I bumped up the number of users to a high number (50), at which point my server stopped responding all together. I had to reboot from the Linode control panel.

So... what was probably the reason for the server becoming unresponsive (and *staying* unresponsive after the Siege was long over)?
Why did I have to reboot to fix?
Is there anything I could do to avoid this issue if a large amount of traffic suddenly occurs?

I assume all the above has to do with memory, but I could a point in the right direction. Thank you for your wisdom!


Top
   
 Post subject:
PostPosted: Wed May 04, 2011 6:47 pm 
Offline
Senior Member

Joined: Mon Oct 27, 2008 10:24 am
Posts: 173
Website: http://www.worshiproot.com
You ran out of memory, so OOMKiller started shooting random processes, which is why it stayed unresponsive... something important got killed.

You should reduce the MaxClients setting in your Apache config (in the <prefork> section) to something like 15.


Top
   
 Post subject:
PostPosted: Wed May 04, 2011 7:31 pm 
Offline
Senior Newbie

Joined: Fri Oct 15, 2010 12:18 pm
Posts: 11
That is good advice, thank you.

If I lower MaxClients to 15, what happens to user #16? They just wait a little longer?

Thanks again!


Top
   
 Post subject:
PostPosted: Thu May 05, 2011 10:14 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Yes, they get queued. MaxClients is the number of *simultaneous* clients that can be served. As long as you have no idle connections for some sort of AJAX type stuff, that means that if a client is being consumed, it's because the server is working to process their request. There comes a point where processing more simultaneous requests is counter-productive, because you've got a bottleneck somewhere and splitting things even more ways just slows things down for everyone.


Top
   
 Post subject:
PostPosted: Thu May 05, 2011 10:51 am 
Offline
Junior Member

Joined: Wed May 04, 2011 8:06 pm
Posts: 35
Make sure your services (DB/WEB) are setup to queue (or even reject) requests when flooded. It's better to have an message from apache saying the max clients has been reached than crashing everyone.

Obviously, if you need to handle a lot of trafic, upgrade to a higher Linode.

A good way to tell if your machine is properly setup is to flood your website with requests (using jmeter or other) and see if you can crash the thing or not.


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