We have 64-bit Oracle JRE 8 and our application start as:
java -jar C:\path\to\app.jar
How JVM does uses memory in that case (when you do not set -Xmx
and other options)?
We have 64-bit Oracle JRE 8 and our application start as:
java -jar C:\path\to\app.jar
How JVM does uses memory in that case (when you do not set -Xmx
and other options)?
So the max memory consumption limited even in 64-bit machine by default... But this number differs for same JVM but different hosts.
For openjdk and oracle jvms this is governed by the MaxRAMFraction
option, which under 64bit defaults to 4, i.e. 25% of physical memory.
I don't remember correct, but as i know jvm will not use more than 25% of RAM if you will not specify -Xmx or -Xms