用top,ps等查出占用高的mysql进程号
用pidstat查询出哪个线程占的高
pidstat -t -p 9834 1
使用sql查询,看对应的线程对应的sql
select * from performance_schema.threads where THREAD_OS_ID=15904\G;
pidstat -t -p 9834 1
select * from performance_schema.threads where THREAD_OS_ID=15904\G;