MySQL Forums
Forum List  »  InnoDB

statistics state
Posted by: Pavel Francírek
Date: January 03, 2007 04:05AM

What does mean "statisics" state of InnoDB. We have lots of threads locked in this state (this situation seem occured since 2007/01/01) and performance drops for 7000q/s at 50%CPU load to 3000-4000q/s at 100%CPU load. After upgrade from 4.0.24 to 5.0.27 the situation is even worse.

Current SHOW INNODB STATUS is like:

UPDATE clients SET hits_dnes = hits_dnes + 1 WHERE ID = '191020'
---TRANSACTION 0 63039333, not started, process no 19293, OS thread id 123682857 waiting in InnoDB queue
mysql tables in use 1, locked 0
MySQL thread id 68584, query id 103781109 www1 10.0.0.1 asp statistics
SELECT celkem, kategorie, media, ignore_IP, pages, paid_level, hits_dnes, hits_multiplier FROM clients WHERE ID = '43800' LIMIT 1
---TRANSACTION 0 63039374, not started, process no 19276, OS thread id 123654178 waiting in InnoDB queue
mysql tables in use 1, locked 0
MySQL thread id 68581, query id 103781169 www1 10.0.0.1 asp statistics
SELECT celkem, kategorie, media, ignore_IP, pages, paid_level, hits_dnes, hits_multiplier FROM clients WHERE ID = '89239' LIMIT 1
---TRANSACTION 0 63039371, not started, process no 19289, OS thread id 123666469 waiting in InnoDB queue
mysql tables in use 1, locked 1
MySQL thread id 68579, query id 103781147 www5 10.0.0.5 asp Updating
UPDATE clients SET hits_dnes = hits_dnes + hits_multiplier WHERE ID = '19611'
---TRANSACTION 0 63039347, not started, process no 19283, OS thread id 123662372 waiting in InnoDB queue
mysql tables in use 1, locked 0
MySQL thread id 68578, query id 103781186 www1 10.0.0.1 asp statistics
SELECT celkem, kategorie, media, ignore_IP, pages, paid_level, hits_dnes, hits_multiplier FROM clients WHERE ID = '247076' LIMIT 1
---TRANSACTION 0 63039331, not started, process no 19277, OS thread id 123658275 waiting in InnoDB queue
mysql tables in use 1, locked 0
MySQL thread id 68575, query id 103781184 www1 10.0.0.1 asp statistics
SELECT celkem, kategorie, media, ignore_IP, pages, paid_level, hits_dnes, hits_multiplier FROM clients WHERE ID = '99579' LIMIT 1
---TRANSACTION 0 63039441, not started, process no 19274, OS thread id 123645984 waiting in InnoDB queue
mysql tables in use 1, locked 0
MySQL thread id 68571, query id 103781236 www5 10.0.0.5 asp statistics
SELECT celkem, kategorie, media, ignore_IP, pages, paid_level, hits_dnes, hits_multiplier FROM clients WHERE ID = '156476' LIMIT 1
---TRANSACTION 0 63039430, not started, process no 19273, OS thread id 123641887 waiting in InnoDB queue
mysql tables in use 1, locked 0
MySQL thread id 68570, query id 103781248 www1 10.0.0.1 asp statistics
SELECT celkem, kategorie, media, ignore_IP, pages, paid_level, hits_dnes, hits_multiplier FROM clients WHERE ID = '6076' LIMIT 1
---TRANSACTION 0 63038749, not started, process no 19271, OS thread id 123633693 waiting in InnoDB queue
mysql tables in use 1, locked 0
MySQL thread id 68568, query id 103781185 www5 10.0.0.5 asp statistics
SELECT celkem, kategorie, media, ignore_IP, pages, paid_level, hits_dnes, hits_multiplier FROM clients WHERE ID = '159049' LIMIT 1
---TRANSACTION 0 63039531, not started, process no 19270, OS thread id 123629596
MySQL thread id 68567, query id 103781051 www1 10.0.0.1 asp
.....
--------------
ROW OPERATIONS
--------------
8 queries inside InnoDB, 234 queries in queue
34 read views open inside InnoDB
Main thread process no. 21555, id 32777, state: sleeping
Number of rows inserted 14307697, updated 10292458, deleted 2189461, read 2704833482
67.46 inserts/s, 676.26 updates/s, 85.46 deletes/s, 133783.29 reads/s


No changes in configuration.

Options: ReplyQuote


Subject
Views
Written By
Posted
statistics state
10489
January 03, 2007 04:05AM
4682
January 09, 2007 07:14AM


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.