Lucy,

I did this the other day while I was tracking the Plugin not shutting down
bug that I reported.

I adapted the code from "Java Examples in a Nutshell" which you can download
from the O'Reilley web site. The class is called ThreadLister.

Here are the threads (27) that were running in my app:

Thread: Signal dispatcher  Priority: 5 Daemon
Thread: Reference Handler  Priority: 10 Daemon
Thread: Finalizer  Priority: 8 Daemon
Thread: AWT-Finalizer  Priority: 9 Daemon
Thread: TimerQueue  Priority: 4 Daemon
Thread: Thread-2  Priority: 1 Daemon
Thread: TimerQueue  Priority: 4 Daemon

Thread: main  Priority: 5
Thread: AWT-EventQueue-0  Priority: 6
Thread: SunToolkit.PostEventQueue-0  Priority: 5
Thread: AWT-Windows  Priority: 5
Thread: Screen Updater  Priority: 4
Thread: Thread-12  Priority: 5
Thread: thread applet-CJavaMetApplet.class  Priority: 4
Thread: AWT-EventQueue-1  Priority: 4
Thread: SunToolkit.PostEventQueue-1  Priority: 4
Thread: J3D-UniverseManager-1  Priority: 4
Thread: J3D-Behavior-1  Priority: 4
Thread: J3D-Collision-1  Priority: 4
Thread: J3D-Input-1  Priority: 4
Thread: J3D-Traverser-1  Priority: 4
Thread: J3D-View-1  Priority: 4
Thread: J3D-Renderer-1  Priority: 4
Thread: J3D-SoundScheduler-1  Priority: 4
Thread: thread applet-CJavaMetApplet.class  Priority: 4
Thread: AWT-EventQueue-2  Priority: 4
Thread: SunToolkit.PostEventQueue-2  Priority: 4

Hope that helps,

Daniel Selman
Tornado Labs Ltd.

Email:   [EMAIL PROTECTED]
Web:     www.tornadolabs.com
Phone:   +44 (0131) 343 2513
Fax:     +44 07070 800 483



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Lucy
Boyd-Wilson
Sent: 31 March 1999 05:49
To: [EMAIL PROTECTED]
Subject: [java3d] Performance monitoring & threads


Does anyone know of some good performance monitoring tools for Java/Java3d.
I'd like to see thread activity and memory usage.

I'm using NT4 sp3.
I've had a look at the performance monitor in the NT resource Kit. My very
small java app has 15 threads (!). The threads are numbered 0-14 but I have
no idea what the threads are. SO the ideal performance monitoring tool would
list the threads with some sort of human readable label (e.g. the
class/object that the thread belongs to).

At the very least - how do you do a thread dump of a java app? I want to
dump ALL the threads of the app not just the current thread - hopefully this
would give me the thread ids so I can use the NT ResKit performance monitor.

lucy

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/



=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to