Skip to main content

How can I check memory/ram usage for each cPanel account?

Comments

5 comments

  • Sys Admin
    Try to log into your VPS via SSH and run " top" which should give you more details on this or ask your host/server admin to help you with identifying this for you.
    0
  • NixTree
    That says no cPanel account is using major system resources. Monitoring the top command output is a good option; you may set a script to get the usage information in a fixed interval and that can provide some info to you. If you strictly want to check and limit server resources for users, use CloudLinux.
    0
  • cPanelMichael
    Hello :) You may want to consider a third-party application such as Cloud Linux if you want to monitor and limit accounts based on resource usage. You can find more information about Cloud Linux at: [url=http://cpanel.net/cpanel-whm/cloudlinux/]CloudLinux | cPanel Thank you.
    0
  • iero
    besides cloud linux, there is no report to know how to check memory/ram usage for each cPanel account, whm or command line? really? [COLOR="silver">- - - Updated - - - i have found this: TOTAL=$(free | awk '/Mem:/ { print $2 }') for USER in $(ps haux | awk '{print $1}' | sort -u) do ps hux -U $USER | awk -v user=$USER -v total=$TOTAL '{ sum += $6 } END { printf "%s %.2f\n", user, sum / total * 100; }' done What i need is to know this for a period of time
    0
  • cPanelMichael
    There are no native features included with cPanel/WHM that will report that information over a set time period, but you are welcome to develop a custom script that monitors the usage over time and produces a report based on that data. Thank you.
    0

Please sign in to leave a comment.