amavisd memory usage too high

Leonardo Rodrigues leolistas at solutti.com.br
Fri Oct 31 21:44:12 CET 2014


     Hi,

     I'm running amavisd 2.10.1 (latest) on a newly installed and fully 
updated CentOS6 box (Centos 6.6) 64 bit version. Machine is equipped 
with 4Gb RAM. Have tried amavisd 2.9.1 and got exactly same results.

Amavis configuration is pretty simple, just clamav (using clamd.sock) 
for antivirus scanning and spamassassin call for spam checking. It's 
working fine, no problem on that.

     However, after just a few hours of running (and some few hundred of 
messagesprocessed), memory usage of amavisd daemons are really high.

     For example, i'm now running fora little more than 2hours. Logs of 
starting amavisd:

Oct 31 16:20:41 hermes amavis[19006]: logging initialized, log level 2, 
syslog: amavis.mail
Oct 31 16:20:41 hermes amavis[19006]: starting. /usr/sbin/amavisd at 
hermes.emsa.com.br amavisd-new-2.10.1 (20141025), Unicode aware, 
LANG="en_US.UTF-8"

     time now

[root at hermes log]# date
Fri Oct 31 18:39:20 BRST 2014


     amavisd memory usage:
13.6 /usr/sbin/amavisd (ch86-ava vscan
11.1 /usr/sbin/amavisd (ch77-ava vscan
10.4 /usr/sbin/amavisd (ch98-ava vscan
  8.1 /usr/sbin/amavisd (ch110-av vscan
  8.0 /usr/sbin/amavisd (ch95-ava vscan
  7.8 /usr/sbin/amavisd (ch89-ava vscan
  7.4 /usr/sbin/clamd vscan
  7.0 /usr/sbin/amavisd (ch86-ava vscan
  4.4 /usr/sbin/amavisd (ch92-ava vscan
  4.3 /usr/sbin/amavisd (ch88-ava vscan
  3.9 /usr/sbin/amavisd (ch86-ava vscan


after a stop/start on amavisd, the numbers are:

[root at hermes log]# ps -eo pmem,args,user | sort -nr | head -15
  7.4 /usr/sbin/clamd vscan
  2.5 /usr/sbin/amavisd (virgin c vscan
  2.5 /usr/sbin/amavisd (virgin c vscan
  2.5 /usr/sbin/amavisd (virgin c vscan
  2.5 /usr/sbin/amavisd (virgin c vscan
  2.5 /usr/sbin/amavisd (virgin c vscan
  2.5 /usr/sbin/amavisd (virgin c vscan
  2.5 /usr/sbin/amavisd (virgin c vscan
  2.5 /usr/sbin/amavisd (virgin c vscan
  2.5 /usr/sbin/amavisd (virgin c vscan
  2.5 /usr/sbin/amavisd (virgin c vscan


     as a workaround, i set $max_requests to a low number (actually 50). 
However, i really dont think that running for such a few time should 
lead to such high memory usage situations.

is there anything i can do or any other information i can provide for 
helptracking what's happening and how to avoid it ?


-- 


	Atenciosamente / Sincerily,
	Leonardo Rodrigues
	Solutti Tecnologia
	http://www.solutti.com.br

	Minha armadilha de SPAM, NÃO mandem email
	gertrudes at solutti.com.br
	My SPAMTRAP, do not email it


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20141031/23c1632e/attachment.html>


More information about the amavis-users mailing list