Group:
Current Connections
Name:
Currently running threads
Description:
The number of threads that are active at this point of time. Too many active threads indicates there is a severe load on the server and may be a sign of lock contention or unoptimized SQL queries. Too many active threads are bad for performance.
Formula:
Threads_running
Mail Alert Enabled?:
Yes
Advice:
If the database is overloaded you'll get an increased number of queries running. Occasional spikes are OK for very short period of time. Too many active threads indicate that:
1. MySQL is taking too much time to process you requests.
2. You are continuously retrieving/updating large datasets.
Make sure that queries are tuned to use indexes. Execute SHOW FULL PROCESSLIST of find queries that are getting locked continuously. Try isolating long running queries by enabling the slow query log.