Details

    • Similar Issues:
      Show 10 results 

      Description

      EJB 1.x or 2.x Stateless Session Bean metrics (in addition to availability)
      <!-- jboss.management.local:name=%name%,J2EEServer=Local,J2EEApplication=%j2eeApplication%,EJBModule=%ejbJar%,j2eeType=StatelessSessionBean -->
      <metric displayName="Create Calls"
      property="

      {stats.createCount.count}"
      displayType="summary"
      measurementType="trendsup"/>
      <metric displayName="Remove Calls"
      property="{stats.removeCount.count}"
      displayType="summary"
      measurementType="trendsup"/>
      <metric displayName="Method-Ready Beans"
      property="{stats.methodReadyCount.current}"
      displayType="summary"/>
      <metric displayName="Pool Size"
      property="{{jboss.j2ee:jndiName=%name%,plugin=pool,service=EJB}CurrentSize}"/>
      <metric displayName="Max Pool Size"
      property="{{jboss.j2ee:jndiName=%name%,plugin=pool,service=EJB}MaxSize}"/>
      Plus the complex method invocation metrics
      <metric property="stats" dataType="calltime" units="milliseconds"
      defaultOn="false" defaultInterval="600000" destinationType="Method Name"
      description="the minimum, maximum, and average invocation times for each of the methods exposed by this EJB"/>


      EJB 1.x or 2.x Stateful Session Bean metrics (in addition to avail):
      <!-- jboss.management.local:name=%name%,J2EEServer=Local,J2EEApplication=%j2eeApplication%,EJBModule=%ejbJar%,j2eeType=StatefulSessionBean -->

      <metric displayName="Create Calls"
      description="Number of creates executed since the last time this EJB's stats were reset"
      property="{stats.createCount.count}

      "
      displayType="summary"
      measurementType="trendsup"/>

      <metric displayName="Remove Calls"
      description="Number of removes since the last time this EJB's stats were reset"
      property="

      {stats.removeCount.count}"
      displayType="summary"
      measurementType="trendsup"/>

      <metric displayName="Method-Ready Beans"
      description="The count of beans in the method-ready state"
      property="{stats.methodReadyCount.current}"
      displayType="summary"/>

      <metric displayName="Passive Beans"
      description="The count of beans in the passivated state"
      property="{stats.passiveCount.current}"
      displayType="summary"/>


      EJB 1.x or 2.x Entity Bean metrics (in addition to availability)
      <!-- jboss.management.local:name=%name%,J2EEServer=Local,J2EEApplication=%j2eeApplication%,EJBModule=%ejbJar%,j2eeType=EntityBean -->
      <metric displayName="Create Calls"
      property="{stats.createCount.count}"
      displayType="summary"
      measurementType="trendsup"/>

      <metric displayName="Remove Calls"
      property="{stats.removeCount.count}

      "
      displayType="summary"
      measurementType="trendsup"/>

      <metric displayName="Method-Ready Beans"
      property="

      {stats.methodReadyCount.current}

      "
      displayType="summary"/>

      <metric displayName="Pooled Beans"
      property="

      {stats.pooledCount.current}

      "
      displayType="summary"/>

      <metric property="{{jboss.j2ee:jndiName=%name%,plugin=cache,service=EJB}CacheSize}"
      displayName="Cache Size"
      defaultOn="true"/>

      <metric property="{{jboss.j2ee:jndiName=%name%,plugin=cache,service=EJB}PassivatedCount}"
      displayName="Passivated Count"
      defaultOn="true"
      measurementType="trendsup"/>

      <metric property="{{jboss.j2ee:jndiName=%name%,plugin=pool,service=EJB}PoolSize}"
      displayName="Current Size"
      defaultOn="true"/>

      <metric property="{{jboss.j2ee:jndiName=%name%,plugin=pool,service=EJB}MaxPoolSize}"
      displayName="Max Size"
      defaultOn="true"/>

      EJB 1.x or 2.x Message Driven Bean metrics (in addition to availability)
      <!-- jboss.management.local:name=%name%,J2EEServer=Local,J2EEApplication=%j2eeApplication%,EJBModule=%ejbJar%,j2eeType=MessageDrivenBean -->
      <metric displayName="Create Calls"
      property="

      {stats.createCount.count}

      "
      displayType="summary"
      measurementType="trendsup"/>

      <metric displayName="Remove Calls"
      property="

      {stats.removeCount.count}

      "
      displayType="summary"
      measurementType="trendsup"/>

      <metric displayName="Method-Ready Beans"
      property="

      {stats.messageCount.count}

      "
      displayType="summary"
      measurementType="trendsup"/>

        Issue Links

          Activity

          Hide
          Ian Springer
          added a comment -

          I've added stateful session bean metrics to the description (they were missing).

          Show
          Ian Springer
          added a comment - I've added stateful session bean metrics to the description (they were missing).
          Hide
          Charles Crouch
          added a comment -

          Target for 5.1GA

          Show
          Charles Crouch
          added a comment - Target for 5.1GA
          Hide
          Jason Greene
          added a comment -

          This has been fully implemented in the EAP5 branch. See the JMXMappingUnitTestCase:

          Set<ManagedComponent> comps = mgtView.getComponentsForType(new ComponentType("EJB", "StatefulSession"));
          for (ManagedComponent comp : comps)
          {
          System.out.println(comp.getName());
          ManagedProperty property = comp.getProperty("DetypedInvocationStatistics");
          if ("jboss.j2ee:jndiName=ejb/StatefulCounterEjb,service=EJB".equals(comp.getName()))

          { MetaValue value = property.getValue(); System.out.println("Value = " + value); CompositeValue methodStatsMap = (CompositeValue)((CompositeValue) value).get("methodStats"); CompositeValue methodStats = (CompositeValue)methodStatsMap.get("count"); assertEquals(2L, ((SimpleValue)methodStats.get("count")).getValue()); return; }

          }

          fail("Could not find EJB!");

          Show
          Jason Greene
          added a comment - This has been fully implemented in the EAP5 branch. See the JMXMappingUnitTestCase: Set<ManagedComponent> comps = mgtView.getComponentsForType(new ComponentType("EJB", "StatefulSession")); for (ManagedComponent comp : comps) { System.out.println(comp.getName()); ManagedProperty property = comp.getProperty("DetypedInvocationStatistics"); if ("jboss.j2ee:jndiName=ejb/StatefulCounterEjb,service=EJB".equals(comp.getName())) { MetaValue value = property.getValue(); System.out.println("Value = " + value); CompositeValue methodStatsMap = (CompositeValue)((CompositeValue) value).get("methodStats"); CompositeValue methodStats = (CompositeValue)methodStatsMap.get("count"); assertEquals(2L, ((SimpleValue)methodStats.get("count")).getValue()); return; } } fail("Could not find EJB!");
          Hide
          Jason Greene
          added a comment -

          Reopen if we are missing something here

          Show
          Jason Greene
          added a comment - Reopen if we are missing something here

            People

            • Assignee:
              Jason Greene
              Reporter:
              Scott Stark
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 week
                1w
                Remaining:
                Remaining Estimate - 1 week
                1w
                Logged:
                Time Spent - Not Specified
                Not Specified