Tinkering with Xms in JVM

In this post, I am going to share my observation after playing with Xms parameter in JVM on different Operating Systems. Initially, my understanding of Xms was that Xms is the minimum heap space the JVM should get before starting the Java process, if this much main memory (RAM) isn’t available then program should not start. So I wrote a simple program which just outputs a String. // Simple program that I ran with different Xms values public class Test { public static void main(String[] args) { System....

May 9, 2020 · 3 min · Vivek Bhadauria