jvm 參數問題

關於jvm內存,有些問題還沒有弄的特別清楚,記錄一下,有待解決。

1.6 jvm各個區內存默認大小??

1.7jvm各個區內存默認大小??

棧內存一定的情況下,棧的深度如何確定?一次方法調用入棧所需空間大小?


==================================================

java 6中,32位Sparc系統默認的棧內存是512k,64位系統是1024k; 32位的 X86 Solaris/linux系統默認棧內存是320k,64位 X86 Solaris/linux系統默認棧內存是1024k;windows中默認的棧內存是從java.exe中讀出來的。對java 6來說,32位系統默認大小爲320k,64位系統爲1024k;

參考:http://www.oracle.com/technetwork/java/hotspotfaq-138619.html

In Java SE 6, the default on Sparc is 512k in the 32-bit VM, and 1024k in the 64-bit VM. On x86 Solaris/Linux it is 320k in the 32-bit VM and 1024k in the 64-bit VM.
On Windows, the default thread stack size is read from the binary (java.exe). As of Java SE 6, this value is 320k in the 32-bit VM and 1024k in the 64-bit VM.
You can reduce your stack size by running with the -Xss option. For example:
java -server -Xss64k

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章