Re: 100% CPU on SocketChannelImpl.connect()

2008-04-15 Thread Guy Korland
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 <[EMAIL PROTECTED]> wrote: > Guy Korland wrote: > > > We saw it happens on JDK5.0_u14 and JDK6.0_u5 also it happens on Linux > > and Windows. >

Re: 100% CPU on SocketChannelImpl.connect()

2008-04-15 Thread Alan Bateman
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

Re: 100% CPU on SocketChannelImpl.connect()

2008-04-15 Thread Guy Korland
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 On Tue, Apr 15, 2008 at 9:04 PM, Alan Bateman <[EMAIL PROTECTED]> wrote: > Guy Korland wrote: >

Re: 100% CPU on SocketChannelImpl.connect()

2008-04-15 Thread Alan Bateman
Guy Korland wrote: I haven't seen this code cause problems before. Do you have an example that demonstrates this? I don't have a specific example, we saw it when using we Jini with an Exporter that we developed based on NIO. If so, which operating system? We saw it on windows XP

Re: 100% CPU on SocketChannelImpl.connect()

2008-04-15 Thread Guy Korland
>I haven't seen this code cause problems before. Do you have an example that >demonstrates this? I don't have a specific example, we saw it when using we Jini with an Exporter that we developed based on NIO. >If so, which operating system? We saw it on windows XP >I assume for this to loop the ch

Re: 100% CPU on SocketChannelImpl.connect()

2008-04-15 Thread Alan Bateman
Guy Korland wrote: Hi, It seems like the following code causes an endless loop in some cases. for (;;) { InetAddress ia = isa.getAddress(); if (ia.isAnyLocalAddress()) ia = InetAddress.getLocalHost(); n = Net.connect(fd, ia, isa.getPort(),trafficClass); if ((n == IOStatus.INTE

100% CPU on SocketChannelImpl.connect()

2008-04-15 Thread Guy Korland
Hi, It seems like the following code causes an endless loop in some cases. for (;;) { InetAddress ia = isa.getAddress(); if (ia.isAnyLocalAddress()) ia = InetAddress.getLocalHost(); n = Net.connect(fd, ia, isa.getPort(),trafficClass); if ((n == IOStatus.INTERRUPTED) && is