100% CPU on SocketChannelImpl.connect()
Alan.Bateman at Sun.COM
Tue Apr 15 13:29:39 PDT 2008
Guy Korland wrote:
> We saw it happens on JDK5.0_u14 and JDK6.0_u5 also it happens on Linux
> and Windows.
> As you can see form the attached jpg the application only call
> connect() 20 times but it takes around 6 minutes.
This may not be an OpenJDK issue in which case it may be better to seek
help in the networking forum . That said, are you sure the code is
looping? Any chance the profiler is reporting elapsed rather than CPU
time and the connect is hanging for a timeout period because the
connection cannot be established.
More information about the net-dev