Maximum Java heap size of a 32-bit JVM on a 64-bit OS

前端 未结 17 2379

The question is not about the maximum heap size on a 32-bit OS, given that 32-bit OSes have a maximum addressable memory size of 4GB, and that the JVM\'s max heap size depen

17条回答
  •  一整个雨季
    2020-11-22 07:26

    From 4.1.2 Heap Sizing:

    "For a 32-bit process model, the maximum virtual address size of the process is typically 4 GB, though some operating systems limit this to 2 GB or 3 GB. The maximum heap size is typically -Xmx3800m (1600m) for 2 GB limits), though the actual limitation is application dependent. For 64-bit process models, the maximum is essentially unlimited."

    Found a pretty good answer here: Java maximum memory on Windows XP.

提交回复
热议问题