Bug #74131 Please add a counter of InnoDB deadlocks
| Submitted: | 29 Sep 2014 9:39 | Modified: | 29 Sep 2014 13:01 |
|---|---|---|---|
| Reporter: | Simon Mudd | 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]
Shane Bester
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]
Shane Bester
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
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.054 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
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.