Question

High Apache CPU usage on 2 GB Droplet

  • Posted on December 28, 2013
  • finidAsked by finid

About to move a site to a 2 GB Droplet, but I keep seeing high CPU usage hyst by clicking on the home or on any other page.

I have Varnish in front of Apache, with APC and PageSpeed configured. Even with that configuration, I still see an Apache process gunning at more than 100% (yes, that’s true).

I’ve messed with the plugins and tweaked mpm-prefork settings, but have not seen any change.

If it will help, here are my prefork settings:

StartServers                     5
MinSpareServers              5
MaxSpareServers           10
MaxClients                   150
MaxRequestsPerChild 3000

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

@natwar86: First you need to find out what process is using up a lot of CPU. You can run “htop” (run <code>sudo apt-get install htop</code> to install it if you do not have it installed it) and then press “P” to sort the processes by CPU usage.

Has anyone been able to figure out what’s happening? I got same issue… <br> <br>

Look at the graphs he’s using to back up his claim, then picture what “10 millions hits a days” means. <br> <br>The process of setting up the system is not the misleading part, it’s the “10 millions hit a days.”