Luis Neves a écrit :
I don't know how to intepret the output of lsof, but there is a
significant diference between asyncweb/mina-0.8.2 and
asyncweb/mina-0.9.3.
lsof alone is a little bit too much. Try :
lsof -i @localhost:<the used port>
where <the used port> is the port number you are using.
It will give you all the IP socket opened on your system, and the PID
(second column) will tell you which process is using these sockets.
You can count them :
lsof -i @localhost:<the used port> | wc -l
and if you do it periodically, you will see if this number increase
while your program "eats" some connections.
Another solution is tu use :
lsof -p <process id>
which will give you the number of openned socket by your program.
Try also with a
netstat -a | grep <your port>
which will give you the current state of all your sockets. If you get a
lot of socket in TIME_WAIT, then it may be the cause of your too many
open files. You may then want to change the IP parameters, to close
sockets faster (default value is 30 s, AFAIR).
Emmanuel