2 Replies Latest reply on Apr 25, 2006 1:50 PM by Chris Bono

    Extending JSR77 stats

    Chris Bono Newbie

      I am trying to find the cleanest way to extend the JSR77 stats provided by JBoss to include the timestamp the stat was collected and possibly "dump/persist" these stats out at some interval so I can later report on the stats. Ultimately I would like to graph the elapsed time for an ejb method over time and view this graph at the end of the day.

      I am currently running JBoss3.2.3 / JDK1.4.2

      Is extending JSR77 stats the way to go or should I write a custom interceptor to do this for me (seems like this has to have already been done).

      Thanks,
      Chris

        • 1. Re: Extending JSR77 stats
          Chris Bono Newbie

          Also, where are the status currently being "set" in the server?

          • 2. Re: Extending JSR77 stats
            Chris Bono Newbie

            OK, I now realize what I want (method level stats) is not covered by JSR-77 performance and that JBoss is using a proprietary InvocationStats object that is gathered/managed by the container for the particular EJB.

            So to re-iterate, I am trying to gather and record method level stats in a manner that does not hurt performance.

            As far as how I am going to "record" the stats, it will have to be done in some asynchronous fashion w/o going down the deprecated MetricsInterceptor path http://jira.jboss.com/jira/browse/JBAS-2656.

            There seem to be several differing solutions for a very similar problem of gathering stats
            - deprecated MetricsInterceptor
            - varia TxStatisticsInterceptor
            - jsr-77 statisticis
            The differing solutions should be remedied by JSR-77. Unfortunately JSR-77 does not cover method level stats as I want them to. If there is something coming down the road or a recommended approach to take the advice would be greatly appreciated.

            Thanks,
            Chris