Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Currently I have 4 cPanel accounts running on my VPS. I need to check the memory (RAM) usage for each account on the VPS to identify which of them is using high resources in order to ban. I opened the "Daily Process Log" in WHM but it is not showing the username or which accounts exactly uses resources.

WHM displayes the following under the "User" column: root, nobody, mysql, dovenull, dovecot, mailnull, mailman, sshd, named, DELAYED, leechprotect, eximstats

share|improve this question

If you have SSH access try this

TOTAL=$(free | awk '/Mem:/ { print $2 }')
for USER in $(ps haux | awk '{print $1}' | sort -u)
    ps hux -U $USER | awk -v user=$USER -v total=$TOTAL '{ sum += $6 } END { printf "%s %.2f\n", user, sum / total * 100; }'

See this link from StackOverflow for more information

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.