1 Reply Latest reply on Jan 23, 2004 1:57 AM by rameshs

    How to obtain various statistics from jboss

    Sri Newbie

       

      "vatsanc" wrote:
      How to get various statistics from a JBoss server like:
      - Servelets stats
      - EJB stats - lock count, beans in ready state etc...
      - database connection pool size
      etc.

      Are there MBean for retrieving these stats ?

      Are these statistics available for every application or averaged for all apps in a JBoss server.



        • 1. Re: How to obtain various statistics from jboss
          rameshs Newbie

          Hi !

          Since JSR 77 has been implemented into JBoss, you can query the MBeans with the following object name patterns to get the appropriate stats.

          *:j2eeType=J2EEDomain,*
          *:j2eeType=J2EEServer,*
          *:j2eeType=JVM,*

          *:j2eeType=J2EEApplication,*

          *:j2eeType=WebModule,*
          *:j2eeType=Servlet,*

          *:j2eeType=EJBModule,*
          *:j2eeType=EntityBean,*
          *:j2eeType=StatelessSessionBean,*
          *:j2eeType=StatefulSessionBean,*
          *:j2eeType=MessageDrivenBean,*

          *:j2eeType=ResourceAdapterModule,*
          *:j2eeType=ServiceModule,*
          *:j2eeType=AppClientModule,*
          *:j2eeType=ResourceAdapter,*
          *:j2eeType=JNDIResource,*
          *:j2eeType=JavaMailResource,*
          *:j2eeType=JTAResource,*
          *:j2eeType=JMSResource,*
          *:j2eeType=RMI_IIOPResource,*
          *:j2eeType=URLResource,*
          *:j2eeType=JCAResource,*
          *:j2eeType=JCAConnectionFactory,*
          *:j2eeType=JDBCResource,*

          If the StatsProvider is enabled, then these would generally be available for every application. You can also have a glance at the JSR 77 specification.

          I am not sure about whether JBoss provides the stats for the JDBC Resources.

          Regards,
          Ramesh
          AdventNet Inc.