Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jan 12, 2012 4:03 pm 
Offline
Senior Newbie

Joined: Wed May 25, 2011 3:57 pm
Posts: 16
I'd like to know what web page and / or script is being executed to cause the spike.

htop shows apache as the culprit

/usr/sbin/apache2 -k start

This started on the 6th and the traffic to my wordpress site is down, so it's not a usage thing. Also no changes were made on or around the 6th

Nothing funny in the apache logs either.

Any help is appreciated!

Linode 2048
(Latest 3.0 (3.0.4-linode38))


Top
   
 Post subject:
PostPosted: Thu Jan 12, 2012 9:05 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
are you using prefork and is your maxclients set too high?


Top
   
 Post subject:
PostPosted: Fri Jan 13, 2012 9:44 am 
Offline
Senior Newbie

Joined: Wed May 25, 2011 3:57 pm
Posts: 16
prefork yes
maxclient, I figured was great, been running without issues since I moved to this bigger Linode, no issues with traffic it's down not UP right now.


Code:
# apache2 -V
Server version: Apache/2.2.14 (Ubuntu)
Server loaded:  APR 1.3.8, APR-Util 1.3.9
Compiled using: APR 1.3.8, APR-Util 1.3.9
Architecture:   32-bit
Server MPM:     Prefork
threaded:     no
forked:     yes (variable process count)


apach2.conf

Code:
Timeout 300
KeepAlive On
KeepAliveTimeout 5
<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          80
    MaxRequestsPerChild   0
</IfModule>


Top
   
 Post subject:
PostPosted: Fri Jan 13, 2012 4:16 pm 
Offline
Senior Newbie

Joined: Wed May 25, 2011 3:57 pm
Posts: 16
Keep in mind I don't think the server is configured wrong...

I want to know how to identify the script or web page that is causing the CPU to jump... I do not think this is a max client type issue.

Many thanks


Top
   
 Post subject:
PostPosted: Fri Jan 13, 2012 11:32 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
You could add the %D or %T format string to your Apache logs and see if certain requests are taking an inordinate amount of time to complete. Note that reasons other than being CPU-bound could increase those numbers, so further analysis will be required.


Top
   
 Post subject:
PostPosted: Mon Jan 23, 2012 12:23 am 
Offline
Senior Newbie

Joined: Wed May 25, 2011 3:57 pm
Posts: 16
Thanks Vance

No luck so far and still dealing with issues since the 6th.. have no clue what happened on the 6th, no changes on my end.

_________________
My Brain Dump Blog: Analysis and Review


Top
   
 Post subject:
PostPosted: Mon Jan 23, 2012 12:46 am 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
kutu wrote:
Thanks Vance

No luck so far and still dealing with issues since the 6th.. have no clue what happened on the 6th, no changes on my end.


Try lowering your MaxClients. If your apache instances are taking up a lot of memory (ie lots of installed modules), 80 may be too many even on a 2048.

Have you seen a traffic spike since the 6th? It could be that you just weren't getting up to the MaxClients before that. That's how I got bit the first time with this issue. I was fine with low traffic, then a traffic spike actually caused my server to get up to the MaxClients. It was too high and I was screwed.


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


Who is online

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