What's my JVM Heap Size?
-
21-01-2021 - |
Question
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!
Solution
Runtime.getRuntime().totalMemory();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow