Java maximum memory on Windows XP

前端 未结 13 1789
轻奢々
轻奢々 2020-11-22 09:27

I\'ve always been able to allocate 1400 megabytes for Java SE running on 32-bit Windows XP (Java 1.4, 1.5 and 1.6).

java -Xmx1400m ...

Toda

相关标签:
13条回答
  • 2020-11-22 10:02

    sun's JDK/JRE needs a contiguous amount of memory if you allocate a huge block.

    The OS and initial apps tend to allocate bits and pieces during loading which fragments the available RAM. If a contiguous block is NOT available, the SUN JDK cannot use it. JRockit from Bea(acquired by Oracle) can allocate memory from pieces.

    0 讨论(0)
提交回复
热议问题