Troubleshoot mysql cpu high problem


1. Use the top command to find the corresponding thread id. If the thread id is always changing, it means that the cpu high problem is caused by different sql. Then
use performance_schema.threads to find the corresponding sql,

2, and then optimize the sql
 

{{o.name}}
{{m.name}}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324127642&siteId=291194637