Page 1 of 1

clamd cpu load

Posted: Thu Aug 13, 2009 10:57 am
by Troy McClure
I realized this morning that clamd had started taking way too many resources. It steadily climbs until I restart the service. I have tried just removing clamd, clamav, and clamav-db and re-installing them, but the problem still comes back. When I restart the service it will run ok for a few minutes and then it will spike. Once it does, it never goes back down. I have asl and everything is updated. I don't see anything in the clamd log to indicate any kind of problem. Any suggestions on how to figure out what is going on?

Re: clamd cpu load

Posted: Thu Aug 13, 2009 12:37 pm
by scott
Check out "clamdtop"

Re: clamd cpu load

Posted: Thu Aug 13, 2009 1:46 pm
by Troy McClure
OK, this is what I get.

Code: Select all

 CONTSCAN         702.268s    /var/spool/qscan/tmp/my.server.com125018402579423272/348A9200.ZIP
 CONTSCAN         506.656s    /var/spool/qscan/tmp/my.server.com125018421879424217/348A9200.ZIP
 CONTSCAN         325.456s    /var/spool/qscan/tmp/my.server.com125018440679425227/orig-my.server.com125018440679425227
 CONTSCAN         135.785s    /var/spool/qscan/tmp/my.server.com125018459479426494/orig-my.server.com125018459479426494
For some reason these aren't getting removed. They just stay there until I restart clamd.

Re: clamd cpu load

Posted: Thu Aug 13, 2009 7:04 pm
by Troy McClure
I think I got it resolved. I had some bad signatures or something. I removed clamav and then removed everything in /var/clamav. Reinstalled and ran freshclam to update it. Everything seems ok now.