dcsimg
help!!! where comes so many handles(socket connection) ?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   michael_mingking
Posted On:   Wednesday, October 27, 2010 09:50 PM

Our company has a Java network application,which is running as a socketserver : receive client request,do some process,return response. the app will start some(20 for example) working threads when startup, these threads will call the socketserver's accept() method to receive client's socket connection. my problem is : after running a long time(maybe several weeks/days),there will appear a lot of handles suddenly (more than a million),then I'll get "No buffer space available"error. After some analysis, we found all these handles are DeviceTcp handles and listening the 65535 port( not our app's service port) . how comes this port appears? our OS is windows 2003, Jre is sun's 1.4.2( we change the jre to sun's 1.6 later, bu   More>>

Our company has a Java network application,which is running as a socketserver : receive client request,do some process,return response. the app will start some(20 for example) working threads when startup, these threads will call the socketserver's accept() method to receive client's socket connection.


my problem is : after running a long time(maybe several weeks/days),there will appear a lot of handles suddenly (more than a million),then I'll get "No buffer space available"error. After some analysis, we found all these handles are DeviceTcp handles and listening the 65535 port( not our app's service port) . how comes this port appears?


our OS is windows 2003, Jre is sun's 1.4.2( we change the jre to sun's 1.6 later, but got the same problem )



any guru here could give some help? thanks a log in advance!

   <<Less
About | Sitemap | Contact