Knowledgebase article 166

How to increase the Java thread stack size using the -Xss parameter to avoid StackOverflowErrors


On some Operating Systems it may be necessary to increase the Java thread stack size from the default. Default values for each Operating System are listed below:

Platform
Default
Windows IA32
64 KB
Linux IA32
128 KB
Windows x86_64
128 KB
Linux x86_64
256 KB
Windows IA64
320 KB
Linux IA64
1024 KB (1 MB)
Solaris Sparc
512 KB


Setting the Java thread stack size to 512k should be sufficient in nearly all cases.
 

 
On Linux, edit the file <tomcat-home>/conf/wrapper.conf. Find the section title 'Java Additional Parameters'. Add the following additional parameter, incrementing the additional parameter number from the last one:
wrapper.java.additional.<n>=-Xss512k


On Windows, use the Tomcat service helper app, go into the Java parameters section, and add the following:
-Xss512k
Group eHD Standard Support Last modified Nov 13, 2019 Type Public Viewed 4050