I am having a problem where my program runs out of resources. It appears that the program is leaking sockets. Here is a section of netstat -aon

  TCP    127.0.0.1:1199         127.0.0.1:1200         ESTABLISHED     4184
  TCP    127.0.0.1:1200         127.0.0.1:1199         ESTABLISHED     4184
  TCP    127.0.0.1:1201         127.0.0.1:1202         ESTABLISHED     4184
  TCP    127.0.0.1:1202         127.0.0.1:1201         ESTABLISHED     4184
  TCP    127.0.0.1:1203         127.0.0.1:1204         ESTABLISHED     4184
  TCP    127.0.0.1:1204         127.0.0.1:1203         ESTABLISHED     4184
  TCP    127.0.0.1:1205         127.0.0.1:1206         ESTABLISHED     4184
  TCP    127.0.0.1:1206         127.0.0.1:1205         ESTABLISHED     4184
  TCP    127.0.0.1:1207         127.0.0.1:1208         ESTABLISHED     4184
  TCP    127.0.0.1:1208         127.0.0.1:1207         ESTABLISHED     4184

All these connections are associated with my process but I'm not sure where or how they got created. The AvailablePortFinder finds these as occupied and will pick one missing in the sequence. Any idea how these are being created? Could it be an issue with the AvailablePortFinder?

I am using mina-2.0.0-RC2

Thanks, David

--

David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: [email protected]
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526

This e-mail communication (including any attachments) may contain confidential 
and/or privileged material intended solely for the individual or entity to 
which it is addressed.  If you are not the intended recipient, you should 
immediately stop reading this message and delete it from all computers that it 
resides on. Any unauthorized reading, distribution, copying or other use of 
this communication (or its attachments) is strictly prohibited.  If you have 
received this communication in error, please notify us immediately.


Reply via email to