Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat May 05, 2012 10:01 am 
Offline
Newbie

Joined: Tue Apr 17, 2012 2:13 am
Posts: 4
Website: http://www.techiestuffs.com
Hi I have a VPS Linux server with RAM of 768Mb and My website is based on WordPress,which has over 50000 pageviews/day,In Recent times I got severe server overloading problem and came to know that Apache uses most memory,So if anybody could suggest me optimal Apache configuration

My current configuration is

<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 30
MaxRequestsPerChild 0
</IfModule>

see this memory usage stats img.freecircuits.org/images/screenoso.png and screenshot https://stats4.linode.com/generate_grap ... thly&ver=2


Top
   
 Post subject:
PostPosted: Sat May 05, 2012 7:32 pm 
Offline
Junior Member

Joined: Mon Feb 22, 2010 9:40 pm
Posts: 37
My recommendation would be to reduce your MaxClients value significantly - perhaps around 10, and put nginx in front as a reverse proxy to handle static requests.


Top
   
 Post subject:
PostPosted: Sat May 05, 2012 9:18 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Lets say those 50,000 hits are all local, so they occur in a 8hr period.

That's a whopping 1.73 hits per second. If it's spread over multiple timezones then it's just 0.6 hits per second.

Unless your pages are HUGE, I don't think you have to do much of anything to handle that type of traffic.

Just lower max clients, tune your mysql setup, tune your php setup and you should be fine.

If you happen to grow to 200 times that traffic, perhpas this article will help:

http://www.ewanleith.com/blog/900/10-mi ... -15-server


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


Who is online

Users browsing this forum: No registered users and 2 guests


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