Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

JVM Debugger Memory View for IntelliJ IDEA

DZone's Guide to

JVM Debugger Memory View for IntelliJ IDEA

JetBrains introduces a new plugin to extend the built-in debugger in IntelliJ IDEA.

· Java Zone
Free Resource

Get the Edge with a Professional Java IDE. 30-day free trial.

Every day we try to find new ways to improve developer experience with IntelliJ IDEA. It may be a bugfix, a performance improvement, or a new feature (usually in this order). Today we’d like to introduce a new plugin called JVM Debugger Memory View.

The plugin extends the built-in debugger with capabilities to explore objects in the JVM heap during a debug session. The Memory View shows you the total number of objects in the heap grouped by their class name.

memory_analyzer_2

When you’re stepping over the code, the Diff column shows how the number of objects changes between debugger stops. This way you can easily see how the code you’re stepping over affects the heap.

A double click on a class name, opens a dialog with instances of this class.

Image title

The dialog lets you filter instances by an evaluated expression. All debugger operations such as Inspect, Mark Object, Evaluate Expression, Add to Watches, etc can be applied to instances in this dialog.

To install the plugin, open Settings → Plugins, click Install JetBrains plugin and search for “JVM Debugger Memory View”.

Found a bug or miss a feature? Your feedback is very welcome in the issue tracker.

Develop with Pleasure!

Get the Java IDE that understands code & makes developing enjoyable. Level up your code with IntelliJ IDEA. Download the free trial.

Topics:
jvm ,intellij idea debugging ,intellij idea

Published at DZone with permission of Andrey Cheptsov, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}