Java堆栈被吃掉

前言:作为一个索引贴,并尝试使用关键字,看看搜索引擎的排名是否会被提高。

见:https://stackoverflow.com/questions/4659151/recurring-exception-without-a-stack-trace-how-to-reset

image.png

The compiler in the server VM now provides correct stack backtraces for all "cold" built-in exceptions. For performance purposes, when such an exception is thrown a few times, the method may be recompiled. After recompilation, the compiler may choose a faster tactic using preallocated exceptions that do not provide a stack trace. To disable completely the use of preallocated exceptions, use this new flag: -XX:-OmitStackTraceInFastThrow.

PS. 最关键的并不是堆栈被JVM吃掉,而代码里面对异常应该怎么样被合理的处理,没有一个清晰的想法,而只是简单地打印堆栈,这是值得好好思考的。

关键字:logback、Java、JVM、堆栈、被吃掉、stack trace、StackTrace、disappear、hide

你可能感兴趣的:(Java堆栈被吃掉)