MySQL extreme CPU usage

How do I solve Mysql consistently using extreme CPU?
Screenshot by Lightshot Screenshot by Lightshot

depends on your site , try implement redis/memcached and litespeed cache if possible.

also tweak mysqld configuration.

100% even when no site is active
site hang-up grade also gives 500 errors : Screenshot by Lightshot
the firewall is not activated. : Screenshot by Lightshot

Secure that you disabled Base Dir ? in configuration