Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Feb 26, 2014 2:19 am 
Offline
Junior Member

Joined: Fri Aug 09, 2013 8:58 pm
Posts: 33
Hi,

I have a site with relatively high traffic. Normally the site goes down when it reaches about 1300 ppl online the same time. I am using Linode 2GB.

My current settings are like this (keepalive Off):

<IfModule mpm_prefork_module>
StartServers 4
MinSpareServers 12
MaxSpareServers 24
MaxClients 20
MaxRequestsPerChild 6000
</IfModule>

While I know it involves a lot of testing, I have very little back-end programming skills. What would be a good value to start with?

Thanks so much,

Allen


Top
   
PostPosted: Thu Feb 27, 2014 8:14 am 
Offline
Senior Newbie

Joined: Fri Jan 03, 2014 6:21 pm
Posts: 8
Why would you have keepalive's off? That is generally a huge performance benefit. Without seeing a more information, I don't think anyone could tell you why your site goes offline or how to tune Apache for your load.

robert


Top
   
PostPosted: Thu Feb 27, 2014 11:57 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
KeepAlives significantly hurt performance. They save some bandwidth and reduce average response times a bit, at the cost of a huge increase in memory consumption. That in turn significantly reduces the number of simultaneous clients that can be served.

Apache can be configured in such a manner that the memory load from keepalives isn't so huge (things like switching from mod_php to a fastcgi approach), but generally they're not worth it unless you have a ton of RAM. And that's not something that tends to happen in a VPS environment.


Top
   
PostPosted: Thu Feb 27, 2014 11:52 pm 
Offline
Junior Member

Joined: Fri Aug 09, 2013 8:58 pm
Posts: 33
Yes, I took the advice from the Linode team and turned KeepAlives off. It does improve the site performance in my case.

Would it be helpful if I attach my htop/iotop or other results?


Top
   
PostPosted: Fri Apr 04, 2014 5:27 pm 
Offline
User avatar

Joined: Fri Apr 04, 2014 5:17 pm
Posts: 1
Website: http://blog.nuancelabs.com
Location: Charlotte, NC
Further thoughts--Caching--

APC? (Pre 2.4 you have to tack it on, post you're g2g)
Memcache?
CDN? CloudFlare?

Where's your Database in all of this? Mysql are you running a performance profiler for helpful tuning?

Just some thoughts.


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


Who is online

Users browsing this forum: No registered users and 5 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