Log resource usage on each cPanel account

tyggis

Registered
Dec 28, 2011
2
0
51
cPanel Access Level
Reseller Owner
I use WHM and have about 60 cPanel account on that WHM. One of the accounts is using so much resources some nights about 2 o`clock the serveres crashes. How can I log each accounts resouce usage so I know witch account to ban?

Thanks.
 

NixTree

Well-Known Member
Aug 19, 2010
413
5
143
Gods Own Country
cPanel Access Level
Root Administrator
Twitter
Hello,

You can look at "Main >> Server Status >> Daily Process Log" to identify the suers which use high system resources. If you would like to limit resources / user , use CloudLinux or HIVE.

If the user bring the server into its knee via http hits, apache rlimit might help ( Apache Core Features ).

Thank you,
Nibin.
 

NixTree

Well-Known Member
Aug 19, 2010
413
5
143
Gods Own Country
cPanel Access Level
Root Administrator
Twitter
Hello,

Also, check the cron job log file and identify the jobs run , logs in /var/log/messages right before the server crash and cross check them.

Thank you,
Nibin.
 

tyggis

Registered
Dec 28, 2011
2
0
51
cPanel Access Level
Reseller Owner
Thanks.
Unfortunately the server goes down so quickly that no account show in the Daily Process Log that it uses more resources. The company that runs the server says that it is mysql activity that causes it.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator