How is the default max Java heap size determined?

前端 未结 10 1827
旧巷少年郎
旧巷少年郎 2020-11-22 03:50

If I omit the -Xmxn option from the Java command line then a default value will be used. According to Java documentation

\"the default v

10条回答
  •  醉梦人生
    2020-11-22 04:30

    This is changed in Java 6 update 18.

    Assuming that we have more than 1 GB of physical memory (quite common these days), it's always 1/4th of your physical memory for the server vm.

提交回复
热议问题