4 Replies Latest reply on Sep 8, 2009 8:08 AM by rbattenfeld

    Not for all ejb's are the statistics available

    rbattenfeld

      Hi

      We would like to monitor the default statistics for our session beans. We faced now the problem that only for some of the session beans are the statistics available.
      Is there a reason why not for all session beans the statistics available? I am not sure but it seems that only for the session beans implementing a remote interface the statistics are collected.

      Thanks a lot for any help.
      Ralf

        • 1. Re: Not for all ejb's are the statistics available
          jaikiran

          More details please. Which exact version of JBoss AS? Where are you checking the metrics? And which beans show the metrics and which ones do not?

          • 2. Re: Not for all ejb's are the statistics available
            rbattenfeld

            Hi jaikiran

            We use the versions:


            JBoss [Morpheus] 5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902232048)
            Java VM: Java HotSpot(TM) Client VM 1.6.0-b105,Sun Microsystems Inc.
            OS-System: Windows XP 5.1,x86


            We check the metrics with the JMX console in the tree jboss.j2ee, more precisely, the org.jboss.ejb3.statistics.InvocationStatistics. In the jboss.j2ee, all developed beans are listet.

            Here is an example: The ReportingBean is a stateless session bean implementing a remote interface. This bean is accessed by the clients via lookup. The statistics are like this:

            InvocationStatistics concurrentCalls='0'
            method name='enterReport' count='200' minTime='15' maxTime='2047' totalTime='20609'
            method name='enterTxReportFile' count='29' minTime='46' maxTime='2062' totalTime='7061'
            method name='getFileProcessingReply' count='3' minTime='31' maxTime='62' totalTime='140'
            


            The ReportingBean itself delegates the processing of incoming messages to a stateless session bean called TxBean. The bean spans a new transaction. And here the statistics shows nothing, even everything is delegated to this bean:

            InvocationStatistics concurrentCalls='0'
            


            Note that for the ReprtingBean, the global JNDI name is overwritten in the jboss.xml file but not for the TxBean.

            Thanks
            Ralf

            • 3. Re: Not for all ejb's are the statistics available
              jaikiran

               

              JBoss [Morpheus] 5.0.1.GA


              JBossAS-5.0.1, did not have full support for the EJB3 metrics. You will have to upgrade to the latest stable JBossAS-5.1.0 and apply our EJB3 latest plugin http://www.jboss.org/ejb3/ejb3plugin.html to get the entire set of EJB3 metrics.


              • 4. Re: Not for all ejb's are the statistics available
                rbattenfeld

                Hi jaikiran

                Thank you for your explanation. We will upgrade as soon as possible.

                Regards,
                Ralf