I had something similar happen to me once...

Amavais was attempting to unpack a single message, and the process was
consuming more and more memory until the server ran out and crashed.

What I ended up doing was the following:

Clean boot the server. Immediately start watching (via "top") amavis
processes to see if one kept running and consuming more and more memory
(I was originally just looking for what was sucking up memory because
of the errors I was seeing that were crashing the server). When I found
the Amavis process, I traced the queue number of the message it was
working on. Then, I placed that message on hold in Postfix so that it
would not be injected into Amavis for processing.

I continued to monitor the server to ensure the problem wasn't
occurring on other messages. About once per hour, I would unhold the
message and watch the memory consumption. After about twelve hours, the
message actually passed through the server without crashing it.

The message in question was from Switzerland, was valid, and contained
a couple of bitmap images.

--- MJ <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> The swap space is 2 GB, exactly double of the RAM, which recommended.
> 
> Thanks,
> MJ
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Gary V
> Sent: Wednesday, September 07, 2005 4:48 PM
> To: [email protected]
> Subject: Re: [AMaViS-user] Amavisd-new stopped
> 
> 
> MJ wrote:
> 
> > Hi,
> > This morning I have several entries like following in
> /var/log/syslog
> 
> > ==========================================
> > Sep  6 01:03:20 mailgate1 amavis[363]: [ID 702911 mail.error] 
> > (00363-07) TROUBLE in check_mail: parts_decode_ex t FAILED: 
> > run_command (open
> > pipe): Can't fork at
> /usr/local/lib/perl5/5.8.5/sun4-solaris/IO/File.pm
> > line 176, <
> GEN6>> line 6001. at /usr/local/sbin/amavisd line 1851, <GEN6> line 
> GEN6>> 6001.
> 
> > Sep  6 01:05:03 mailgate1 amavis[398]: [ID 702911 mail.error] 
> > (00398-08) TROUBLE in check_mail: parts_decode_ex t FAILED: 
> > run_command (open
> > pipe): Can't fork at
> /usr/local/lib/perl5/5.8.5/sun4-solaris/IO/File.pm
> > line 176. a t /usr/local/sbin/amavisd line 1851.
> 
> > Sep  6 01:05:06 mailgate1 amavis[517]: [ID 702911 mail.error] 
> > (00517-04) TROUBLE in check_mail: parts_decode_ex t FAILED: 
> > run_command (open
> > pipe): Can't fork at
> /usr/local/lib/perl5/5.8.5/sun4-solaris/IO/File.pm
> > line 176, <
> GEN6>> line 2122. at /usr/local/sbin/amavisd line 1851, <GEN6> line 
> GEN6>> 2122.
> > ==========================================
> 
> > Also I have following in /var/adm/messages
> 
> > ==========================================
> 
> > Sep  6 05:48:01 mailgate1 tmpfs: [ID 518458 kern.warning] WARNING: 
> > /tmp: File system full, swap space limit exceeded Sep  6 07:19:16 
> > mailgate1 tmpfs: [ID 518458 kern.warning] WARNING: /tmp: File
> system 
> > full, swap space limit exceeded Sep  6 08:37:03 mailgate1 tmpfs:
> [ID 
> > 518458 kern.warning] WARNING: /tmp: File system full, swap space
> limit
> 
> > exceeded Sep  6 09:05:37 mailgate1 tmpfs: [ID 518458 kern.warning] 
> > WARNING: /tmp: File system full, swap space limit exc eeded
> > ==========================================
> 
> > Finally amaisd-new (2.3.2) stopped responding and I need to restart
> 
> > the server (Solaris 8). Can any one highlight what causes this swap
> FS
> 
> > problem? I have two GB of Swap and the server is running fine since
> 
> > more than one month. MJ
> 
> I would guess these are both a result of your tmpfs size being too
> small.
> 
> Gary V
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices Agile & Plan-Driven Development * Managing Projects & Teams
> *
> Testing & QA Security * Process Improvement & Measurement *
> http://www.sqe.com/bsce5sf
> _______________________________________________
> AMaViS-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/amavis-user
> AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
> AMaViS-HowTos:http://www.amavis.org/howto/
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing
> & QA
> Security * Process Improvement & Measurement *
> http://www.sqe.com/bsce5sf
> _______________________________________________
> AMaViS-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/amavis-user
> AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
> AMaViS-HowTos:http://www.amavis.org/howto/
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to