Re: MySQL using 80-90% of CPU
mysql> show full processlist;
+-----+---------+------------------------------------+----------+---------+------+----------+-------------------------------------------------------------------------------------------------------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info |
+-----+---------+------------------------------------+----------+---------+------+----------+-------------------------------------------------------------------------------------------------------------------------------------------------+
| 121 | root | localhost:53274 | mda3 | Query | 0 | Updating | UPDATE EventCount set recordCount = recordCount+1
WHERE dataSourceId=id AND receivedTime >= lowerTime
AND receivedTime <= upperTime |
| 131 | mdauser | mda-services:40216 | nextMda3 | Sleep | 0 | | NULL |
| 137 | mdauser | mda-services:41318 | mda3 | Sleep | 4038 | | NULL |
| 138 | root | localhost | NULL | Query | 0 | NULL | show full processlist |
+-----+---------+------------------------------------+----------+---------+------+----------+-------------------------------------------------------------------------------------------------------------------------------------------------+
4 rows in set (0.00 sec)
mysql> SHOW VARIABLES LIKE '%slow%';
+------------------+-------+
| Variable_name | Value |
+------------------+-------+
| log_slow_queries | OFF |
| slow_launch_time | 2 |
+------------------+-------+
2 rows in set (0.00 sec)
Subject
Written By
Posted
Re: MySQL using 80-90% of CPU
May 13, 2009 12:34PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.