CaffeineAddict
Well-Known Member
The following output is excerpt from command:
This according to my understanding means that Java applications will be limited to 4GB of memory, however my system has 16GB and I want to increase it to at least 8GB because I need it for a game.
My attempt so far was this:
According to
However this doesn't work, obviously because reported max is 4GB from the output of
How do I properly modify these settings?
I'm on Debian.
java -XshowSettings
VM settings:
Max. Heap Size (Estimated): 3.86G
Using VM: OpenJDK 64-Bit Server VM
This according to my understanding means that Java applications will be limited to 4GB of memory, however my system has 16GB and I want to increase it to at least 8GB because I need it for a game.
My attempt so far was this:
According to
man java
we can specify -Xmx
option to specify max Heap Size and -Xms
option to specify minimum size, so I entered the following into my .bashrc
:export JAVA_OPTS="-Xms6G -Xmx8G"
However this doesn't work, obviously because reported max is 4GB from the output of
java -XshowSettings
How do I properly modify these settings?
I'm on Debian.