What is the largest possible heap size with a 64-bit JVM?

前端 未结 6 1012
不思量自难忘°
不思量自难忘° 2020-11-27 16:23

The theoretical maximum heap value that can be set with -Xmx in a 32-bit system is of course 2^32 bytes, but typically (see: Understanding max JVM

6条回答
  •  隐瞒了意图╮
    2020-11-27 16:54

    Windows imposes a memory limit per process, you can see what it is for each version here

    See:

    User-mode virtual address space for each 64-bit process; With IMAGE_FILE_LARGE_ADDRESS_AWARE set (default): x64: 8 TB Intel IPF: 7 TB 2 GB with IMAGE_FILE_LARGE_ADDRESS_AWARE cleared

提交回复
热议问题