OpenJDK在没有断点的processWorkerExit上中断

时间:2022-04-27 16:53:55

I'm running tomcat 7.0.21 on OpenJDK

我在OpenJDK上运行tomcat 7.0.21

java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.9) (6b20-1.9.9-0ubuntu1~10.10.2)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

in debug mode via Eclipse.

在Eclipse的调试模式下。

Periodically after serving an arbitrary number of requests, OpenJDK starts to break at:

在提供任意数量的请求后,OpenJDK会定期开始:

OpenJDK在没有断点的processWorkerExit上中断

At this point there is very little stack left, usually:

此时剩下的堆栈非常少,通常是:

OpenJDK在没有断点的processWorkerExit上中断

and very little to go on as far as what might have cause the issue...

可能导致问题的原因很少...

Anyone have any insight on what might be happening?

任何人都对可能发生的事情有任何见解?

2 个解决方案

#1


67  

In debug mode in eclipse by default, break on uncaught exceptions is checked. Since you don't have a catch method here, it's likely that an uncaught exception is being thrown and the debugger is breaking for you immediately before the exception is thrown. You can turn it off in preferences under Java->Debug.

默认情况下,在eclipse的调试模式下,会检查未捕获的异常中断。由于此处没有catch方法,因此可能会抛出未捕获的异常,并且在抛出异常之前调试器会立即中断。您可以在Java-> Debug下的首选项中将其关闭。

#2


3  

Spot on, still relevant in 2015 with latest Eclipse too. Make sure to keep the check-box under green highlight circle to be unchecked. I am adding image to highlight the changeOpenJDK在没有断点的processWorkerExit上中断

2015年与最新的Eclipse相关,现在仍然相关。确保取消选中绿色高亮圆圈下的复选框。我正在添加图像以突出显示更改

#1


67  

In debug mode in eclipse by default, break on uncaught exceptions is checked. Since you don't have a catch method here, it's likely that an uncaught exception is being thrown and the debugger is breaking for you immediately before the exception is thrown. You can turn it off in preferences under Java->Debug.

默认情况下,在eclipse的调试模式下,会检查未捕获的异常中断。由于此处没有catch方法,因此可能会抛出未捕获的异常,并且在抛出异常之前调试器会立即中断。您可以在Java-> Debug下的首选项中将其关闭。

#2


3  

Spot on, still relevant in 2015 with latest Eclipse too. Make sure to keep the check-box under green highlight circle to be unchecked. I am adding image to highlight the changeOpenJDK在没有断点的processWorkerExit上中断

2015年与最新的Eclipse相关,现在仍然相关。确保取消选中绿色高亮圆圈下的复选框。我正在添加图像以突出显示更改