Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Dec 06, 2011 12:33 pm 
Offline
Senior Newbie

Joined: Wed Aug 10, 2011 12:29 pm
Posts: 5
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!


Top
   
 Post subject:
PostPosted: Tue Dec 06, 2011 12:45 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
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.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Tue Dec 06, 2011 5:42 pm 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
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


Top
   
 Post subject:
PostPosted: Tue Dec 06, 2011 8:00 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
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.

Image


Top
   
 Post subject:
PostPosted: Tue Dec 06, 2011 9:41 pm 
Offline
Senior Newbie

Joined: Wed Aug 10, 2011 12:29 pm
Posts: 5
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.


Top
   
 Post subject:
PostPosted: Wed Dec 07, 2011 12:52 am 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
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/troubleshooti ... y-settings


Top
   
 Post subject:
PostPosted: Wed Dec 07, 2011 2:19 am 
Offline
Senior Newbie

Joined: Sun Jun 12, 2011 12:20 pm
Posts: 10
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.


Top
   
 Post subject:
PostPosted: Wed Dec 07, 2011 6:09 pm 
Offline
Senior Newbie

Joined: Wed Aug 10, 2011 12:29 pm
Posts: 5
Thanks Max. I'll try that.

picmax wrote:
My suggestion is to try Nginx.


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


Who is online

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