logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache Uses all CPU, server hangs
Author
andreaspom



Joined: 08 Dec 2014
Posts: 2

PostPosted: Mon 08 Dec '14 12:01    Post subject: Apache Uses all CPU, server hangs Reply with quote

Hello,

I have a dedicated server with the following specs

HDD 1500 GB SATA II-HDD 7.200 rpm
CPU AMD Athlon II X4 605e, Quad-Core
Template CentOS 6 - Plesk 10 - RAID 1
Apache 2.0
MYSQL 5.3.3.

On the server I have 3 websites all of them in Wordpress. One of them receives very high traffic (up to 4 million views per month) , the other two receive insignificant traffic (less than 1000 views per month).

Until a couple of months ago, the server could handle anything. There were days we would receive 60-70000 visits and 250k views with no problem at all. About 2 or 3 months ago something changed. Everytime we have increased traffic (note: the website is a sports website. So on Saturdays or Sundays when there's a match traffic increases) Apache uses all CPU, load average goes up to 100 (!!!), the server hangs and sometime "dies".


I do not remember changing anything in configuration and I could not determine whether it is a piece of bad code that might be causing it. I am trying to figure out what exactly is causing Apache to require all that CPU and since I am not a server configuration expert (I am a programmer/web developer) I need some guidance/advice. I have already enabled server status (please let me know if anyone would like a link to see what it says) but i do not know how to read it and understand it, so I am looking for answers there too.

Could this be some configuration error?
If not how do i find what causes it??
Is there a chance someone is attacking my server on those specific hours??

On the below url you can find the results of TOP on terminal. This is not during peak hour, but maybe an expert eye can spot something odd.

http://tinypic.com/r/2j1o39k/8


Thank you,

Andreas
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 08 Dec '14 18:15    Post subject: Reply with quote

Do you use a cache in wordpress? I recommend w3 tocal cache.
Back to top
andreaspom



Joined: 08 Dec 2014
Posts: 2

PostPosted: Mon 08 Dec '14 22:50    Post subject: Reply with quote

I do, i actually use WP Super Cache. I dont think it's a caching issue.
Back to top


Reply to topic   Topic: Apache Uses all CPU, server hangs View previous topic :: View next topic
Post new topic   Forum Index -> Apache