From owner-freebsd-isp Fri Jan 10 8:16:53 2003 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C24137B405 for ; Fri, 10 Jan 2003 08:16:52 -0800 (PST) Received: from mail.lambertfam.org (www.lambertfam.org [216.223.196.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A4D443F5B for ; Fri, 10 Jan 2003 08:16:51 -0800 (PST) (envelope-from lambert@lambertfam.org) Received: from laptop.lambertfam.org (unknown [10.1.0.2]) by mail.lambertfam.org (Postfix) with ESMTP id C3E46351BF for ; Fri, 10 Jan 2003 11:16:43 -0500 (EST) Received: by laptop.lambertfam.org (Postfix, from userid 1000) id A4B9528B0E; Fri, 10 Jan 2003 11:16:42 -0500 (EST) Date: Fri, 10 Jan 2003 11:16:42 -0500 From: Scott Lambert To: freebsd-isp@FreeBSD.ORG Subject: Re: SpamAssassin spawned 700 perl processes Message-ID: <20030110161642.GA4076@laptop.lambertfam.org> Mail-Followup-To: freebsd-isp@FreeBSD.ORG References: <6A4FC9DF-248E-11D7-93AF-000393BC25EC@hurrell.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6A4FC9DF-248E-11D7-93AF-000393BC25EC@hurrell.cc> User-Agent: Mutt/1.4i Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Jan 10, 2003 at 09:56:51PM +1030, Greg Hurrell wrote: > Weird thing happened today to my mail server (FreeBSD 4.7-RELEASE-p2 > #6: Thu Nov 14 21:42:32 CST 2002). > > After 55 days of uptime, the machine suddenly went down like a town of > bricks. It appears that over a period of several hours, several > hundred perl processes built up -- all running either spamc or spamd > (from SpamAssassin). > > >/usr/bin/perl /usr/bin/spamd -x -i 203.2.192.76 -A 203.2.192.76 -r > >/var/run/spamd.pid -d Remote checks backed up on you and you went deep into swap. Use the -m argument to spamd. Unfortunately this causes some bad signal interaction with of the spamassassin subsystems (razor IIRC) that causes the master spamd process to die at random. So then you have to run it under something that will restart spamd if it dies. For instance: daemontools, init (via /etc/ttys) daemontools "run" script to run your config: #!/bin/sh exec /usr/local/bin/spamd -x -i 203.2.192.76 -A 203.2.192.76 -m (somenumber) daemontools "run" script for my config: #!/bin/sh exec /usr/local/bin/spamd -u spamd -a -q -x --allowed-ips=10.10.10.10,10.10.10.35 -i 0.0.0.0 -m 75 -H /etc/mail/spamassassin/ -- Scott Lambert KC5MLE Unix SysAdmin lambert@lambertfam.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message