Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Nov 06, 2013 8:28 pm 
Offline
Newbie

Joined: Wed Nov 06, 2013 8:16 pm
Posts: 3
My server is constantly showing 400-500% cpu usage

the culprit seems to be mysqld, which is runnign at 400%.
if i restart it, it jumps straight back upto 400%.

the site is not getting a lot of traffic at all.

any help is appreciated


Top
   
PostPosted: Wed Nov 06, 2013 9:17 pm 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
What OS distro are you running? What version of MySQL? What type of site?

Giving us some good information about what you're doing will help us help you.


Top
   
PostPosted: Wed Nov 06, 2013 9:25 pm 
Offline
Senior Member
User avatar

Joined: Thu Feb 16, 2012 9:01 pm
Posts: 52
what does "show processlist" say on a mysql prompt?

Have you enabled the slow query log? If so what does it contain?


Top
   
PostPosted: Fri Nov 08, 2013 2:25 am 
Offline
Newbie

Joined: Wed Nov 06, 2013 8:16 pm
Posts: 3
Ubuntu 13.04
its a Linode 8192

Its a site running Magento

mysql> SHOW VARIABLES LIKE "%version%";
+-------------------------+-----------------------------+
| Variable_name | Value |
+-------------------------+-----------------------------+
| innodb_version | 5.5.34 |
| protocol_version | 10 |
| slave_type_conversions | |
| version | 5.5.34-0ubuntu0.13.04.1-log |
| version_comment | (Ubuntu) |
| version_compile_machine | x86_64 |
| version_compile_os | debian-linux-gnu |
+-------------------------+-----------------------------+


mysql> show processlist;
+----+------------------+-----------+------------------+---------+------+--------------+------------------------------------------------------------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info |
+----+------------------+-----------+------------------+---------+------+--------------+------------------------------------------------------------------------------------------------------+
| 69 | root | localhost | NULL | Query | 0 | NULL | show processlist |
| 80 | expertelectrical | localhost | expertelectrical | Query | 0 | Sending data | SELECT `seonavigation`.* FROM `seonavigation` WHERE (`seonavigation`.`query_params`='a:5:{s:12:\"pro |
| 81 | expertelectrical | localhost | expertelectrical | Query | 0 | Sending data | SELECT `seonavigation`.* FROM `seonavigation` WHERE (`seonavigation`.`request_path`='power-supplies- |
+----+------------------+-----------+------------------+---------+------+--------------+------------------------------------------------------------------------------------------------------+
3 rows in set (0.00 sec)


Top
   
PostPosted: Fri Nov 08, 2013 2:34 am 
Offline
Newbie

Joined: Wed Nov 06, 2013 8:16 pm
Posts: 3
slow query log simply show:

/usr/sbin/mysqld, Version: 5.5.34-0ubuntu0.13.04.1-log ((Ubuntu)). started with:
Tcp port: 3306 Unix socket: /var/run/mysqld/mysqld.sock
Time Id Command Argument


Top
   
PostPosted: Sat Nov 09, 2013 11:59 am 
Offline
Senior Member

Joined: Mon Oct 12, 2009 1:20 am
Posts: 50
My guess is you are getting traffic from *somewhere*.

Check your Apache logs, see who is visiting what.


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