• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Question Check CPU usage by domain

Korkodilos_

New Pleskian
Greetings fellow pleskians.
Is there a way to check the CPU usage of a domain/subscription? I'm seeing quite high spikes in grafana and i'm unable to track down the culprit.
 
A good start is to simply look at the cpu usage of the PHP-FPM processes like
# ps aux | grep php-fpm
You can tell which account uses the resources from the first column. From there, descend into /var/www/vhosts/<subscription>/logs and view the access_log for repeating requests such as wp-login.php and xmlrpc.php, they are very frequently the cause for high loads. Block the attackers IP with iptables or any other suitable way.
 
Back
Top