1 Reply Latest reply on Jan 2, 2014 6:38 AM by sachin_verma

    ThreadMXBean equivalent in the HTTP Management API

    sachin_verma

      Hi All,

       

      We are in the midst of migrating from Jboss 6 to JBoss AS 7. Our understanding is that the new HTTP Management API is the recommended way of getting container metrics (rather than the JMX way).

       

      I would like to get the ThreadMXBean equivalent in the HTTP Management API. Currently, I get the reference to the ThreadMXBean like so in order to get thread information:

       

      java.lang.management.ThreadMXBean threadBean = ManagementFactory.getThreadMXBean();

      long[] ids = threadBean.getAllThreadIds();

      numPeakCount = threadBean.getPeakThreadCount();

      totalStarted = threadBean.getTotalStartedThreadCount();

       

       

      How can I get the equivalent in the HTTP Management API? Your help is very much appreciated.

       

      Thank you

      - Sachin