Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: High Traffic
PostPosted: Wed Apr 14, 2010 9:52 pm 
Offline
Junior Member

Joined: Sun Apr 11, 2010 7:06 am
Posts: 22
The precise reason why I shifted from another server to Linode was that during traffic spikes, my server was not able to take the load.

But at Linode too with 700 MB RAM, my VPS hangs during times of high traffic.

http://www.investingcontrarian.com.

This is just unacceptable and I need to keep the site running at all times.

Please help in restricting the server for high traffic even with 700 MB Ram and 2000 MB swap space.

My IO shows over 100% util during those minutes of traffic spikes.


Top
   
 Post subject:
PostPosted: Wed Apr 14, 2010 10:53 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
First thing to do: free -m

Second thing to do: ps auxwww

Third thing to do: Was "2000MB" of swap a typo? If not, reduce that to 256MB. Swap is EXTREMELY slow and if you're actively swapping, you're going to have serious problems.

Odds are good that if switching providers didn't solve the problem, it's probably something to do with your particular architecture. Figuring out what that is will require some information and investigation.


Top
   
 Post subject:
PostPosted: Thu Apr 15, 2010 12:15 am 
Offline
Junior Member

Joined: Sun Apr 11, 2010 7:06 am
Posts: 22
Hi that was not a typo.

2000 MB was the swap. I increased it as once the RAM gets filled up, I need back up memory to pick up the traffic?


Top
   
 Post subject:
PostPosted: Thu Apr 15, 2010 3:46 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
What are you running, and do not use 2000mb swap, that kinda swap maybe useful in a desktop environment but for a server you're shooting yourself in the foot, it also explains the high IO if you have such a huge swap.

Try checking out munin http://library.linode.com/server-monito ... .10-karmic to see if you can pick up a pattern


Top
   
 Post subject:
PostPosted: Thu Apr 15, 2010 11:32 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
if(TL;DR): Sounds like there's something seriously wrong with your site's code. What are you running?


Top
   
 Post subject:
PostPosted: Thu Apr 15, 2010 11:38 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Swap is super slow. It's useful to have a bit of it, to clear out data from RAM that isn't really needed, but you REALLY don't want to be actually using it in place of RAM. Generally, as soon as your server starts swapping out active memory, it's as good as dead; as you've noted, all the time is spent swapping memory so no actual work gets done.

The 720MB Linode should be enough to handle an enormous amounts of traffic; you can handle millions of pageviews per day on a 360MB server if properly tweaked with a decent website.

We're going to need more information about your setup. The most useful of which will be, what is using all your RAM? You can run 'top' and hit "M" (the uppercase is important). That will show you a list of the top consumers of RAM, which will give us a much better idea about what's wrong with your server.

The most common reason for running out of RAM is to have Apache misconfigured; the default Apache configuration itself is more or less misconfigured when you put it under any serious load.


Top
   
 Post subject:
PostPosted: Fri Apr 16, 2010 1:57 am 
Offline
Junior Member

Joined: Sun Apr 11, 2010 7:06 am
Posts: 22
Thanks for the replies,.

Swap reduced.

Things working well now after low memory parameters set.


Top
   
 Post subject:
PostPosted: Tue May 11, 2010 3:03 pm 
Offline
Junior Member

Joined: Sun Mar 21, 2010 11:19 pm
Posts: 45
what low memory parameters did you enable?


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