MySQL extreme CPU usage

How do I solve Mysql consistently using extreme CPU?
https://prnt.sc/kswykm https://prnt.sc/kswyp7

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 : http://prntscr.com/ksz0fp
the firewall is not activated. : http://prntscr.com/ksz03c

Secure that you disabled Base Dir ? in configuration