dev@glassfish.java.net

Re: Glassfish failed to shutdown after stop-domain...

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 18 Mar 2008 11:00:54 -0400

Salut,

Jerome Dochez wrote:
> I have named all the timer instance to be able to identify which timer
> would not get released properly, here is this is the web-container-timer
> not being released.... I am not sure wha this is used for ?
>

This background thread is used by Catalina to reload classes, purge
sessions, etc.

> JFA ?

I suspect there is an exception swallowed that prevent a Web Application
(StandardContext) to stop properly. Usually the thread is stopped when
the application is undeployed/stopped.

Anything suspicious in the log? Do we have an issue filled for that?

A+

-- Jeanfrancois



>
> jerome
>
> On Mar 17, 2008, at 4:37 PM, Peter Williams wrote:
>
>> Here's the result of kill -3, build is from late Friday (Mar 14)
>>
>> Full thread dump Java HotSpot(TM) Server VM (10.0-b19 mixed mode):
>>
>> "ContainerBackgroundProcessor[StandardEngine[com.sun.appserv]]" daemon
>> prio=3 tid=0x08b3d000 nid=0x23 waiting on condition
>> [0xb5aa3000..0xb5aa3a70]
>> java.lang.Thread.State: TIMED_WAITING (sleeping)
>> at java.lang.Thread.sleep(Native Method)
>> at
>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1800)
>>
>> at java.lang.Thread.run(Thread.java:619)
>>
>> "web-container-timer" prio=3 tid=0x08af1400 nid=0x22 in Object.wait()
>> [0xb5af5000..0xb5af5af0]
>> java.lang.Thread.State: WAITING (on object monitor)
>> at java.lang.Object.wait(Native Method)
>> - waiting on <0xbb180938> (a java.util.TaskQueue)
>> at java.lang.Object.wait(Object.java:485)
>> at java.util.TimerThread.mainLoop(Timer.java:483)
>> - locked <0xbb180938> (a java.util.TaskQueue)
>> at java.util.TimerThread.run(Timer.java:462)
>>
>> "DestroyJavaVM" prio=3 tid=0x0806f800 nid=0x2 waiting on condition
>> [0x00000000..0xfe47bbb0]
>> java.lang.Thread.State: RUNNABLE
>>
>> "Low Memory Detector" daemon prio=3 tid=0x08147800 nid=0xb runnable
>> [0x00000000..0x00000000]
>> java.lang.Thread.State: RUNNABLE
>>
>> "CompilerThread1" daemon prio=3 tid=0x08144400 nid=0xa waiting on
>> condition [0x00000000..0xb682e058]
>> java.lang.Thread.State: RUNNABLE
>>
>> "CompilerThread0" daemon prio=3 tid=0x08142800 nid=0x9 waiting on
>> condition [0x00000000..0xb6c650d8]
>> java.lang.Thread.State: RUNNABLE
>>
>> "Signal Dispatcher" daemon prio=3 tid=0x08141800 nid=0x8 waiting on
>> condition [0x00000000..0x00000000]
>> java.lang.Thread.State: RUNNABLE
>>
>> "Finalizer" daemon prio=3 tid=0x08125000 nid=0x7 in Object.wait()
>> [0xb6d09000..0xb6d09c70]
>> java.lang.Thread.State: WAITING (on object monitor)
>> at java.lang.Object.wait(Native Method)
>> - waiting on <0xbaea9fa0> (a java.lang.ref.ReferenceQueue$Lock)
>> at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
>> - locked <0xbaea9fa0> (a java.lang.ref.ReferenceQueue$Lock)
>> at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
>> at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
>>
>> "Reference Handler" daemon prio=3 tid=0x08123c00 nid=0x6 in
>> Object.wait() [0xb6d5b000..0xb6d5b8f0]
>> java.lang.Thread.State: WAITING (on object monitor)
>> at java.lang.Object.wait(Native Method)
>> - waiting on <0xbae789e0> (a java.lang.ref.Reference$Lock)
>> at java.lang.Object.wait(Object.java:485)
>> at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
>> - locked <0xbae789e0> (a java.lang.ref.Reference$Lock)
>>
>> "VM Thread" prio=3 tid=0x08120800 nid=0x5 runnable
>>
>> "GC task thread#0 (ParallelGC)" prio=3 tid=0x08075800 nid=0x3 runnable
>>
>> "GC task thread#1 (ParallelGC)" prio=3 tid=0x08077000 nid=0x4 runnable
>>
>> "VM Periodic Task Thread" prio=3 tid=0x08149400 nid=0xc waiting on
>> condition
>>
>> JNI global references: 777
>>
>> Heap
>> PSYoungGen total 39424K, used 13335K [0xf3e00000, 0xfa200000,
>> 0xfb000000)
>> eden space 37888K, 31% used [0xf3e00000,0xf49882e0,0xf6300000)
>> from space 1536K, 99% used [0xf6300000,0xf647dc20,0xf6480000)
>> to space 12352K, 0% used [0xf95f0000,0xf95f0000,0xfa200000)
>> PSOldGen total 88064K, used 17990K [0xbae00000, 0xc0400000,
>> 0xf3e00000)
>> object space 88064K, 20% used [0xbae00000,0xbbf918a8,0xc0400000)
>> PSPermGen total 18432K, used 16421K [0xb6e00000, 0xb8000000,
>> 0xbae00000)
>> object space 18432K, 89% used [0xb6e00000,0xb7e097c8,0xb8000000)
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>