Java stack overflow error – how to increase the stack size in Eclipse?

Open the Run Configuration for your application (Run/Run Configurations…, then look for the applications entry in ‘Java application’).

The arguments tab has a text box Vm arguments, enter -Xss1m (or a bigger parameter for the maximum stack size). The default value is 512 kByte (SUN JDK 1.5 – don’t know if it varies between vendors and versions).

Leave a Comment