[exim] Processes not terminating [Was Re: Too many connectio…

Pàgina inicial
Delete this message
Reply to this message
Autor: Rory Campbell-Lange
Data:  
A: Exim Users
Assumptes vells: [exim] Too many connections, SMTP timeout problems
Assumpte: [exim] Processes not terminating [Was Re: Too many connections, SMTP timeout problems]
The single issue that doesn't make any sense to me is that when I stop
exim (/etc/init.d/exim4 stop), there are still running exim4 processes 3
seconds later.

Explicit kills required
root     30825  0.0  0.2  8448 2160 ?        Ss   00:00   0:00 /usr/sbin/exim4 -Mc 1Co9S6-0007xm-8K
Debian-  30826  0.0  0.2  8500 2700 ?        S    00:00   0:00 /usr/sbin/exim4 -bd -q30m
Debian-  30916  0.0  0.2  8500 2700 ?        S    00:02   0:00 /usr/sbin/exim4 -bd -q30m
Debian-  30945  0.0  0.2  8500 2700 ?        S    00:08   0:00 /usr/sbin/exim4 -bd -q30m
Debian-  30976  0.0  0.2  8500 2700 ?        S    00:17   0:00 /usr/sbin/exim4 -bd -q30m
Debian-  31027  0.0  0.2  8500 2700 ?        S    00:25   0:00 /usr/sbin/exim4 -bd -q30m
Debian-  31028  0.0  0.2  8500 2700 ?        S    00:26   0:00 /usr/sbin/exim4 -bd -q30m
Debian-  31043  0.0  0.2  8500 2700 ?        S    00:30   0:00 /usr/sbin/exim4 -bd -q30m
Debian-  31193  0.0  0.2  8500 2692 ?        S    01:13   0:00 /usr/sbin/exim4 -bd -q30m
Debian-  31278  0.0  0.2  8500 2700 ?        S    01:32   0:00 /usr/sbin/exim4 -bd -q30m
root     31352  0.0  0.2  8448 2152 ?        S    02:00   0:00 /usr/sbin/exim4 -q
Debian-  31401  0.0  0.2  8500 2700 ?        S    02:26   0:00 /usr/sbin/exim4 -bd -q30m
Debian-  31521  0.0  0.2  8500 2692 ?        S    03:17   0:00 /usr/sbin/exim4 -bd -q30m



On 07/01/05, Rory Campbell-Lange (rory@???) wrote:
> I am using Debian testing, and exim -bV tells me:
>
> Exim version 4.34 #1 built 20-Nov-2004 11:32:14
> Copyright (c) University of Cambridge 2004
> Berkeley DB: Sleepycat Software: Berkeley DB 3.2.9: (May 26, 2004)...
>
> Since the new year I have been suffering a problem with too many
> connections from my backup MX. Somehow all the connections stay open,
> even if I run an /etc/init.d/exim4 restart.
>
> Consequently I have added the following lines to my conf file:
>
> smtp_accept_max = 50
> smtp_accept_max_per_host = 25
>
> However the problem is still happening, and requires me to take the
> following steps to solve the problem temporarily:
>
> - stop the daemon
> - list all still-running smtp processes
> - manually kill all still-running smtp processes
> - start the daemon
>
> The isp is using sendmail.
>
> Please help!
> Rory
>
> I don't know if this is associated with a timeout problem:
>     2005-01-06 10:43:11 SMTP command timeout on connection from mail2.isp.net 
>     2005-01-06 10:43:56 SMTP command timeout on connection from mail1.netservers.co.uk 
>     2005-01-06 10:46:52 SMTP command timeout on connection from mail2.isp.net
>     2005-01-06 10:55:51 SMTP command timeout on connection from mail2.isp.net
>     2005-01-06 11:00:55 SMTP command timeout on connection from mail2.isp.net
>     2005-01-06 11:13:19 SMTP command timeout on connection from mail2.isp.net
>     2005-01-06 11:42:32 SMTP command timeout on connection from mail2.isp.net
>     2005-01-06 11:57:09 SMTP command timeout on connection from mail2.isp.net
>     2005-01-06 12:11:08 SMTP command timeout on connection from mail2.isp.net
>     2005-01-06 12:11:10 SMTP command timeout on connection from mail2.isp.net
>     2005-01-06 12:34:54 SMTP command timeout on connection from mail.uklinux.net 
>     2005-01-06 16:36:53 SMTP command timeout on connection from mail1.anotherisp.co.uk 
>     2005-01-06 18:41:50 SMTP command timeout on connection from mail2.isp.net 
>     2005-01-06 19:34:42 SMTP command timeout on connection from mail2.isp.net
>     2005-01-06 23:35:32 SMTP command timeout on connection from mail1.netservers.co.uk 

>
>
> lsof -i shows lots of exim4 processes running (truncated list show below)
>     exim4      6162 Debian-exim    1u  IPv4 649700       TCP *:smtp (LISTEN)
>     exim4      6292 Debian-exim    3u  IPv4 655155       UDP myserver:35884->ns1.myisp.net:domain 
>     exim4      6304 Debian-exim    0u  IPv4 655292       TCP myserver:smtp->mail2.myisp.net:49602 (CLOSE_WAIT)
>     exim4      6304 Debian-exim    2u  IPv4 655292       TCP myserver:smtp->mail2.myisp.net:49602 (CLOSE_WAIT)
>     exim4      6304 Debian-exim    3u  IPv4 655313       UDP myserver:35888->ns1.myisp.net:domain 
>     exim4      6399 Debian-exim    0u  IPv4 656297       TCP myserver:smtp->mail2.myisp.net:50043 (CLOSE_WAIT)
>     exim4      6399 Debian-exim    2u  IPv4 656297       TCP myserver:smtp->mail2.myisp.net:50043 (CLOSE_WAIT)
>     exim4      6399 Debian-exim    3u  IPv4 656323       UDP myserver:35894->ns1.myisp.net:domain 
>     exim4      6453 Debian-exim    0u  IPv4 656680       TCP myserver:smtp->mail2.myisp.net:50146 (CLOSE_WAIT)
>     exim4      6453 Debian-exim    2u  IPv4 656680       TCP myserver:smtp->mail2.myisp.net:50146 (CLOSE_WAIT)
>     exim4      6453 Debian-exim    3u  IPv4 656699       UDP myserver:35896->ns1.myisp.net:domain 
>     exim4      6461 Debian-exim    0u  IPv4 656765       TCP myserver:smtp->mail2.myisp.net:50192 (CLOSE_WAIT)
>     exim4      6461 Debian-exim    2u  IPv4 656765       TCP myserver:smtp->mail2.myisp.net:50192 (CLOSE_WAIT)
>     exim4      6461 Debian-exim    3u  IPv4 656781       UDP myserver:35897->ns1.myisp.net:domain 
>     exim4      6472 Debian-exim    0u  IPv4 656862       TCP myserver:smtp->mail2.myisp.net:50251 (CLOSE_WAIT)
>     exim4      6472 Debian-exim    2u  IPv4 656862       TCP myserver:smtp->mail2.myisp.net:50251 (CLOSE_WAIT)
>     exim4      6472 Debian-exim    3u  IPv4 656881       UDP myserver:35898->ns1.myisp.net:domain 
>     exim4      6794 Debian-exim    0u  IPv4 659744       TCP myserver:smtp->mail2.myisp.net:51021 (CLOSE_WAIT)
>     exim4      6794 Debian-exim    2u  IPv4 659744       TCP myserver:smtp->mail2.myisp.net:51021 (CLOSE_WAIT)
>     exim4      6794 Debian-exim    3u  IPv4 659782       UDP myserver:35905->ns1.myisp.net:domain 
>     exim4      6863 Debian-exim    0u  IPv4 660228       TCP myserver:smtp->mail2.myisp.net:51132 (CLOSE_WAIT)
>     exim4      6863 Debian-exim    2u  IPv4 660228       TCP myserver:smtp->mail2.myisp.net:51132 (CLOSE_WAIT)
>     exim4      6863 Debian-exim    3u  IPv4 660252       UDP myserver:35910->ns1.myisp.net:domain 
>     exim4      7154 Debian-exim    0u  IPv4 662859       TCP myserver:smtp->mail2.myisp.net:52017 (ESTABLISHED)
>     exim4      7154 Debian-exim    2u  IPv4 662859       TCP myserver:smtp->mail2.myisp.net:52017 (ESTABLISHED)
>     exim4      7154 Debian-exim    3u  IPv4 662891       UDP myserver:35920->ns1.myisp.net:domain 
>     exim4      7181 Debian-exim    0u  IPv4 663142       TCP myserver:smtp->mail2.myisp.net:52118 (ESTABLISHED)
>     exim4      7181 Debian-exim    2u  IPv4 663142       TCP myserver:smtp->mail2.myisp.net:52118 (ESTABLISHED)
>     exim4      7181 Debian-exim    3u  IPv4 663152       UDP myserver:35923->ns1.myisp.net:domain 
> ...and so on...

>
> ps aux shows all exim processes after restarting it an hour before.
>     Debian-   6162  0.0  0.2  8488 2556 ?        Ss   13:06   0:00 /usr/sbin/exim4 -bd -q30m
>     Debian-   6292  0.0  0.2  8500 2692 ?        S    13:11   0:00 /usr/sbin/exim4 -bd -q30m
>     Debian-   6304  0.0  0.2  8500 2692 ?        S    13:12   0:00 /usr/sbin/exim4 -bd -q30m
>     Debian-   6399  0.0  0.2  8500 2692 ?        S    13:35   0:00 /usr/sbin/exim4 -bd -q30m
>     Debian-   6453  0.0  0.2  8500 2692 ?        S    13:42   0:00 /usr/sbin/exim4 -bd -q30m
>     Debian-   6461  0.0  0.2  8500 2692 ?        S    13:45   0:00 /usr/sbin/exim4 -bd -q30m
>     Debian-   6472  0.0  0.2  8500 2692 ?        S    13:48   0:00 /usr/sbin/exim4 -bd -q30m
>     Debian-   6794  0.0  0.2  8508 2760 ?        S    14:35   0:00 /usr/sbin/exim4 -bd -q30m
>     Debian-   6863  0.0  0.2  8500 2692 ?        S    14:43   0:00 /usr/sbin/exim4 -bd -q30m
>     Debian-   7154  0.0  0.2  8500 2692 ?        S    15:25   0:00 /usr/sbin/exim4 -bd -q30m
>     Debian-   7181  0.0  0.2  8500 2692 ?        S    15:30   0:00 /usr/sbin/exim4 -bd -q30m
>     Debian-   7256  0.0  0.2  8508 2760 ?        S    15:36   0:00 /usr/sbin/exim4 -bd -q30m
>     Debian-   7297  0.0  0.2  8496 2592 ?        S    15:42   0:00 /usr/sbin/exim4 -bd -q30m
>     Debian-   7324  0.0  0.2  8504 2688 ?        S    15:48   0:00 /usr/sbin/exim4 -bd -q30m
>     Debian-   7330  0.0  0.2  8500 2692 ?        S    15:50   0:00 /usr/sbin/exim4 -bd -q30m
>     Debian-   7393  0.0  0.2  8508 2760 ?        S    16:04   0:00 /usr/sbin/exim4 -bd -q30m

>
>
> --
> Rory Campbell-Lange
> <rory@???>
> <www.campbell-lange.net>


--
Rory Campbell-Lange
<rory@???>
<www.campbell-lange.net>