Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenJDK breaks on processWorkerExit with no breakpoint

I'm running tomcat 7.0.21 on OpenJDK

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.

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

break in ThreadPoolExecutor

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

stack position

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

Anyone have any insight on what might be happening?

like image 756
Ray Avatar asked Sep 17 '11 01:09

Ray


2 Answers

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.

like image 95
dlawrence Avatar answered Oct 31 '22 17:10

dlawrence


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 changeenter image description here

like image 39
Venkat Avatar answered Oct 31 '22 19:10

Venkat