Leo, > I'm experiencing some random crashes (once or twice a day) of amavisd > worker processes. > > However, since amavisd runs in daemonized-mode, I don't see any > error-message, I'm just seeing that postfix looses the connection to > amavisd. (See attachend syslog-messages.) > > How about redirecting runtime-errors to the log when running daemonized? > The attached patch could do the job. (Just a quick hack, maybe the > location isn't perfect.)
Makes sense, looks fine, accepted, thanks. If these are real process crashes, the above won't help much unfortunately. The likely culprits are Perl modules with code in C (e.g. uulib, SQL dbd, Berkley db, SAVI, Mail::ClamAV), but also some less careful Perl code, like image analyzers, sloppy regexps, etc. These can only be caught by strace/truss, or by guessing from the last log entry at level 5 before a process goes away. Use amavisd-nanny as the first/quickest indicator of any problems in the recent past (since amavisd restart), then search the log for a given PID of a process that 'went away'. Mark ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/