Skip to main content

Slides for JavaOne BOF - Monitoring and Troubleshooting Java Applications

Posted by mandychung on June 4, 2009 at 6:45 PM PDT

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/.

Related Topics >>

Comments

Information about jconsole

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. Thanks

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 ...)