I&#39;ll switch to use the OioServerSocketChannelFactory - and see if the CPU spin goes away and report back. <br><br><div class="gmail_quote">On Fri, Aug 7, 2009 at 6:15 PM, Ernesto A. <span dir="ltr">&lt;<a href="mailto:eaneiros@gmail.com">eaneiros@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">&gt; Thanks Ernesto,<br>
&gt; Im not in a position to upgrade the jdk - and it will be a long while before<br>
&gt; 1.6u16 is out - 14 is only just out the door.<br>
<br>
</div>Yes I know about about jdk u16 not being ready yet, I recommended<br>
upgrading to the latest, in this case 14, as it is recommended to<br>
always run the latest. But this is not your case.<br>
<div class="im"><br>
&gt; There are some workarounds mentioned on the first post of this thread...is<br>
&gt; it possible for me to pickup a patch and test it?<br>
<br>
</div>First you need to find out the exact problem you are having before<br>
doing any patching, it could be the described bug, but it could also<br>
be something else. And if you cannot upgrade the jdk, can you patch<br>
<div><div></div><div class="h5">it?<br>
<br>
&gt;<br>
&gt; Regards<br>
&gt; Neil.<br>
&gt;<br>
&gt; On Fri, Aug 7, 2009 at 3:54 PM, Ernesto A. (via Nabble) &lt;<br>
&gt; <a href="mailto:ml-user%2B243346-445243325@n2.nabble.com">ml-user+243346-445243325@n2.nabble.com</a>&lt;<a href="mailto:ml-user%252B243346-445243325@n2.nabble.com">ml-user%2B243346-445243325@n2.nabble.com</a>&gt;<br>

&gt;&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hi again,<br>
&gt;&gt;<br>
&gt;&gt; a bit more of info, I see you are running jdk 1.6_u12, even though not<br>
&gt;&gt; exactly the same, check this link<br>
&gt;&gt; <a href="http://issues.apache.org/jira/browse/DIRMINA-678" target="_blank">http://issues.apache.org/jira/browse/DIRMINA-678</a> for a similar issue<br>
&gt;&gt; on mina, they mention that a fix for the bug mentioned on that post<br>
&gt;&gt; would be out for update 16 of jdk 6, so I think you should try and<br>
&gt;&gt; update to the last jdk version too.<br>
&gt;&gt;<br>
&gt;&gt; best regards, ernesto.<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Aug 7, 2009 at 8:56 AM, neilson9&lt;[hidden email]&lt;<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&amp;node=3404822&amp;i=0" target="_blank">http://n2.nabble.com/user/SendEmail.jtp?type=node&amp;node=3404822&amp;i=0</a>&gt;&gt;<br>

