How to enable memory monitors in Eclipse (Java project)?

I am trying to check the contents of memory (bytes) of an object in a Java project. The program is suspended in the Eclipse environment.
Like never before: Memory view disabled - as in: the Add Memory monitor + button is grayed out.

Eclipse-memory_view-disabled

Why?

+6
source share
2 answers

This question seems to have remained unanswered for quite some time, and the one that is sure above does not help. This is the only message I could find.

In the Eclipse help platform, information about the memory representation can be found in the C/C++ Development User Guide > Reference > Debug Views > Memory View , but this is not useful when you were in Java. This is not so easy to find in the Java Development Guide . Adding only the Java Development Guide to the area and searching for memory returns information about "View memory" in "Run and debug", but does not help much. This view, but not found in the same > Reference > Debug Views > , as in the C / C ++ manual.

When you run the program in debug mode in Eclipse C \ C ++, the + icon in memory lights up and you can add addresses. However, running your program in a Debug view is not like Eclipse Java. I assume that it cannot be used in Java Eclipse or has a special use case that is not mentioned.

+1
source

Using JConsole The JConsole graphical user interface is a monitoring tool that complies with the Java Management Extensions (JMX) specification. JConsole uses the extensive Java Virtual Machine (Java VM) hardware to provide information about the performance and resource consumption of applications running on the Java platform.

In the Java Platform Standard Edition (Java SE platform) 6, JConsole has been updated to present the look of Windows and GNOME desktops (other platforms will introduce the standard Java GUI). The screen captures presented in this document were taken from an instance of an interface running on Windows XP.

Starting JConsole The jconsole executable can be found in JDK_HOME / bin, where JDK_HOME is the directory where the Java Development Kit (JDK) is installed. If this directory is in your system path, you can start JConsole by simply typing jconsole at a command prompt. Otherwise, you must enter the full path to the executable.

Command syntax You can use JConsole to monitor both local applications and those that run on the same system as JConsole, as well as remote applications, namely those that run on other systems.

source: http://docs.oracle.com/javase/6/docs/technotes/guides/management/jconsole.html

-2
source

All Articles