| Bug #74131 | Please add a counter of InnoDB deadlocks | ||
|---|---|---|---|
| Submitted: | 29 Sep 2014 9:39 | Modified: | 29 Sep 2014 13:01 |
| Reporter: | Simon Mudd (OCA) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: InnoDB storage engine | Severity: | S4 (Feature request) |
| Version: | 5.6.15 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | counter, deadlock | ||
[29 Sep 2014 9:39]
Simon Mudd
[29 Sep 2014 11:05]
MySQL Verification Team
On 5.6 we have this;
mysql> select * from information_schema.innodb_metrics where name='lock_deadlocks'\G
*************************** 1. row ***************************
NAME: lock_deadlocks
SUBSYSTEM: lock
COUNT: 1168
MAX_COUNT: 1168
MIN_COUNT: NULL
AVG_COUNT: 4.728744939271255
COUNT_RESET: 1168
MAX_COUNT_RESET: 1168
MIN_COUNT_RESET: NULL
AVG_COUNT_RESET: NULL
TIME_ENABLED: 2014-09-29 12:04:46
TIME_DISABLED: NULL
TIME_ELAPSED: 247
TIME_RESET: NULL
STATUS: enabled
TYPE: counter
COMMENT: Number of deadlocks
1 row in set (0.00 sec)
[29 Sep 2014 12:34]
Simon Mudd
Shane, thanks for pointing this out. innodb_metrics is a table I often forget to look at partly as there are still global status settings too and this is somewhat confusing. That said the information I need is indeed there, so sorry for the noise.
[29 Sep 2014 13:01]
MySQL Verification Team
I honestly feel the innodb_metrics table doesn't get enough appreciation (even from those in Support). Closing the SR, as information is in: https://dev.mysql.com/doc/refman/5.6/en/innodb-metrics-table.html
