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


I am running a program that I have written in Eclipse in Java. There is a very deep level of recurrence in the program for very large inputs, the program runs fine for small input, but when large input is given, I get the following error:

  in thread Exception "main" java.lang.StackOverflowError  

It can be solved by increasing the Java stack size and if so, how do I do it in Eclipse?

Update:

@John Skeet

The code to make a datasractor is running a parse tree again. Therefore, for example, the code will do some work using the node in the parse tree and call itself two children of the node, combining their results to give the overall results for the tree.

Repeat pars depends on the size of the tree, but the code fails (without a big stack) when the number of recursive calls becomes in 1000s.

I'm pretty sure that the code is failing because of the bug because it works for small input.

Run the configuration for your application (run / run configuration .. ., Then see the app listing in the 'Java application').

Enter a text box VM logic , -Xss1m in the Logic tab (or a larger for the maximum stack size Parameter). Default value is 512 kByte (SUN JDK 1.5 - does not know that it varies between vendors and versions).


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -