Hi there, On Fri, 11 Jul 2008 09:48:01 Russell Jones wrote:
> ... 0.93.3 on CentOS 5.2 64bit seems to have a memory doubling issue > whenever the database is reloaded. > > On starting clamd, the ram usage is 70MB. But whenever it reloads ... > .. the memory usage jumps to 131 megs and stays there. What is causing > this, and how can I fix it? I also see sudden large increases in memory consumption. It isn't just CentOS because I run Linux, it isn't just 64-bit because all my mailservers are 32 bit, and it isn't just ClamAV Version 0.93.3 because I haven't installed that one yet... :) Sometimes people have seen this as a result of multiple copies of the database being loaded. That appears to have been a problem for quite some time. I think it's clamd which causes it by loading two database copies into memory, so I don't think that looking at the sizes of the databases on disc will help. Here's a graph of the memory used by clamd on one of my servers: http://www.jubileegroup.co.uk/JOS/misc/clamav-milter-0.9x.gif The horizontal axis of the graph is number of five-minute intervals, so the graph covers from early December 2007 until today. The discontinuities are restarts of clamd, usually after the compilation of a new version. Date ClamAV approx x-axis pos. on graph 8 Dec 2007 0.92 0 14 Jan 2008 0.92 (recompiled) 8000 6 Apr 2008 0.92 (restarted) 35000 14 May 2008 0.93 46000 13 Jun 2008 0.93.1 54000 As you can see from the graph and the above installation record, things do seem to have been getting better in fits and starts. Versions 0.93 and 0.93.1 seemed to be give me the the best memory usage for a long time, but on July 2, memory usage went from 104M to almost 200M (and there it sits today). 2008/07/02 11:35:00 104 2008/07/02 11:39:59 145 ... 2008/07/02 13:30:00 144 2008/07/02 13:35:01 155 2008/07/02 13:40:01 194 ... 2008/07/12 13:35:01 197 This has been mentioned in the past, e.g. see the list archives http://readlist.com/lists/lists.clamav.net/clamav-users/0/4976.html mid-August last year. It isn't a problem for me, as my machines have plenty of memory, but it's definitely something that needs to be fixed. -- 73, Ged. _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml