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?
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...)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.