On Wed, May 04, 2005 at 07:05:17PM +0200, Patrick von der Hagen wrote: > Hi all, > > I've been using SpamAssassin 3.0.2 for quite some time (about three > month) on my mailservers and so far I didn't notice any problems. Load > and message-throughput have been quite constant. > > However, yesterday one of my servers went BANG, due to lack of memory. > First I suspected Bind9, but when the memory dropped low again this > afternoon I found that SpamAssassin consumed an extreme amount of memory. > Right after launching spamd, each child uses about 30MB of memory, but > after some time it they reach 200MB each, some still more.
I had the same happening on three different servers. In my case I had 4Gb of ram on each of them with two 3.2 CPU's on each server. In the end I started using the following script (as a cron job) which kills a spamd-child when it grows bigger than 2000000 bytes in memory: ps flax | grep [s]pamd | \ awk '{if($7 > 2000000) print "kill " $3}' | /bin/sh It seems to work. Regards Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie, Universiteit van Stellenbosch "Do not repay anyone evil for evil. Be careful to do what is right in the eyes of all men." Romans 12:17