Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Aug 27, 2011 3:17 pm 
Offline
Junior Member
User avatar

Joined: Wed Oct 20, 2010 7:10 pm
Posts: 36
Location: Sebastopol, CA
Hi,

I use pingdom to do basic monitoring of my website and have been noticing a steady march upward for response time. I assume the issue is with my database, so I went to look at my the mysql-slow.log file and see the same three lines repeated with no SQL statements; not exactly helpful.

Code:
/usr/sbin/mysqld, Version: 5.1.41-3ubuntu12.6-log ((Ubuntu)). started with:
Tcp port: 3306  Unix socket: /var/run/mysqld/mysqld.sock
Time                 Id Command    Argument


Here is a snippet from the my.cnf file:

Code:
log_slow_queries   = /var/log/mysql/mysql-slow.log
long_query_time = 2
log-queries-not-using-indexes


I have just tried changing permissions on the files and directory and restarted mysql with no luck. I still am getting new additions to the mysql-slow.log file, but nothing useful. My current permissions are:

Code:
:/var/log/mysql$ ls -al
total 31772
drwxrws--- 2 mysql mysql     4096 Aug 26 06:25 .
drwxr-xr-x 7 root  root      4096 Aug 26 06:25 ..
-rw-rw---- 1 mysql mysql 32193324 Aug 27 02:12 error.log
-rw-rw---- 1 mysql mysql   125493 Aug 27 02:11 mysql-slow.log


Any suggestions for what I am missing?

Thanks, Josh


Top
   
 Post subject:
PostPosted: Sat Aug 27, 2011 4:18 pm 
Offline
Senior Member

Joined: Sat Nov 27, 2010 8:21 pm
Posts: 63
Maybe there really were no slow queries. It's easy enough to test; just run a

Code:
SELECT SLEEP(3);


and see if it shows up in the log.


Top
   
 Post subject:
PostPosted: Sun Aug 28, 2011 2:25 am 
Offline
Junior Member
User avatar

Joined: Wed Oct 20, 2010 7:10 pm
Posts: 36
Location: Sebastopol, CA
Thanks. I tried this and do not see this query in the log file. Any other suggestions?

I also noticed that this log file was rotated and the group reverted back to be "adm" instead of the "mysql" group I changed it to yesterday. Could this be part of the issue?

Code:
-rw-r----- 1 mysql adm     107793 Aug 27 23:21 mysql-slow.log


Thanks, Josh


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