If set them to different values, what's the advantages and disadvantages?
Asked
Active
Viewed 283 times
0
-
Initial and max. If you want the heap to be able to expand then use a higher max. If you don't, don't. – Michael Aug 23 '19 at 13:13
-
the advantage is that your process start with less memory. the disadvantage is that once the program needs more memory it should go through the reallocation process (full collection + reallocation of more memory) FYI: Oracle recommendation is to set -Xms value to the same value as -Xmx – Hamdi Nov 12 '19 at 00:22