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? 


      

Reply via email to