Skip to main content

CPU-Load is high

Comments

6 comments

  • cPanelMichael
    Hello, You can run a command like this when this is happening in an attempt to determine the source of the "du" command:
    ps aux|grep du
    Also, please let us know if this thread helps: Troubleshooting high server loads on Linux servers Note you may want to search for additional cron jobs in the /etc/cron* directories. Thank you
    0
  • Thorsten H.
    root@server [~]# ps aux | grep du root 4904 89.7 0.0 4696 1364 ? R 20:40 0:09 du -ks /home/userdir root 5126 0.0 0.0 103332 888 pts/2 S+ 20:41 0:00 grep du root 19381 3.1 0.4 141200 38828 pts/1 S+ 20:06 1:05 grep -r -i du -ks ./ Hm, I think that helps not so many, because that is what I know. What I have seen is, that "du -ks /home/userdir' is called in minutes and in one userdir it has to stay longer, because there are 120 GB. In the other cron.* dirs I have looked but not found any suspicouse.
    0
  • twhiting9275
    Clean the user up. 120 gig is far too much for a shared hosting account! If this 120 gig is all mail, this is going to be (literally) millions of files and take forever to process. You want to avoid that. Also, if this is taking a long time, it's likely time to upgrade the server. Get a beefier processor, more memory, even a better disk, since this one's likely got quite a bit going on.
    0
  • Thorsten H.
    Yeah Haaaa, I got it: root@srv [/]# grep -r -i 'du -ks' ./ ./usr/lib/monitorix/du.pm: $line = `du -ks "$str"`; # in KB in monitorix.conf: system = y kern = y proc = y hptemp = n lmsens = n nvidia = n disk = n fs = y zfs = n du = y net = y Set DU = to "N" --- thats it. Thanks for your help! And good night :-) Thorsten
    0
  • Thorsten H.
    Clean the user up. 120 gig is far too much for a shared hosting account! If this 120 gig is all mail, this is going to be (literally) millions of files and take forever to process. You want to avoid that. Also, if this is taking a long time, it's likely time to upgrade the server. Get a beefier processor, more memory, even a better disk, since this one's likely got quite a bit going on.

    The user am I - and it's a shop for selling photos - so, cleaning up is a good idea but ...
    0
  • cPanelMichael
    Set DU = to "N" --- thats it.

    I'm happy to see you were able to address the issue. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.