Is there any advantage in setting Xms and Xmx to the same value?
Well there are couple of things. Program will start with -Xms value and if the value is lesser it will eventually force GC to occur more frequently Once the program reaches -Xms heap, jvm request OS for additional memory and eventually grabs -Xmx that requires additional time leading to performance issue, you might as well … Read more