View | Details | Raw Unified | Return to bug 57004
Collapse All | Expand All

(-)java/org/apache/catalina/valves/StuckThreadDetectionValve.java (+3 lines)
Lines 247-252 Link Here
247
        }
247
        }
248
    }
248
    }
249
249
250
    public int getStuckThreadCount() {
251
        return stuckCount.get();
252
    }
250
    public long[] getStuckThreadIds() {
253
    public long[] getStuckThreadIds() {
251
        List<Long> idList = new ArrayList<>();
254
        List<Long> idList = new ArrayList<>();
252
        for (MonitoredThread monitoredThread : activeThreads.values()) {
255
        for (MonitoredThread monitoredThread : activeThreads.values()) {
(-)java/org/apache/catalina/valves/mbeans-descriptors.xml (+5 lines)
Lines 517-522 Link Here
517
               type="java.lang.String"
517
               type="java.lang.String"
518
               writeable="false"/>
518
               writeable="false"/>
519
519
520
    <attribute name="stuckThreadCount"
521
               description="Count of the threads currently considered stuck"
522
               type="int"
523
               writeable="false"/>
524
520
    <attribute name="stuckThreadIds"
525
    <attribute name="stuckThreadIds"
521
               description="IDs of the threads currently considered stuck. Each ID can then be used with the Threading MBean to retrieve data about it."
526
               description="IDs of the threads currently considered stuck. Each ID can then be used with the Threading MBean to retrieve data about it."
522
               type="long[]"
527
               type="long[]"

Return to bug 57004