Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Persisitant Problem
PostPosted: Thu Nov 18, 2010 12:58 pm 
Offline
Junior Member

Joined: Tue Jan 12, 2010 8:06 am
Posts: 25
I run about 10 wordpress sites from my linode. In Total they get 15-20k uniques a month.

Every now and again (around once a week) The site will become unusably slow, the CPU will jump to 100-200% The Network usage will jump from an average of 16KB/s to a max of 4MB/s and my Disk I/O will jump from an average of 254 to a max of 1340

What is going on here? Am I being DDOSed? I've been trying to resolve this problem for months but haven't been able to find any solution.

I've set my MaxClients to 24 and switched 'KeepAlive' off, upgraded my Linode from a Linode512 to a Linode768 and yet the problem persists. I've installed WP Super Cache on all my sites. What else can I do? I even had Linode migrate my server to see if that was the problem.

A list of diagnostic commands I could run during periods of slowness to help me determine the problem would be great.

Thanks
Mark


Top
   
 Post subject:
PostPosted: Fri Nov 19, 2010 11:05 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
top (and iotop, and iftop), which are kind of like the windows task manager; you'll get a nice list of processes that you can sort by CPU usage, memory usage, etc. Top is best for CPU/RAM, iotop for disk, iftop for network. Maybe take a look at your web server's log files to see if there is any unusual activity at the time?


Top
   
 Post subject:
PostPosted: Fri Nov 19, 2010 1:58 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
You could also install something like munin.

_________________
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: Wed Jan 26, 2011 9:39 am 
Offline
Junior Member

Joined: Tue Jan 12, 2010 8:06 am
Posts: 25
Can someone take a look at my munin logs and tell me whats going on?

http://109.74.204.14/munin/


Top
   
 Post subject:
PostPosted: Wed Jan 26, 2011 10:05 am 
Offline
Senior Member
User avatar

Joined: Fri Dec 11, 2009 7:09 pm
Posts: 168
I'm far from an expert, but the postfix graph jumps out at me. Are you sending an email newsletter, or updates?

_________________
--
Chris Bryant


Top
   
 Post subject:
PostPosted: Wed Jan 26, 2011 10:46 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Your server is swapping around 3pm each day (see http://109.74.204.14/munin/localdomain/ ... -swap.html) which is causing your disk io to go nuts and could be causing postfix to queue mails (postfix could be the problem but I doubt it, 24 mails in queue isn't many).

Since it's regular I'd assume a cron, check your crons to see if anything is running around 3pm and check /var/log/syslog for any unusual entries around that time.

_________________
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: Wed Jan 26, 2011 10:49 am 
Offline
Senior Member
User avatar

Joined: Fri Dec 11, 2009 7:09 pm
Posts: 168
obs wrote:
(postfix could be the problem but I doubt it, 24 mails in queue isn't many).


I read that as 2,400 (2.4k), which sounds like a lot to me.
I could be reading it wrong though. (I'm looking at the weekly stats)

_________________
--

Chris Bryant


Top
   
 Post subject:
PostPosted: Wed Jan 26, 2011 11:40 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Hrmm you're right, daily says 24, weekly says 2.4-3.2k, monthly shows 3k, yearly shows 950. Not sure why there's a difference but if any but the daily are correct that would be a problem, I think I'd do some manual log grepping to check how many mails have been sent.

_________________
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
   
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