friiz,
> After 1 minutes of processing mail my amavis stops accepting connections
> nanny reports this
> PID 08733: A 0:02:08 =========:=========:=========:=====>
> PID 19839: 19839-10 0:03:46 =========:=========:=========:=====>
> PID 27980: A 0:03:29 =========:=========:=========:=====>
> PID 27991: 27991-06 0:03:38 =========:=========:=========:=====>
> PID 28006: 28006-02 0:04:13 =========:=========:=========:=====>
>
> after some timeout one process restarts
> PID 08733: 08733-08 0:00:06 ======
> PID 09957: A 0:04:01 =========:=========:=========:=====>
> PID 10240: A 0:03:33 =========:=========:=========:=====>
> PID 11276: A 0:01:14 =========:=========:=========:=====>
> PID 27991: A 0:04:11 =========:=========:=========:=====>
>
> I have set log level 5, and i can not see any warning or error
Look at timestamps in the log (at level 5), see to which stage
to processing comes and where it stalls.
The state 'A' as reported by amavisd-nanny occurs when a connection
from a client is accepted by Net::Server and the first hook in
amavisd is called.
A state where a task id (like '08733-08') is shown when the message
has been fully received and content checking begins.
In-between the two, the SMTP protocol is goin on (greeting,
EHLO, MAIL FROM, RCPT TO, DATA), connection to LDAP and SQL may
take place, etc). Examine the log and see.
The following patch may be applied to 2.4.4, which will insert two
additional nanny states B and T, so the sequence as shown by nanny
would be:
- '' (empty string) when a child process is alive but idle
(e.g. before a connection is received, and then again
after response to MTA has been sent);
- 'A' Net::Server just accepted a new connection;
- 'B' (new) protocol begins (e.g. SMTP is about to send a greeting);
- 'T' (new) SMTP transaction begins (when valid a MAIL FROM is received);
- an id like '08733-08' shows during contents processing;
- '.' a dot shows when content processing has completed and
the protocol is about to send response to MTA client;
--- amavisd.orig Mon Nov 20 18:35:40 2006
+++ amavisd Thu Jan 18 17:25:57 2007
@@ -7625,4 +7625,5 @@
ll(5) && do_log(5,"process_request: suggested_protocol=\"%s\" on %s",
$suggested_protocol,$sock->NS_proto);
+ $snmp_db->register_proc('B') if defined $snmp_db; # 'begin protocol' state
if ($sock->NS_proto eq 'UNIX') { # traditional amavis helper program
if ($suggested_protocol eq 'COURIER') {
@@ -12370,4 +12371,6 @@
new_am_id(undef,$Amavis::child_invocation_count,$seq)
if !$initial_am_id;
+ # enter 'in transaction' state
+ $Amavis::snmp_db->register_proc('T') if defined $Amavis::snmp_db;
$initial_am_id = 0;
Amavis::check_mail_begin_task();
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
[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/