Bug 41128 - Reference to java Thread name from RequestProcessor mbean
Summary: Reference to java Thread name from RequestProcessor mbean
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 6
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 6.0.0
Hardware: Other All
: P2 enhancement (vote)
Target Milestone: default
Assignee: Tomcat Developers Mailing List
URL: http://www.lambdaprobe.org
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-07 14:18 UTC by Vlad Ilyushchenko
Modified: 2011-01-26 16:26 UTC (History)
1 user (show)



Attachments
patch against the current http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x (1.81 KB, patch)
2007-03-27 17:11 UTC, Vlad Ilyushchenko
Details | Diff
patch against the current http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk (1.88 KB, patch)
2007-03-27 17:12 UTC, Vlad Ilyushchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vlad Ilyushchenko 2006-12-07 14:18:37 UTC
Hi guys,

This is just a suggestion, which could simplify tasks of troubleshooting
problems on live tomcat instance. It was so many times that I had to deal with
request that seemingly hang having to go through every Thread's trace stack to
find out what the hang request is stuck on.

It would be great if "RequestProcessor" MBean has a reference to the Thread,
which is dealing with the request in question by either ID or Name. (Name is
preferred for backwards compatibility)

We (as in LambdaProbe project) would link the "http request" to thread trace
stack thus providing one mouse click resolution to the problem of stuck requests.

Many thanks,
Vlad
Comment 1 Filip Hanik 2007-03-26 20:44:18 UTC
Do you want to submit a patch?
Comment 2 Vlad Ilyushchenko 2007-03-27 17:11:58 UTC
Created attachment 19820 [details]
patch against the current http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x
Comment 3 Vlad Ilyushchenko 2007-03-27 17:12:37 UTC
Created attachment 19821 [details]
patch against the current http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk
Comment 4 Vlad Ilyushchenko 2007-03-27 17:13:15 UTC
Gladly :) The patches are attached.

Both patches worked ok for me. I didn't know how Tomcat exposed request-related
MBeans until today so please forgive me if i missed anything.
Comment 5 Mark Lewis 2011-01-26 16:18:41 UTC
I hope it is not presumptuous of me to close this bug, but this was addressed back in March/April 2007 with r523235 (tc5.5.x) and r526576 (tc6.0.x).