Page MenuHomePhabricator
Paste P67012

Debugging T370304
ActivePublic

Authored by BCornwall on Jul 30 2024, 3:41 AM.
Project Tags
None
Referenced Files
F57273696: Debugging T370304
Aug 14 2024, 3:12 PM
F57273685: Debugging T370304
Aug 14 2024, 3:10 PM
F56779034: Debugging T370304
Jul 30 2024, 3:41 AM
Subscribers
None
Connecting to the normal port (3306) might not work when the DB is locked up, so use port 3307 instead. For example:
```
$ mysql -h db1238.eqiad.wmnet -P 3307 -u cumin2024 -p"
```
Use the password in /root/.my.cnf from the cumin host.
Some helpful commands for debugging:
```
$ mysql -h db1160.eqiad.wmnet -P 3307 -u cumin2024 -e 'show full processlist\G' -p | phaste
# this command can take a long time to complete
$ mysql -h db1160.eqiad.wmnet -P 3307 -u cumin2024 -e 'show engine innodb status\G' -p | phaste
```
In Linux, `perf` (e.g. `sudo perf record -p <pid>`) would be useful as well. Don't use strace or you could crash things!