Le 12/9/13 12:09 PM, Henning Rohlfs a écrit :
> Hello,
>
> we are using MINA 2.0.7 in our servers and clients. Recently (twice, on two
> separate servers), we saw a rather unexpected phenomenon: MINA's scheduled
> write messages kept rising (over about half a day) until our server ran out
> of memory. This has not happened before.
>
> There were also a number of connections stuck in CLOSE_WAIT, which usually
> don't occur on our servers. At the end we had more than 10 million
> scheduled messages with more than 500 MByte of scheduled data.

What about the clients ? Do you had some clients who sent some requests,
but never read them ? In this case, it's likely that the messages will
be stacked forever, growing and growing.

You should mitigate such situation, either by checking the client's
idleness, or by sending messages only if the previous message has been
sent (something you can control using the messageSent event).

-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com 

Reply via email to