By default (Java 1.6 or greater), the JVM will output, at most, 1024 lines of the stack trace.
In the situation where you have some recursion problem or some infinite loop that results in a stack overflow error you will need to increase this value with a JVM option to see the origin of your crash.
To do so, add the following option to the java command
$ java -XX:MaxJavaStackTraceDepth=-1 -jar some.jar some.package.Class etc, etc,
-1 indicates no limit. Any → Continue reading “JVM Option for Increasing the Default Number of Lines in the StackTrace”