How to check cPanel CPU and Memory usage for a specific user

One of client is asking for CPU and memory usage for particular use. To check that we have to run below command on the server. Login to the server via SSH. /usr/local/cpanel/bin/dcpumonview | sed -e 's/<[^>]*>/ /g' |…

All Articles

One of client is asking for CPU and memory usage for particular use. To check that we have to run below command on the server.

Login to the server via SSH.

/usr/local/cpanel/bin/dcpumonview | sed -e 's/<[^>]*>/ /g' | grep username

Run below command.

For example:

/]# /usr/local/cpanel/bin/dcpumonview | sed -e 's/<[^>]*>/ /g' | grep support

It will display output like below

support server.com  0.36  0.06  0.0
    Top Process  %CPU 3.0  php-fpm: pool server_com
    Top Process  %CPU 2.0  php-fpm: pool server_com
    Top Process  %CPU 0.6  php-fpm: pool server_com
    server_server    0.00  0.00  0.0
Published by

anup

Technical content from the 24x7ServerSupport infrastructure, server management and cloud operations team.