What is the Clamav clamd process? What should I do if the CPU and memory usage are too high?

is having aInternet marketingstaff in oneLinuxserverCentOS 7 system, install a new version ofVestaCPpanel.

he noticed antivirussoftwareHigh CPU usage, often loads to 100%...

In the error log, 2 permanent errors were found ▼

ERROR: Can't save PID in file /var/run/clamav/clamd.pid 
ERROR: Can't unlink the pid file /var/run/clamav/clamd.pid

What does Clamav clamd mean?

Clam AntiVirus is a UNIX open source (GPL) antivirus toolkit designed for email scanning on email gateways.

  • The toolkit provides many useful software, including flexible and scalable monitors, command-line scanners, and advanced tools for automatically updating databases.
  • The service name that starts the daemon is:clamd.service
  • At the heart of the toolkit is an antivirus engine shared library that can be used in a variety of situations.

The solution to the high CPU and memory usage of the Clamav clamd process

Workaround 1) Open/etc/clamd.conf config, and comment out the following 2 lines:

LocalSocket unix:/var/run/clamav/clamd.sock
FixStaleSocket yes

Solution 2) If you do not use mail on the CentOS 7 server, it is recommended to close the clamd process ▼

systemctl disable clamd.service
systemctl stop clamd.service

To view the status of the "clamd.service" process, enter the following command▼

systemctl status clamd.service

If installedMonit monitoringprogram, may need to delete the "cwp.clamd" file in the /etc/monit.d path.

Then, restart the Monit monitoring program▼

systemctl restart monit.service

After closing the clamd process, the clamd error disappeared.

Otherwise, the load of CPU and memory (Memory) is very large ▼

What is the Clamav clamd process? What should I do if the CPU and memory usage are too high?

Perhaps the above method is useful for other cross-borderE-commercePractitioners will come in handy, soChen WeiliangShare it here.

Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "What is the Clamav clamd process? What should I do if the CPU and memory usage are too high? , to help you.

Welcome to share the link of this article:https://www.chenweiliang.com/cwl-1086.html

Welcome to the Telegram channel of Chen Weiliang's blog to get the latest updates!

🔔 Be the first to get the valuable "ChatGPT Content Marketing AI Tool Usage Guide" in the channel top directory! 🌟
📚 This guide contains huge value, 🌟This is a rare opportunity, don’t miss it! ⏰⌛💨
Share and like if you like!
Your sharing and likes are our continuous motivation!

 

Comment

Your email address will not be published. Required fields * Callout

scroll to top