I am running on windows, so I believe I can't use kill to terminate james.
Are there ip lists from known spambot attackers, so I can block them?

I will check my mysql next, maybe it has a performance issue. Maybe I can a
puzzle of the problem there (Changed from mysql 4.0.x to 4.1.x recently). I
have still no idea why James is not recovering, but configured all logs as
debug now, hopefully I will find another hint there.

What do you mean with "tune the TCP/IP stack"? How can I "fast fail" the
connections? 

Best regards,
Rudolf



-----Ursprüngliche Nachricht-----
Von: Noel J. Bergman [mailto:[EMAIL PROTECTED] 
Gesendet: Sonntag, 27. August 2006 22:01
An: James Users List; [EMAIL PROTECTED]
Betreff: RE: James running out of connections

> What makes me curios is, that james is not recovering, i got aware of 
> the problem 6 hours after the first connections problem and it did not 
> spooled even one message.

kill -3 against the james process ought to tell us what is happening with
the various threads.

> > I am runnning James since 2004 and never got such serious problems.

There are now millions of Microsoft spambots out there.  I've seen
connection rates go up by orders of magnitude.  Today I was looking at 5
connections per second in a relatively quiet corner of the Internet, which
is almost as much as the Apache infratructure had to deal with in the same
time period.

> Occasionally James runs out of connections

On a day like today, happens often.  Solutions are to fast fail them, tune
the TCP/IP stack, and block the worst offenders at the firewall.  The
solution is not to randomly add more connections.  Throwing more resources
-- more connections -- at the problem just allows more spambots to consume
them.  And more connections means more RAM, more CPU, which may spread those
resources too thin to properly handle the connections that you do have.

But JAMES should recover.  I see things like:

> 27/08/06 04:05:46 ERROR smtpserver: Unknown error occurred while
processing DATA.
> javax.mail.MessagingException: Unable to retrieve the data: Read timed
out;

and

> > 27/08/06 04:05:50 ERROR smtpserver: Socket to 190.40.245.30
(190.40.245.30) closed remotely.

all the time without problem.

> Maximum number of open connections exceeded - refusing connection.
Current number of connections is 60

You're just exposing more resources to the spambots.  There are infinitely
more of them than you can open connections.  And you have to be careful to
make sure that you tune connections, total threads, db connections, etc., to
prevent exhausting resources.

        --- Noel



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to