2

I know that it is 4MB in Java 1.4.2. And according to:

GC-Ergonomics

The Miniumum on server-class-machines is 1/64th of the machine's physical memory. But what is the initial heap in Java6 on Machines with 1 CPU and/or less than 2GB Memory (non server-class machines)?

Thx

Hein

4

2 回答 2

0

根据5.0 Java[tm] Virtual Machine 中的 Ergonomics,对于非服务器类机器,默认值与 1.4.2 版本的默认值相同,它们是:

  • 初始堆大小为 4 MB
  • 最大堆大小为 64 MB
于 2012-09-27T15:31:22.593 回答
0

根据您提供的链接:

在运行带有并行垃圾收集器 (-XX:+UseParallelGC) 的 VM(客户端或服务器)的服务器级机器上

初始堆大小和最大堆大小已更改

这意味着其他设置不会更改,并且对于所有其他情况,它们的默认值与 1.4.2 相同。

于 2012-09-27T15:32:01.667 回答