Setting the size of the thread stack
Every thread in your Java process has its own stack. The size of this stack can be controlled via the -Xss
setting.
Getting ready
You will need to have Oracle SOA Suite 11g installed for this recipe. This command is the same whether you're using the Hotspot or the JRockit JVM.
How to do it…
Perform the following steps to configure the size of the thread stack:
Navigate to the domain's home directory:
cd %MIDDLEWARE_HOME%/user_projects/domains/soa_domain/
Replace
soa_domain
with the relevant domain, as required.Within the
bin
folder, you will see a number of scripts. Depending on your platform you will need to edit a different file—setSOADomainEnv.cmd
on Windows;setSOADomainEnv.sh
on Linux. Note that it is a good idea to make a backup of these files before editing them.Open the file and locate the following section. Note that I have manually placed the
@REM
comment; your file will not contain this line:At the end of the
DEFAULT_MEM_ARGS
andPORT_MEM_ARGS
lines...