It indeed sets the stack size on a JVM.
You should touch it in either of these two situations:
- StackOverflowError (the stack size is greater than the limit), increase the value
- OutOfMemoryError: unable to create new native thread (too many threads, each thread has a large stack), decrease it.
The latter usually comes when your Xss is set too large - then you need to balance it (testing!)