users@glassfish.java.net

Re: Grizzly consumes 100% CPU in SelectorThread.doSelect if client disconne

From: <glassfish_at_javadesktop.org>
Date: Sun, 16 Nov 2008 18:35:04 PST

I am seeing this exact problem in my environment. Is there a workaround or fix that I should be looking at?

(this is the offending thead trace that pins our cpu)
&quot;SelectorReaderThread-80&quot; prio=3 tid=0x000000012c01a000 nid=0x72 runnable [0xfffffff1c65ff000..0xfffffff1c65ff6c0]
   java.lang.Thread.State: RUNNABLE
        at sun.nio.ch.DevPollArrayWrapper.poll0(Native Method)
        at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:164)
        at sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
        - locked &lt;0xfffffff663577600&gt; (a sun.nio.ch.Util$1)
        - locked &lt;0xfffffff6635775d0&gt; (a java.util.Collections$UnmodifiableSet)
        - locked &lt;0xfffffff66029e4c0&gt; (a sun.nio.ch.DevPollSelectorImpl)
        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.doSelect(SelectorThread.java:1337)
        at com.sun.enterprise.web.connector.grizzly.SelectorReadThread.startEndpoint(SelectorReadThread.java:122)
        at com.sun.enterprise.web.connector.grizzly.SelectorThread.run(SelectorThread.java:1223)


Regards.


[JAVA]
# java -version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)

[OS]
# uname -a
SunOS hj-t5120-a 5.10 Generic_120011-14 sun4v sparc SUNW,SPARC-Enterprise-T5120

[Glassfish]
Sun Java System Application Server 9.1_02 (build b04-fcs)
[Message sent by forum member 'h1d3m3' (h1d3m3)]

http://forums.java.net/jive/thread.jspa?messageID=317013