I am running qmail w/ tcpserver, dnscache, and daemontools.  Latest
versions of each, despite the annoying tai64n timestamps on multilog.
;-)
  
Two to three times a day, tcpserver seems to slow way down.  While it is
acting up like this, it will accept a connection but will not actually
start qmail-smtpd for upwards of 60 - 90 seconds.  In the logs, that
looks like this:
  
2000-08-01 07:41:34.707211500 tcpserver: pid 61983 from 205.188.157.37
2000-08-01 07:41:35.418205500 tcpserver: status: 8/80
2000-08-01 07:41:35.419082500 tcpserver: pid 61985 from 38.202.217.115
2000-08-01 07:41:36.068649500 tcpserver: status: 9/80
2000-08-01 07:41:36.069495500 tcpserver: pid 61989 from 204.160.241.38
2000-08-01 07:41:36.357244500 tcpserver: status: 10/80
2000-08-01 07:41:36.363963500 tcpserver: pid 61992 from 216.243.128.254
2000-08-01 07:41:37.410698500 tcpserver: status: 11/80
  
<snip>
  
2000-08-01 07:42:25.356440500 tcpserver: pid 62056 from 216.243.128.254
2000-08-01 07:42:33.785679500 tcpserver: ok 61983 :216.243.128.140:25
:205.188.1
2000-08-01 07:42:34.229199500 tcpserver: end 61983 status 0
2000-08-01 07:42:34.229575500 tcpserver: status: 22/80
2000-08-01 07:42:34.432984500 tcpserver: ok 61985
mail.bitstream.net:216.243.128
2000-08-01 07:42:34.453643500 tcpserver: ok 61989
mail.bitstream.net:216.243.128
2000-08-01 07:42:34.455611500 tcpserver: status: 23/80
2000-08-01 07:42:34.461901500 tcpserver: pid 62070 from 216.243.128.254
  
Note the delay from when it notes the start of a connection (07:41:34)
to when it actually accepts it and says OK (07:42:25).  This one only          
lasted ~ 1 minute, but I have seen it take twice as long.  From other
logs it does not seem that the system load is getting too high.  I am
not obtaining $TCPREMOTEINFO or doing reverse lookups.  Here is the
command line I am using for tcpserver:
  
exec /usr/local/bin/softlimit -m 2000000 \
     /usr/local/bin/tcpserver -R -H -c80 -v -x \
     /etc/smtprules/tcp.smtp.cdb -u73 -g1003 0 smtp \
     /var/qmail/bin/qmail-smtpd 2>&1
  
Any ideas?
  
Thanks,
Ben

-- 
Ben Beuchler                                         [EMAIL PROTECTED]
MAILER-DAEMON                                         (612) 321-9290 x101
Bitstream Underground                                   www.bitstream.net

Reply via email to