100% CPU on SocketChannelImpl.connect()
Guy Korland
gkorland at gmail.com
Tue Apr 15 13:44:17 PDT 2008
I'm pretty sure that it's looping since the profiler shows that the
CPU is wasted in the method buddy.
Guy
On Tue, Apr 15, 2008 at 11:29 PM, Alan Bateman <Alan.Bateman at sun.com> wrote:
> 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.
> >
> > Guy
> >
> >
> This may not be an OpenJDK issue in which case it may be better to seek
> help in the networking forum [1]. 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.
>
> -Alan.
>
> [1] http://forum.java.sun.com/forum.jspa?forumID=536
>
More information about the net-dev
mailing list