#load
7 one-liners with this tag.
All one-liners tagged load
Compare load average with the number of CPU cores
$uptime && nproc
Count PHP-FPM processes per pool
$ps -eo args | grep '[p]hp-fpm: pool' | awk '{print $NF}' | sort | uniq -c | sort -rn
Count requests per minute in the access log
#awk '{print substr($4, 2, 17)}' /var/www/vhosts/system/example.com/logs/access_ssl_log | sort | uniq -c | sort -rn | head -20
Count running Apache processes
$ps -C apache2 --no-headers | wc -l
Fetch the Apache server-status in compact form
$curl -s "http://localhost/server-status?auto"
Find the domains with the most requests on Plesk
#wc -l /var/www/vhosts/system/*/logs/access_ssl_log 2>/dev/null | sort -rn | head -20
Show processes with the highest CPU usage
$ps aux --sort=-%cpu | head -15