I know that the -Xms
flag of JVM process is to allow the JVM process to use a specific amount of memory to initialize its process. And in regard to performance of a Java application, it is often recommended to set the same values to both -Xms
and -Xmx
when starting the application, like -Xms2048M -Xmx2048M
.
I'm curious whether the -Xms
and -Xmx
flags mean that the JVM process makes a reservation for the specific amount of memory to prevent other processes in the same machine from using it.
Is this right?
See Question&Answers more detail:os