On a shared cPanel host, most performance complaints come from one tenant being a bad neighbour to everyone else. The customer reporting “my site is slow” is rarely the one causing the slowness — they are the one noticing it. Finding the actual offender across 100+ accounts takes a methodical pass through CPU, memory, IO, and database usage by user. CloudLinux makes this far easier than it is on a non-CloudLinux host.
What’s happening
A cPanel host without CloudLinux has the same data, but you have to assemble it yourself from ps, iotop, MySQL SHOW PROCESSLIST, and the access logs. With CloudLinux, lveinfo aggregates per-user resource usage already, so the question becomes a single query.
The offender pattern usually falls into one of three: a runaway plugin/cron eating CPU (steady), an attack or scrape hammering one endpoint (sustained 100% CPU and lots of access log entries), or a deploy/cron job doing a one-off heavy operation (peaks then settles). Identifying which pattern matters because the fix is different for each.
How to verify
The triage pass, in order:
# 1. CPU by user, last hour
lveinfo --period=1h --by=cpu --limit=10
# 2. Entry processes (PHP request load) by user, last hour
lveinfo --period=1h --by=ep --limit=10
# 3. PMEM by user, last hour
lveinfo --period=1h --by=pmem --limit=10
# 4. MySQL CPU and IO by user, last hour
dbgovernor-stats --period=1h --by=cpu --limit=10
dbgovernor-stats --period=1h --by=io --limit=10
# 5. Cross-reference with disk usage and inode count
for u in $(cut -d: -f1 /etc/userdomains); do
printf "%s\t%s\n" "$u" "$(du -s /home/$u 2>/dev/null | awk '{print $1}')"
done | sort -k2 -n | tail -10
One user that tops three of these lists is the offender. One user that tops one list while others top different lists is normal variation.
For request-level detail on the offender:
tail -10000 /usr/local/apache/domlogs/<user>/<domain> | awk '{print $7}' | sort | uniq -c | sort -rn | head -20
mysql -e "SHOW PROCESSLIST" | grep <user>
ps -u <user> aufx | head -30
The top URLs in the access log usually tell you whether this is a scrape attack, a wp-cron loop, or legitimate traffic that outgrew the package.
The fix
The action depends on the pattern:
- Runaway plugin/cron — find the offending PID, kill it, and contact the customer. If it returns, suspend the cron and ask the customer to investigate. cPanel suspend keeps mail working but stops the website while they fix it.
- Attack or scrape — rate-limit at CSF or Cloudflare. Block the source IP range if it is small. Add a
mod_securityrule for the specific URL pattern if attackers vary IPs. - Traffic outgrew the package — raise LVE limits temporarily, contact the customer about upgrading to a dedicated VPS or a higher tier. This is the only case where the fix is also a sales conversation.
- Legitimate but inefficient — slow queries, large unbounded plugin operations, image processing on every request. Coach the customer toward LSCache, Redis object cache, or moving heavy ops to a cron.
Document the incident with lveinfo and slow query logs so the customer conversation is evidence-based, not “we think you are using too much”. Stack Harbor uses this triage as part of environment management.