How to increase the Java stack size?

Hmm… it works for me and with far less than 999MB of stack:

> java -Xss4m Test
0

(Windows JDK 7, build 17.0-b05 client VM, and Linux JDK 6 – same version information as you posted)

Leave a Comment