[jboss-jira] [JBoss JIRA] Commented: (JBAS-6877) EJB3 Entity Cache Metrics

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Wed Jun 10 10:59:57 EDT 2009


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

Brian Stansberry commented on JBAS-6877:
----------------------------------------

Hibernate provides an org.hibernate.jmx.StatisticsServiceMBean which provides all sorts of information about a SessionFactory, including an org.hibernate.stat.SecondLevelCacheStatistics for each entity or collection type that is cached, plus one for each query cache region.

I'm investigating whether we register this MBean as part of SessionFactory/EntityManager deployment.

> EJB3 Entity Cache Metrics
> -------------------------
>
>                 Key: JBAS-6877
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6877
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: EJB3, Management services
>            Reporter: Andrew Lee Rubinger
>            Assignee: Brian Stansberry
>             Fix For: Backlog
>
>
> These statistics must be reflected in the admin-console/Jopr.
> Split from JBAS-6624:
> EJB3 Entity Tree Cache (in addition to availability)
> <!--jboss.cache:service=EJB3EntityTreeCache-->
> <metric property="NumberOfLocksHeld" displayType="summary"/>
>          <metric property="NumberOfNodes" displayType="summary"/>
> EJB3 Entity Tree Cache Interceptor (in addition to availability)
> <!--jboss.cache:service=EJB3EntityTreeCache,treecache-interceptor=CacheMgmtInterceptor-->
>             <metric property="HitMissRatio" displayType="summary" units="percentage"
>                     description="Returns the hit/miss ratio for the cache. This ratio is defined as hits/(hits + misses)."/>
>             <metric property="ReadWriteRatio" displayType="summary" units="percentage"
>                     description="Returns the read/write ratio for the cache. This ratio is defined as (hits + misses)/stores."/>
>             <metric property="Hits" displayType="summary"/>
>             <metric property="Misses" displayType="summary"/>
>             <metric property="Evictions" displayType="summary"/>
>             <metric property="NumberOfLocksHeld"/>
>             <metric property="NumberOfNodes"/>
>             <metric property="AverageWriteTime" units="milliseconds"/>
>             <metric property="TimeSinceReset" units="seconds"/>
>             <metric property="AverageReadTime" units="milliseconds"/>
>             <metric property="NumberOfNodes"/>
>             <metric property="Stores"/>
>             <metric property="NumberOfAttributes"/>
>             <metric property="ElapsedTime" units="milliseconds"/> 

-- 
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