----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

I can get access to my current thread group, but how can I get access to
all the thread groups?  Does jserv use only 1 thread group?  (Which I
highly doubt.) 

-----Original Message-----
From: Nimret Sandhu
To: [EMAIL PROTECTED]
Sent: 07/28/2000 5:18 PM
Subject: Re: is there a "top" like utility but for Java threads?

On Fri, 28 Jul 2000, you wrote:
> Is there a way to have a thread monitor the cpu and memory usage of
other
> threads?  Similar to UNIX's top command?

yes .. ive written something like this a couple of times .. but the info
comes
from the java vm which is going to be different from what the os tells
u. there
are also profiling tools which will give u this info .. the java runtime
also
has a profiling option - check the dox.

u can write your own .. look at the api in the Thread, ThreadGroup and
System
classes.

> Has anyone written such a thing?
> Any ideas?

regs ~
-- 
Nimret Sandhu
http://nimret.penguinpowered.com || http://nimret.dhs.org
http://www.360.com


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to