Depends on your operating system.  For Solaris/Unix, it's 'ps'.

While we're on the topic of Java processes, I've got a question:

We're running Solaris 2.7 + JDK 1.3.1, and I find one of the best debugging
"tools" for our J2EE application is 'kill -3 xxx', where xxx is the process
id.  This of course produces a full thread dump and is extremely useful in
diagnosing a hung or deadlocked server.  However, I was wondering if anyone
know how to redirect this output to, say, a log file, instead of standard
out?  I've tried playing around with a all other kill signals (1-9), a
couple of them do produce a log file;  but not with the thread dump.

Gene

-----Original Message-----
From: Sankaran, Rajesh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 9:46 AM
To: [EMAIL PROTECTED]
Subject: How to find process id of a java process?


Hi all,

This may not be an appropriate question in this list, but could someone
through light or directions on how to find out process id of a java process?

Thanks.
Rajesh

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to