Is there any advantage in setting Xms and Xmx to the same value?

后端 未结 5 1397
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-08 21:48

Usually I set -Xms512m and -Xmx1g so that when JVM starts it allocates 512MB and gradually increases heap to 1GB as necessary. But I see these values s

5条回答
  •  爱一瞬间的悲伤
    2021-02-08 21:55

    AFAIK One more reason, is that expansion of heap is a stop-the-world event; setting those to the same value will prevent that.

提交回复
热议问题