How to avoid the 1024 lines of Java exception stack limit

前端 未结 3 712
暗喜
暗喜 2020-12-18 20:08

I ran into a Java StackOverflow error, but the offending recursive call is so deep, that it does not give me the full stack trace. It only dumps out the first 1024 lines of

3条回答
  •  误落风尘
    2020-12-18 20:39

    The switch -XX:MaxJavaStackTraceDepth allows larger and smaller stack trace lengths. Set it to -1 for an unlimited length. E.g.:

    -XX:MaxJavaStackTraceDepth=-1
    

提交回复
热议问题