&gt;&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Hi Trustin,<br>
&gt;&gt; &gt; Im not 100% - but since porting onto OpenSolaris we are getting a CPU<br>
&gt;&gt; spin<br>
&gt;&gt; &gt; and the only thing we can pin it on is the NIO bug - we dont see it on<br>
&gt;&gt; &gt; Linux, OSX or windows platforms.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; We run an agent process and ensure its not doing any work and after a<br>
&gt;&gt; minute<br>
&gt;&gt; &gt; or so it starts to spin up on the CPU.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Do you have any suggestions we could try?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; platform: OpenSolaris/Sunos, Java1.6_u12, Netty 3.1.0 (nightly build -<br>
&gt;&gt; just<br>
&gt;&gt; &gt; before GA)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Regards Neil.<br>
&gt;&gt; &gt; Dump<br>
&gt;&gt; &gt; &quot;New I/O server boss #2 (channelId: 22142166, /<a href="http://0.0.0.0:12004" target="_blank">0.0.0.0:12004</a>)&quot; - Thread<br>
&gt;&gt; t@48<br>
&gt;&gt; &gt; � java.lang.Thread.State: RUNNABLE<br>
&gt;&gt; &gt; � � � �at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)<br>
&gt;&gt; &gt; � � � �at<br>
&gt;&gt; sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)<br>
&gt;&gt; &gt; � � � �at<br>
&gt;&gt; sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)<br>
&gt;&gt; &gt; � � � �at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)<br>
&gt;&gt; &gt; � � � �- locked sun.nio.ch.Util$1@174b8f3<br>
&gt;&gt; &gt; � � � �- locked java.util.Collections$UnmodifiableSet@2861e0<br>
&gt;&gt; &gt; � � � �- locked sun.nio.ch.DevPollSelectorImpl@403e75<br>
&gt;&gt; &gt; � � � �at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)<br>
&gt;&gt; &gt; � � � �at<br>
&gt;&gt; sun.nio.ch.ServerSocketAdaptor.accept(ServerSocketAdaptor.java:105)<br>
&gt;&gt; &gt; � � � �- locked java.lang.Object@1c49654<br>
&gt;&gt; &gt; � � � �at<br>
&gt;&gt; &gt;<br>
&gt;&gt; org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink$Boss.run(NioServerSocketPipelineSink.java:216)<br>
&gt;&gt;<br>
&gt;&gt; &gt; � � � �at<br>
&gt;&gt; &gt;<br>
&gt;&gt; org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:110)<br>
&gt;&gt;<br>
&gt;&gt; &gt; � � � �at<br>
&gt;&gt; &gt;<br>
&gt;&gt; org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:53)<br>
&gt;&gt;<br>
&gt;&gt; &gt; � � � �at<br>
&gt;&gt; &gt;<br>
&gt;&gt; java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br>
&gt;&gt;<br>
&gt;&gt; &gt; � � � �at<br>
&gt;&gt; &gt;<br>
&gt;&gt; java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br>
&gt;&gt;<br>
&gt;&gt; &gt; � � � �at java.lang.Thread.run(Thread.java:619)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; � Locked ownable synchronizers:<br>
&gt;&gt; &gt; � � � �- locked<br>
&gt;&gt; java.util.concurrent.locks.ReentrantLock$NonfairSync@16990c9<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; View this message in context:<br>
&gt;&gt; <a href="http://n2.nabble.com/Anyone-experiencing-100--CPU-consumption-in-Netty-NIO-transports--tp3140291p3404186.html" target="_blank">http://n2.nabble.com/Anyone-experiencing-100--CPU-consumption-in-Netty-NIO-transports--tp3140291p3404186.html</a><br>

&gt;&gt; &gt; Sent from the Netty User Group mailing list archive at Nabble.com.<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; netty-users mailing list<br>
&gt;&gt; &gt; [hidden email]&lt;<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&amp;node=3404822&amp;i=1" target="_blank">http://n2.nabble.com/user/SendEmail.jtp?type=node&amp;node=3404822&amp;i=1</a>&gt;<br>
&gt;&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; netty-users mailing list<br>
&gt;&gt; [hidden email]&lt;<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&amp;node=3404822&amp;i=2" target="_blank">http://n2.nabble.com/user/SendEmail.jtp?type=node&amp;node=3404822&amp;i=2</a>&gt;<br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt; �View message @<br>
&gt;&gt; <a href="http://n2.nabble.com/Anyone-experiencing-100--CPU-consumption-in-Netty-NIO-transports--tp3140291p3404822.html" target="_blank">http://n2.nabble.com/Anyone-experiencing-100--CPU-consumption-in-Netty-NIO-transports--tp3140291p3404822.html</a><br>

&gt;&gt; To unsubscribe from Re: Anyone experiencing 100% CPU consumption in Netty<br>
&gt;&gt; NIO transports?, click here&lt; (link removed) =&gt;.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context: <a href="http://n2.nabble.com/Anyone-experiencing-100--CPU-consumption-in-Netty-NIO-transports--tp3140291p3404887.html" target="_blank">http://n2.nabble.com/Anyone-experiencing-100--CPU-consumption-in-Netty-NIO-transports--tp3140291p3404887.html</a><br>

&gt; Sent from the Netty User Group mailing list archive at Nabble.com.<br>
&gt; _______________________________________________<br>
&gt; netty-users mailing list<br>
&gt; <a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
&gt;<br>
<br>
_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
</div></div></blockquote></div><br>