« Return to Thread: CPU consuming thread, help to analyze

Re: CPU consuming thread, help to analyze

by Binod :: Rate this Message:

| View in Thread

It is the selector thread that selects a set of keys that are ready  
for IO operations.

Hope you are using latest JDK 1.6 available (just to make sure that  
there is no selector spinning
issues with your JDK).

Alexy might know if there is any known selector spinning issues with  
grizzly 1.8.x...

- Binod.

On 17-Aug-10, at 6:23 PM, Harri Jaakkola wrote:

>
> Hi,
> Bear with me, I am not very familiar in Sailfin/Glassfish code, but  
> I hope
> you are the ones to help...
>
> I have been running a small 2 instance SGCS cluster with very basic  
> SIP and
> HTTP towards simple test servlets for some hours, and after shutting  
> down
> the client, I can still after several idle hours see ONE of the  
> instances
> consuming CPU. I did some analysis and think this may be the consuming
> thread:
>
> "Thread-15" prio=10 tid=0x00002aab7a7d0000 nid=0x448b runnable
> [0x0000000041a08000]
>   java.lang.Thread.State: RUNNABLE
>        at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
>        at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:
> 215)
>        at  
> sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:65)
>        at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:
> 69)
>        - locked <0x00002aaab75fb3b8> (a sun.nio.ch.Util$1)
>        - locked <0x00002aaab75fb3d0> (a
> java.util.Collections$UnmodifiableSet)
>        - locked <0x00002aaab75f3b68> (a sun.nio.ch.EPollSelectorImpl)
>        at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
>        at
> com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:469)
>        at com.sun.grizzly.Controller.doSelect(Controller.java:369)
>        at
> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:
> 82)
>        at
> com
> .sun.grizzly.Controller.startSelectorHandlerRunner(Controller.java:
> 1136)
>        at com.sun.grizzly.Controller.start(Controller.java:943)
>        at com.sun.grizzly.Controller.run(Controller.java:813)
>        at java.lang.Thread.run(Thread.java:619)
>
> Any ideas of what can cause this? What does this thread do?
>
> I am currently on SGCS,
> Sun GlassFish Communications Server 2.0 ((v2.1 Patch11)(9.1_02  
> Patch17))
> (build b01-p05)
>
> OLP and CLB is enabled.
>
> Best Regards,
> Harri
>
> --
> View this message in context: http://old.nabble.com/CPU-consuming-thread%2C-help-to-analyze-tp29449258p29449258.html
> Sent from the SailFin - Development mailing list archive at  
> Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: CPU consuming thread, help to analyze