What is the default Java thread stack size?
Environment
- Java
Issue
- What is the default Java thread stack size?
- What is the default Xss size?
Resolution
OpenJDK / Oracle JDK
|||
|Linux x86 32-bit|320K|
|Linux x86 64-bit|1024K|
|Sparc 32-bit|512K|
|Sparc 64-bit|1024K|
|Solaris x86 32-bit|320K|
|Solaris x86 64-bit|1024K|
|Windows 32-bit|320K|
|Windows 64-bit|1024K|
JRockit
|||
|Linux 32-bit|128K|
|Linux 64-bit|1024K|
|Windows 32-bit|64K|
|Windows 64-bit|320K|
You can also run following command to check the thread stack size.
java -XX:+PrintFlagsFinal -version | grep ThreadStackSize
Please refer to How do I set Java thread stack size? and the following references to change the thread stack size.
- Content from java.sun.com is not included.Content from java.sun.com is not included.http://java.sun.com/docs/hotspot/HotSpotFAQ.html#threads_oom
- Content from docs.oracle.com is not included.Content from docs.oracle.com is not included.http://docs.oracle.com/cd/E13188_01/jrockit/docs50/tuning/config.html#1010137
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.