[jboss-jira] [JBoss JIRA] Commented: (JBAS-6625) EJB 1.x or 2.x metrics

Jason T. Greene (JIRA) jira-events at lists.jboss.org
Thu Jun 4 19:20:56 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBAS-6625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12470728#action_12470728 ] 

Jason T. Greene commented on JBAS-6625:
---------------------------------------

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!");

> EJB 1.x or 2.x metrics
> ----------------------
>
>                 Key: JBAS-6625
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6625
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: EJB2, Management services
>    Affects Versions: JBossAS-5.1.0.GA
>            Reporter: Scott M Stark
>            Assignee: Jason T. Greene
>            Priority: Critical
>             Fix For: JBossAS-5.2.0.Beta1
>
>   Original Estimate: 1 week
>  Remaining Estimate: 1 week
>
> 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"/> 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list