首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

java分配的默许堆和栈各有多大

2011-12-18 
java分配的默认堆和栈各有多大?java分配的默认堆和栈各有多大?[解决办法]不同的版本有不同的数字。拿 5.0来

java分配的默认堆和栈各有多大?
java分配的默认堆和栈各有多大?

[解决办法]
不同的版本有不同的数字。拿 5.0来说:
-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

热点排行