September 21, 2011

Detect memory leaks in java projects with Visual VM

VisualVM provides detailed information about Java applications while they are running on the Java Virutal Machine (JVM). VisualVM's graphical user interface enables you to quickly and easily see information about multiple Java applications.

Visual VM provides following features.

  • Dynamically monitor (with live updates) the Java application as it runs, including GC activity, heap allocation activity, loaded classes, and running threads.

  • Monitor CPU usage per thread within your application, and visually identify deadlocks, contention, and other potential locking issues.

  • Monitor memory usage to watch allocations in action, or take heap dumps at specific moments of time and then compare them to locate potential memory leaks.

  • Profile your application to identify the largest consumers of memory and CPU within your application, to help you locate hot spots for further debugging and optimizations.

  • Are you experiencing JVM shutdowns, crashes, or core dumps? You can use VisualVM to analyze the output of the core dump or JVM shutdown to help determine what lead up to it.


  • For more info About Visual VM click here

    No comments:

    Post a Comment