users@glassfish.java.net

Re: Debugging Glassfish CPU usage

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 24 Mar 2009 15:27:57 +0100

Jagadish Prasath Ramu wrote:
>
> On Tue, 2009-03-24 at 15:11 +0100, Jeanfrancois Arcand wrote:
>> Salut,
>>
>> Jagadish Prasath Ramu wrote:
>>>
>>> On Tue, 2009-03-24 at 11:46 +0100, Jeanfrancois Arcand wrote:
>>>> Salut,
>>>>
>>>> glassfish_at_javadesktop.org wrote:
>>>> Jagadish, do you know if this could be the issue or not? But for sure
>>>> all Grizzly WorkerThread may gets locked by such call.
>>> jstack_dump_2009-03-23_22:10:22.txt
>>> I see 250 "httpWorkerThread-80*" threads of which 34 are used for
>>> database.
>> Hum, for that one:
>>
>> http://forums.java.net/jive/servlet/JiveServlet/download/56-59323-338654-8150/jstack_dump_2009-03-24_09:26:34.txt
>>
>> All Grizzly WorkerThread are locked.
> When resizer (cleaner) is doing cleanup of the pool, all the connections
> will be validated. This will make all the requesting threads to wait
> till resizer completes its job. This is a temporary wait stage.
>
> jstack_dump_2009-03-23_22:10:22.txt


Also 1 hour pass between the two jstack so I would think the slow down
happened during that time. How long does it take for the finalizer to
execute? That window might be the issue. It is really hard to say with
those 2 jstack as the time frame in between is really long.

A+

- Jeanfrancois


> For the above stack, only 34 out of 250 httpWorkerThreads are used by
> database calls. So, what could be the issue ?
>
> Thanks,
> -Jagadish
>>> Lets wait for "rwillie" to provide more details, output based on the
>>> proposed settings and see.
>> Thanks!
>>
>> -- Jeanfrancois
>>
>>
>>> Thanks,
>>> -Jagadish
>>>
>>>
>>>> A+
>>>>
>>>> -- Jeanfrancois
>>>>
>>>>
>>>>> Thanks!
>>>>> [Message sent by forum member 'rwillie6' (rwillie6)]
>>>>>
>>>>> http://forums.java.net/jive/thread.jspa?messageID=338656
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>