[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [jetty-users] Simplest way to detect: Hey, where'd my thread go?
- From: TamÃs CservenÃk <tamas@xxxxxxxxxxxxx>
- Date: Tue, 26 Jun 2012 17:58:45 +0200
- Delivered-to: email@example.com
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=9xfV7fAq1BFwqaKIAkeA0NnGYXrVGe28lt1jZHb33FQ=; b=NVXmBkOm5tjAuIkCH2SmBTeNjwuOioxNic5lynlYpam6Gw69snD5DA+0JIC+Sty0f/ CaIBGkaSRvYqqs60Q3S4V/Nq9qP214xd0JCWj6J8sne61vcIs5RAR+Myo/a2Ecm+SZOW UBmiIsZ1zc7FZgmRXCzkzimquWwlNE6Tg8ufHCY6n8alhU5j41A2kT1IxfpdqaXL0d+9 MEs9dZ+svu2GpPWgqIFBJj/Fqwdpy0FG7XeW+2e5O/n/e+taOjFw1/TNbhLjpl8+6w0R DTYoIE8Bm4BoFFc14fq5Bbd7LEkcIPbD8p7CxjhMHXEelI2xIBLWwtQ5oTUVJAbFU9Uw wy4A==
To conclude, after I debugged a bit:
Jetty is nice and dandy, logs the problem, as long you have some runtime exception (anything that descends from Exception)...
But is grumpy and silent when you have an Error (like OutOfMemoryError).
And in both cases, thread gets removed from the pool, but in 2nd case you have no notification about it at all in logs...
On Tue, Jun 26, 2012 at 4:45 PM, TamÃs CservenÃk <tamas@xxxxxxxxxxxxx>
It's a nice OutOfMemoryError in Nexus code.
I remember I saw some thread (or Jira issue) about why Jetty intentionally does not handle this... am I right?
On Tue, Jun 26, 2012 at 4:14 PM, TamÃs CservenÃk <tamas@xxxxxxxxxxxxx>
Hi Jetty list!
I have a situation where I confirmed that Jetty's pool is "loosing" threads. I bet it's my code (runtime or maybe even Error is thrown somewhere I assume?), but...
What is the easiest thing with Jetty (8.1.x), to instrument the threads, or install some "custom"ÂUncaughtExceptionHandler or alike (to detect and see where any why is this happening)?
Also, what is the default Jetty behavior with Threads that happens to throw some Runtime Exception or Error? The Jetty log contains no entry about anything, so I am just speculating the reasons why threads areÂdisappearing....
WhatÂUncaughtExceptionHandler is by default used?
Any help appreciated.