JvisualVM Usage ABS

Embed Size (px)

Citation preview

ABS Laundry Business Solutions

1ABS Laundry Business Solutions JvisualVM presentation04/07/0812

Want to find the broken wire?04/07/082General overviewWhat isHow to startHow to useTips and examples

304/07/083Profiling/monitoringSamplingmeans taking snapshots of thread dumps and analyzing stack traces Monitoring is pre-emptive. Allows you to detect potential problemsProfilingmeans instrumentation of classes and methods, so they "report" whenever they are run

404/07/084Usage:Starting point: [JAVA_HOME]\bin\jvisualvm.exeUseful application start parameters:-Xmx1024m Xms512m-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=[PATH]\MY_HEAP.hprof"07.04.08Features: (1/2)Display local and remote Java applications.Display application configuration and runtime environment.Monitor application memory consumption and runtime behavior.Monitor application threads.07.04.08Features (2/2)Profile application performance or analyze memory allocation via profiler.Take and display thread dumps.Take and browse heap dumps.Analyze core dumps.Analyze applications offline.Extendable via plugins07.04.08Deadlock example

04/07/088Memory leaksLink between memory leak and OutOfMemory (OOM).