1

How do I determine the JVM heap size default values??

Note that I'm not interested in setting or modifying its initial, minimum, or maximum size before/while running my application. I just want to know what it is on a given machine if I do nothing!

Marsellus Wallace
  • 17,991
  • 25
  • 90
  • 154

1 Answers1

5
Runtime.getRuntime().totalMemory();
Mysticial
  • 464,885
  • 45
  • 335
  • 332