Skip to main content

clamscan High CPU Usage

Comments

8 comments

  • cPanelMichael
    I do the check to see if clamd is installed: # whereis clamd clamd:

    Hello :) Per our documentation, if you use scripts that expect ClamAV binaries in the /usr/local/bin directory, create symbolic links with the following commands:
    ln -s /usr/local/cpanel/3rdparty/bin/clamscan /usr/local/bin/clamscan ln -s /usr/local/cpanel/3rdparty/bin/freshclam /usr/local/bin/freshclam
    The "clamd" binary is located at: /usr/local/cpanel/3rdparty/bin/clamd To lower CPU usage, I suggest simply disabling the "clamscan" cron job you have configured. Thank you.
    0
  • osirion
    Thanks cPanelMichael. I am not looking to disable the clamscan cronjob because this is what scans my server daily for viruses and I dont want to leave my server at risk. How do I change from 'clamscan' (which loads the 'virus db' each time) to 'clamd' which loads it once and hence lowers CPU/memory usage?
    0
  • syslint
    clamd is a daemon and clamscan is a command line tool.
    0
  • cPanelMichael
    How do I change from 'clamscan' (which loads the 'virus db' each time) to 'clamd' which loads it once and hence lowers CPU/memory usage?

    Hello :) I believe you may have misinterpreted some documentation. These are not two separate applications, but rather "clamscan" is part of ClamAV, as mentioned in the previous post. Thank you.
    0
  • TechWS
    But the problem the OP was confronted with was not answered. I'm having the same problem. I followed the documentation on enabling Clam AV and setup a Cron job for 1am in the morning. It ran and immediately took up all of the system resources. Our site monitoring was showing sites down but I figured I would let it run and get the scan done. I awoke to the system still scanning and sites sporadically responding. I killed the scan but now need to figure out how to scan the whole system without putting sites at risk
    0
  • cPanelMichael
    But the problem the OP was confronted with was not answered. I'm having the same problem. I followed the documentation on enabling Clam AV and setup a Cron job for 1am in the morning. It ran and immediately took up all of the system resources. Our site monitoring was showing sites down but I figured I would let it run and get the scan done. I awoke to the system still scanning and sites sporadically responding. I killed the scan but now need to figure out how to scan the whole system without putting sites at risk

    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • TechWS
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome. Thank you.

    8069233
    0
  • cPanelMichael
    Hello, To update, it looks like the support ticket was closed due to unsuccessful attempts to access the server. Feel free to reply to the support ticket if you'd like to open it back up so we can proceed to investigate further. Thank you.
    0

Please sign in to leave a comment.