Max memory for 64bit Java

后端 未结 5 1808
庸人自扰
庸人自扰 2020-12-05 19:09

What\'s the maximum amount of heap space that one can allocate for java on a 64-bit platform? Is it unlimited?

5条回答
  •  没有蜡笔的小新
    2020-12-05 19:11

    In theory its between 2^63 and 2^64 bytes.

    In practice it is limited by the amount of physical memory and swap space available on your machine. And the physical memory is in turn limited by your chipset (i.e. the number of address pins on the physical memory address bus) and motherboard (i.e. the number and size of the DIMM sockets).

提交回复
热议问题