On 2008-12-18 23:01, Matthew Dickinson wrote: >> -----Original Message----- >> From: clamav-users-boun...@lists.clamav.net [mailto:clamav-users- >> boun...@lists.clamav.net] On Behalf Of Török Edwin >> Sent: Thursday, December 18, 2008 10:45 >> To: ClamAV users ML >> Subject: Re: [Clamav-users] ClamAV 0.94.2 memory leak? >> >> Can you correlate memory usage with what it was scanning? >> Like set LogVerbose in clamd.conf, and log output from ps every minute. >> >> Then see where clamd memory usage rises. >> It can rise during a DB reload, but shouldn't rise more than twice >> original mem usage. >> >> > > Here you go: > > I've extracted the interesting bits. > > Thu Dec 18 11:00:01 CST 2008 > (starting up) > clamav 29271 95.0 4.3 68204 46304 pts/3 R+ 11:00 0:00 clamd > Thu Dec 18 11:00:02 CST 2008 > clamav 29310 0.0 10.1 130752 108588 ? Ss 11:00 0:00 clamd > Thu Dec 18 11:01:01 CST 2008 > clamav 29310 0.0 10.1 138948 109060 ? Ss 11:00 0:00 clamd > Thu Dec 18 11:02:01 CST 2008 > clamav 29310 0.0 10.1 138948 109076 ? Ss 11:00 0:00 clamd > Thu Dec 18 11:03:01 CST 2008 > clamav 29310 0.0 10.1 138948 109108 ? Ssl 11:00 0:00 clamd > > > > Thu Dec 18 11:31:01 CST 2008 > clamav 29310 0.0 10.1 138948 109196 ? Ss 11:00 0:00 clamd > Thu Dec 18 11:31:02 2008 -> No stats for Database check - forcing reload > Thu Dec 18 11:31:02 2008 -> Reading databases from /var/clamav > Thu Dec 18 11:31:04 2008 -> Database correctly reloaded (567134 signatures) > Thu Dec 18 11:32:01 CST 2008 > clamav 29310 0.1 11.3 179088 122224 ? Ss 11:00 0:02 clamd > > > Thu Dec 18 11:39:01 CST 2008 > clamav 29310 0.1 11.3 179088 122224 ? Ss 11:00 0:02 clamd > Thu Dec 18 11:39:30 2008 -> Reading databases from /var/clamav > Thu Dec 18 11:39:32 2008 -> Database correctly reloaded (567615 signatures) > Thu Dec 18 11:40:01 CST 2008 > clamav 29310 0.1 18.9 257572 203156 ? Ss 11:00 0:04 clamd > > Thu Dec 18 13:45:01 CST 2008 > clamav 29310 0.0 19.0 260352 204144 ? Ss 11:00 0:05 clamd > Thu Dec 18 13:45:51 2008 -> SelfCheck: Database modification detected. > Forcing reload. > Thu Dec 18 13:45:51 2008 -> Reading databases from /var/clamav > Thu Dec 18 13:45:53 2008 -> Database correctly reloaded (567680 signatures) > Thu Dec 18 13:46:01 CST 2008 > clamav 29310 0.0 25.3 392932 271900 ? Ssl 11:00 0:07 clamd >
Can you give latest SVN a try, we have a custom memory pool that should help with this. [not on a production server, just on a test server: feed it the same emails perhaps] Best regards, --Edwin _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml