What are the -Xms and -Xmx parameters when starting JVM?

前端 未结 5 867
悲哀的现实
悲哀的现实 2020-11-21 06:44

Please explain the use of Xms and Xmx parameters in JVMs. What are the default values for them?

5条回答
  •  轮回少年
    2020-11-21 07:03

    -Xms initial heap size for the startup, however, during the working process the heap size can be less than -Xms due to users' inactivity or GC iterations. This is not a minimal required heap size.

    -Xmx maximal heap size

提交回复
热议问题