This incident type refers to a situation where the MySQL database is experiencing a high level of threads running, which could indicate a performance issue. This may cause issues with the application that relies on the database, such as slow response times or even downtime. Resolving this incident typically involves investigating the root cause of the high thread count and optimizing the database configuration or query performance to reduce the load on the database.
Parameters
Debug
Check MySQL processlist to see the running queries and threads
Check the MySQL connection limit
Check the number of threads currently running on the server
Check the system load average
Check the available memory and swap space
Check the disk usage of MySQL data directory
Check the MySQL error log for any relevant errors or warnings
Check the slow query log for queries that might be contributing to high thread count
Check the dmesg output for any kernel-level errors or warnings
A long-running or poorly optimized query, causing threads to stay active for longer periods of time.
Repair
Identify the queries causing the high thread count and optimize them.
Restart the MySQL server to clear all running threads.
Learn more
Related Runbooks
Check out these related runbooks to help you debug and resolve similar issues.