Linode Forum Index Linode Forum
Linode Community Forums
 


Installing APC on Ubuntu 10.04

Click here to go to the original topic

 
       Linode Forum Index -> Performance and Tuning
Author Message
gavinr



Joined: 10 Aug 2011
Posts: 4

Posted: Tue Dec 06, 2011 11:33 am    Post subject: Installing APC on Ubuntu 10.04  

I have Apache installed on my Ubuntu 10.04 box. I am having OOMing issues, and am trying to install APC. What's the best way to install and configure APC for Apache?

Thanks!
Back to top  
obs



Joined: 07 Mar 2010
Posts: 1403
Location: Earth

Posted: Tue Dec 06, 2011 11:45 am    Post subject:  

Code: apt-get -y install php-apc that's all you need to install apc.

However installing apc won't make your OOM problems go away if anything it'll make them worse.

Your OOM is probably due to max clients, search the forums for "max clients" you'll find tons of posts about tuning it.
Back to top  
zunzun



Joined: 18 Feb 2005
Posts: 445
Location: Birmingham, Alabama USA

Posted: Tue Dec 06, 2011 4:42 pm    Post subject:  

obs wrote: However installing apc won't make your OOM problems go away if anything it'll make them worse.

Your OOM is probably due to max clients, search the forums for "max clients" you'll find tons of posts about tuning it.

Can we all agree to rename this problem "Memory, Out Of"?

James
Back to top  
vonskippy



Joined: 27 Dec 2009
Posts: 469
Location: Colorado, USA

Posted: Tue Dec 06, 2011 7:00 pm    Post subject:  

I think we should rename "Memory" to "War". Then when there's a OOM post we can all sing: "War, UGGH, What is it Good for?" and do the Chris Tucker Jackie Chan ninja dance.

Back to top  
gavinr



Joined: 10 Aug 2011
Posts: 4

Posted: Tue Dec 06, 2011 8:41 pm    Post subject:  

Haha I agree - I have reduced my MaxClients to 20 and reduced KeepActiveTimeout to 2, which has improved my OOM problems. While reading through all the discussions on performance, though, I've taken an interest in making my box even better, and since I'm running nothing but WordPress instances, it sounds like APC is the way to go. Agree/disagree?

I also agree that the OOM MaxClients issue should be written about in the Linode docs -- it's probably one of the major issues that all Linode n00bs have.
Back to top  
glg



Joined: 09 Jan 2009
Posts: 505

Posted: Tue Dec 06, 2011 11:52 pm    Post subject:  

gavinr wrote: I also agree that the OOM MaxClients issue should be written about in the Linode docs -- it's probably one of the major issues that all Linode n00bs have.

it's a little buried, but there

http://library.linode.com/troubleshooting/memory-networking#sph_apache-2-low-memory-settings
Back to top  
picmax



Joined: 12 Jun 2011
Posts: 10

Posted: Wed Dec 07, 2011 1:19 am    Post subject:  

After tweaking Apache2 for a long time, I finally gave up on it. I can avoid OOM errors but there are still consistent performance issues.

I switched to nginx.

The performance difference is day and night. Not only my wordpress site becomes more responsive, but also I have not seen any OOM errors. The Swap IO is the best thing I saw improved. The system barely swaps now.

My suggestion is to try Nginx.

Max

gavinr wrote: Haha I agree - I have reduced my MaxClients to 20 and reduced KeepActiveTimeout to 2, which has improved my OOM problems. While reading through all the discussions on performance, though, I've taken an interest in making my box even better, and since I'm running nothing but WordPress instances, it sounds like APC is the way to go. Agree/disagree?

I also agree that the OOM MaxClients issue should be written about in the Linode docs -- it's probably one of the major issues that all Linode n00bs have.
Back to top  
gavinr



Joined: 10 Aug 2011
Posts: 4

Posted: Wed Dec 07, 2011 5:09 pm    Post subject:  

Thanks Max. I'll try that.

picmax wrote: My suggestion is to try Nginx.
Back to top  
 
       Linode Forum Index -> Performance and Tuning
Page 1 of 1