Slides for JavaOne BOF - Monitoring and Troubleshooting Java Applications
Tomas Hurka and I gave a BOF last night presenting "Monitoring and Troubleshooting Java applications using JDK tools". The slides give an overview of the tools in the JDK, summarize the symptom and tools to use to diagnose a few typical performance problems including memory leak, deadlock, high lock contention that we walked through the demos. Check out the documentation, article and other resources listed in the slides that has detailed information.
If you are using JDK 5 or 6 earlier to update 7, you can download Java VisualVM at http://visualvm.dev.java.net/.
- Login or register to post comments
- Printer-friendly version
- mandychung's blog
- 1915 reads






Comments
Information about jconsole
by mayank_gupta - 2010-06-24 00:46
Hi I would be greatful if you could help me out in some issues. I want to calculate cpu usage of a process and i saw the source code for jconsole on one of the website. long elapsedCpu = result.processCpuTime - prevProcessCpuTime; long elapsedTime = result.upTime - prevUpTime; // cpuUsage could go higher than 100% because elapsedTime // and elapsedCpu are not fetched simultaneously. Limit to // 99% to avoid Plotter showing a scale from 0% to 200%. float cpuUsage = Math.min(99F, elapsedCpu / (elapsedTime * 10000F * result.nCPUs)); But the class com.sun.management is required for above code to work. But this import is not supported on Windows.So can You help me out in finding the CPU usage of a process using java. Thanksby mortazavi - 2009-06-07 02:23
Hi Mandy - Very nice presentation -- concise and in a very useful summary format! (I couldn't make it to the BoF. So, thanks for sharing it ...)