You can use profiling

java -Xrunhprof[:help][:<suboption>=<value>,...] MyMainClass

u can specify various options for this

java -classic
-Xrunhprof:heap=sites,cpu=samples,depth=10,monitor=y,thread=y,doe=y

check this site for more details

http://www.javaworld.com/javaworld/jw-12-2001/jw-1207-hprof.html


The secret of getting ahead is getting started. The secret of getting start
is breaking your complex overwhelming tasks into small manageable tasks, and
then starting on the first one.
--Mark Twain


-----Original Message-----
From: Shahata, Ash [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 2:15 PM
To: [EMAIL PROTECTED]
Subject: Thread dumps


Hi all,
does anyone know how to generate a thead dump from my virtual machine? I
read before that I could do it from the virtual machine, however I'm not
quite sure where to get the virtual machine window or process open from? I
want to monitor the threads to check for deadlocks.

Thanks
Ash

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to