LinuxApr 1, 20161 min read Default max heap size If you need to get the default max heap size used by your machine: java -XX:+PrintFlagsFinal -version 2>&1 | grep MaxHeapSize