如果在启动时没有指定值,Sun JVM(v 1.4 *)的默认Xms和Xmx设置是什么?
来自Sun的工具文档:
-Xmsn Specify the initial size, in bytes, of the memory allocation pool. This value must be a multiple of 1024 greater than 1MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 2MB. Examples:
-Xms6291456 -Xms6144k -Xms6m
-Xmxn Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. Examples:
-Xmx83886080 -Xmx81920k -Xmx80m
所以是2MB和64MB。
(上面的链接是1.5文档,但你可以下载1.4文档,它们说的是相同的内容。)