Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Nov 15, 2009 6:00 pm 
Offline
Newbie

Joined: Sun Nov 15, 2009 4:56 pm
Posts: 4
Website: http://aaroncouch.info
Location: Philadelphia, PA
I just had an issue with a Linode that I thought I'd ask for some advice on.

I have Drupal site that all of a sudden slowed to an unbearable trickle. Pages were taking literally minutes to load.

I checked the memory but nothing seemed out of the ordinary:

Code:
             total       used       free     shared    buffers     cached
Mem:           630        569         60          0         89        304
-/+ buffers/cache:        175        454
Swap:          255          0        255



I checked the memory (which I didn't save) but there were about 10 apache processes averaging about 4% MEM and 6% CPU as well as one mysqld averaging about 7% MEM and 5% CPU.

I tried pruning apache and mysql but nothing. The various logs in /var/log didn't indicate anything. After a couple of hours of playing around I discoverd that the sessions table in the database was about 10 times the size it had been the day before. The culprint was a 'single signon' module that was writing a couple hundred rows to the sessions table for every site visitor. Once I removed the module things went back to normal immediately. Mini-crisis averted.

My question is, 'Is there a way to tell that a PHP or Mysql process is responsible for slowing things down so drastically?' Or was there a better way to troubleshoot this?

_________________
http://aaroncouch.info


Top
   
 Post subject:
PostPosted: Sun Nov 15, 2009 7:34 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
You pretty much have to do the kind of detective work you described. One thing you didn't mention was looking at the MySQL logs. Often the general query log is not enabled, but binary logs are, which you can view with mysqlbinlog.


Top
   
 Post subject:
PostPosted: Mon Nov 16, 2009 12:14 pm 
Offline
Newbie

Joined: Sun Nov 15, 2009 4:56 pm
Posts: 4
Website: http://aaroncouch.info
Location: Philadelphia, PA
Thanks Vance. I appreciate the feedback.

I'm turning on the slow mysql log so if I have similar problem in the future I will have some history there.

_________________
http://aaroncouch.info


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


Who is online

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