Optional JVM command line settings: stack size
Each time a method is called, a stack frame is created and pushed on to the thread's
stack. The stack frame contains, at a minimum, the method's local variables and the method
arguments. You can get a java.lang.StackOverflowError
exception if you reach the
maximum allowable stack limit of a thread.
This can happen if:
- The method call depth is very deep (for example, in the Create Wave agent, the wave optimizer call depth is roughly equal to the number of shipments assigned to a shipment group).
- The stack frame is very large.
You can set the -Xss
option to
increase the maximum stack size per thread.