3 Replies Latest reply on Apr 4, 2006 5:00 AM by Alexander Fedorenko

    How do we monitor the number of hits for an appliaction?

    Hari Kathireshan Newbie

      Is there any configuration to get the number of hits to an application, monitor the load & performace ? Any report can be obtained on this ?

        • 1. Re: How do we monitor the number of hits for an appliaction?
          Peter Johnson Master

          For any given EJB, there will be a corresponding mbean with the name (all one big string without spaces, I reformatted it to make it easier to read):

          jboss.management.local:
          EJBModule=XXXX.jar,
          J2EEApplication=YYYYY.ear,
          J2EEServer=Local,
          j2eeType=StatelessSessionBean,
          name=ZZZZZ

          where the XXXXX is the name of the jar file that contains the EJBs, YYYYY is the name of the ear file that contains the EJB jar file, and ZZZZZ is the name of the remote interface. (At least, this is what the mbean looks like for one of my EJBs, there could be other variations.)

          The above mbean contains a 'stats' property that contains such things as the number of times each method in the ejb was called, and the min and max response times.

          You can check this data out via the jmx-console. You can also get the stats property value via twiddle, but you first have to change the classpath to include the jboss-management.jar file (not sure how kosher that is, but it works).

          • 2. Re: How do we monitor the number of hits for an appliaction?
            Hari Kathireshan Newbie

            Thanks Peter. But I'm not using a EJB application. Mine is a plain struts application with pojos. I was able to see an option at jms console which shows only count for jsp, servlets as a whole.

            My requirement is i need to count for each click on any link on the home page to track which link os most used. Is there option with jboss portal ?

            • 3. Re: How do we monitor the number of hits for an appliaction?
              Alexander Fedorenko Newbie

              Put all the statistics work to servlet-filter that is invoked on /* .