Maziyar Eslamieh wrote:
This is my problem exactly:
When client disconnect from server this exception is throw in server:
java.io.IOException: Connection reset by peer
then server perform below method:
public void exceptionCaught(IoSession session, Throwable cause) {
cause.printStackTrace();
session.close();
}
After closing connection in linux i do this command:
lsof|grep 9781|wc -l (9781 PID of server process)
I see that result of this command increase and after 1 day this number isn't
reduced. so after long time is throw java.net.SocketException: Too many files
open in MINA2 .
I set "ulimit -n 1024000".
What should i do?
This mail has already been posted once, and you got an answer from Trustin :
"Any reproduceable test code is appreciated. "
What do you think we can do to help you in any manner if you don't
provide valuable informations ?
Trick : Check your code. You certainly forget to close some connexion at
some point.
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org