关于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