0

I am working on a Java application. I have assigned Xms=3gb and Xmx =4gb. I want to check that how much memory is assigned to young generation and old generation and survivor space. I have not explicitly defined the -XX:NewRatio or -XX:NewSize. I am using jdk 1.6

ajay
  • 215
  • 1
  • 3
  • 15

3 Answers3

1

JVisualvm is what are you looking for.

Dmitry Zagorulkin
  • 8,370
  • 4
  • 37
  • 60
1

You can use the jmap command line tool:

jmap -heap <process id>

Eyal Schneider
  • 22,166
  • 5
  • 47
  • 78
0

Try JConsole:

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

Achintya Jha
  • 12,735
  • 2
  • 27
  • 39