if you get low memory error when running java program then try to look heap size flags with this command.
java -XX:+PrintFlagsFinal -version | grep HeapSize
To see all JVM flags just run the command without the grep.
if you get low memory error when running java program then try to look heap size flags with this command.
java -XX:+PrintFlagsFinal -version | grep HeapSize
To see all JVM flags just run the command without the grep.