Login to MySQL
mysql -u root -p
Show Active processes
SHOW PROCESSLIST;
or to list all the processes use “FULL”
SHOW FULL PROCESSLIST;
Run MySQL optimizer
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.pl perl ./mysqltuner.pl
MySQL tuner should give some recommendations on settings to tweak.