Jon R. Kibler wrote: > Hi, > > Running clamd 0.93rc1 on Solaris 9 Sparc. > Build it with gcc 3.4.6. > > I know there was a recent thread on clamd memory > usage (that rapidly deteriorated into a discussion on > scanning email), but I never saw a clear answer to > the original question. > > On 0.92, memory usage would start off around 24/20MB > (SIZE/RSS) and grow to maybe 32/24MB after a few hours. > > On 0.93rc1, memory usage starts off at about 38/32MB > and rapidly grows to about 48/44MB, then seems to add > about another 2MB for ever 20 to 30 scans. I have had > it hit over 120/110 in less than a half day -- but not > always (seems random).
Does memory usage ever decrease? > > Never saw this type of growth in previous revs. Is > this the result of some new features or is it a > potential memory leak? > > Suggestions to debug? On Linux I would run clamscan under valgrind, and scan some samples (but that is very slow). Maybe a similar tool exists for Solaris? DMalloc seems to be available for Solaris: http://dmalloc.com/docs/latest/online/dmalloc_17.html#SEC21 Or you could scan a set of samples, and watch memory usage of clamd. If you see an increase in mem usage, and it doesn't drop back, open a bugreport and attach the sample. You can also get some malloc statistics with this patch: https://wwws.clamav.net/bugzilla/show_bug.cgi?id=749 Best regards, --Edwin _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html