






















1:查看系统cpu使用情况,在shell 中输入top 1, 找到mysql 的pid。
2:2:Shell中输入pidstat -t -p <mysqld_pid> 1,1是每隔一秒监控一次,倒数第三列是cpu百分比, 找到正数第四列的TID,

3:MySQL中输入select * from performance_schema.threads where thread_os_id=<TID>,找到相关的sql脚本。

此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。