I have specified the -Xms and -Xmx values as the same say 4GB. Now when I start my spring-boot application, I was under my assumption that OS will allocate 4GB of memory right after starting the application since that is the value specified using the -Xms argument. But when I checked the Resident Set of the application and also heap memory(using JMX), I can see memory allocated is still less than 1GB. So does that mean OS does not necessarily allocate memory specified using -Xms.
Thanks in advance.