Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting a stack trace

Status
Not open for further replies.

mufka

ISP
Dec 18, 2000
587
US
I am using j2sdk1.4.0 with Jrun 3.1 on Redhat 7.1 and I need to get a stack trace to see what is causing high CPU utilization ( and killing the apache web server periodically ). How is this done?

Thanks
 
In the Thread class:
static void dumpStack()
Prints a stack trace of the current thread.


This is the output I get in my Tester class (jdk 1.4)
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1071)
at Tester.main(Tester.java:15)

Even though there's no Exception (it keeps working fine afterwards...)
 
Is there a way that I can do it at the server level? I don't know anything about Java programming.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top