Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1449

Incorrect statistcs returned by the EJB MBean

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • No Release
    • EJB
    • None
    • Hide

      1) Install EAP 5.1
      2) copy all configuration to etat1 and etat2
      3) remove messaging from etat1/deploy and etat2/deploy
      4) deploy EAR to etat1/deploy and etat2/deploy
      5) add virtual IP addresses bound to localhost as root via:

      [root@dhcp-64-60 chrome]# ip addr add 192.168.100.50/32 dev lo
      [root@dhcp-64-60 chrome]# ip addr add 192.168.100.51/32 dev lo

      6) start etat1 with -b 192.168.100.50
      7) start etat2 with -b 192.168.100.51

      8) Put some load on the web app by calling the following script a few seconds/minutes:

      #!/bin/sh
      URLS="http://192.168.100.50:8080/etatWeb/TestEJBServlet http://192.168.100.51:8080/etatWeb/TestEJBServlet"

      while [ 1 ]
      do
      for url in $URLS
      do
      wget $url -a etat.log
      done
      done

      9) Stop the script
      10)Check the stats using the following:

      serverUrl='http://localhost:8080'
      jmxUser='admin'
      jmxPassword='admin'
      mBeanName='jboss.j2ee:jndiName=TestBean,service=EJB'
      mBeanAttr='DetypedInvocationStatistics'
      ./twiddle.sh -s "${serverUrl}" -u "${jmxUser}" -p "${jmxPassword}" get
      "${mBeanName}" "${mBeanAttr}"

      11) Strange result is generated - see attached screen shot.

      Show
      1) Install EAP 5.1 2) copy all configuration to etat1 and etat2 3) remove messaging from etat1/deploy and etat2/deploy 4) deploy EAR to etat1/deploy and etat2/deploy 5) add virtual IP addresses bound to localhost as root via: [root@dhcp-64-60 chrome] # ip addr add 192.168.100.50/32 dev lo [root@dhcp-64-60 chrome] # ip addr add 192.168.100.51/32 dev lo 6) start etat1 with -b 192.168.100.50 7) start etat2 with -b 192.168.100.51 8) Put some load on the web app by calling the following script a few seconds/minutes: #!/bin/sh URLS="http://192.168.100.50:8080/etatWeb/TestEJBServlet http://192.168.100.51:8080/etatWeb/TestEJBServlet " while [ 1 ] do for url in $URLS do wget $url -a etat.log done done 9) Stop the script 10)Check the stats using the following: serverUrl='http://localhost:8080' jmxUser='admin' jmxPassword='admin' mBeanName='jboss.j2ee:jndiName=TestBean,service=EJB' mBeanAttr='DetypedInvocationStatistics' ./twiddle.sh -s "${serverUrl}" -u "${jmxUser}" -p "${jmxPassword}" get "${mBeanName}" "${mBeanAttr}" 11) Strange result is generated - see attached screen shot.

      Issue appears to be with the stats returned by the EJB MBean. The following twiddle command reveals the strange statistics:

      serverUrl='http://localhost:8080'
      jmxUser='admin'
      jmxPassword='admin'
      mBeanName='jboss.j2ee:jndiName=TestBean,service=EJB'
      mBeanAttr='DetypedInvocationStatistics'
      ./twiddle.sh -s "${serverUrl}" -u "${jmxUser}" -p "${jmxPassword}" get
      "${mBeanName}" "${mBeanAttr}"

      Essentially, you need to deploy the EAR attached to this jira to an EAP 5.1 instance and then push some load to it to see the strange return values.

        1. CallTimeStatistics_stop1.png
          178 kB
          Larry O'Leary
        2. etat.ear.tar.gz
          3 kB
          Larry O'Leary

            rhn-engineering-cdewolf Carlo de Wolf
            rhn-support-bkramer1 Biljana Kramer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: