Thanks Bruce. Not only do I have a way to find problem threads, I know what
has been killing performance with some of my Java programs on the desktop.

On Tue, Feb 15, 2011 at 5:48 PM, <[email protected]> wrote:

> I wrote a tool for identifying which threads are chewing up all the CPU. I
> publicized it in my blog here
>
> http://weblogs.java.net/blog/2008/03/25/hot-threads
>
> I think you could use this tool to identify which thread in your
> application is
> hogging the CPU and what that thread is doing.
>
> Bruce
>
>
> Quoting "[email protected]" <[email protected]>:
>
> > hi:
> >
> >  I found a java process whose cpu is almost 100% at my notebook.
> >
> >  Here is the top output:
> >
> >  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
> >
> >  6150 root 20 0 1411m 612m 12m R 98.8 15.7 45:49.12
> >
> > and the jstack output for thread 6150(0x1806):
> > "VM Thread" prio=10 tid=0x0000000040ca9000 nid=0x1806 runnable
> >
> > the last is jstat -gc output:
> >
> > S0C S1C S0U S1U EC EU OC OU PC
> > PU YGC YGCT FGC FGCT GCT
> >  64.0 64.0 0.0 0.0 332992.0 0.0 666304.0 73192.5 83968.0
> > 83967.9 6893 17.576 6882 2705.923 2723.499
> >
> > I don't know what the "VM Thread" is doing all the time.
> >
> > Some peopel encounter the same problem?
> >
> >  Here is my enviromen:
> >  Jvm:
> >  java version "1.6.0_23"
> > Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> > Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
> >
> > OS:
> > Linux 2.6.35-26-generic #46-Ubuntu SMP Sun Jan 30 06:59:07 UTC 2011
> > x86_64
> > GNU/Linux
> >
> > Thanks.
> >
> >
> >
> > --
> > d0ngd0ng
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "The Java Posse" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> > http://groups.google.com/group/javaposse?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "The Java Posse" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.
>
>


-- 
Robert Casto
www.robertcasto.com

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to