When the number of threads exceeds the capacity of the MySQL server to handle them efficiently, it can lead to slow query processing, timeouts, and even crashes. The plyabook helps indentify the reason for this increase including long running queries or increased traffic.
dmesg | tail
ps -ef | grep mysql | grep -v grep | wc -l
mysql -h ${HOSTNAME} -u ${USERNAME} -p${PASSWORD} -e "SHOW FULL PROCESSLIST"
tail -n 100 ${MYSQL_SLOW_QUERY_LOG}