[jboss-as7-dev] 2nd level cache monitoring

Francesco Marchioni marchioni.francesco at gmail.com
Tue Aug 30 02:12:26 EDT 2011


2011/8/29 Scott Marlow <smarlow at redhat.com>

>
>
> On 08/28/2011 04:12 PM, Brian Stansberry wrote:
> > I believe Scott Marlow is looking into that, as he started a thread
> > earlier this month[1] about one approach to exposing such statistics.
>
> Definitely plan to do work on this soon.
>
> >
> > [1]
> http://lists.jboss.org/pipermail/jboss-as7-dev/2011-August/003539.html
> >
> > On 8/26/11 9:22 AM, Francesco Marchioni wrote:
> >> Dear all,
> >> does anyone know if it will ever be possible to monitor the 2nd level
> >> cache (basically its size) through the CLI/web interface ?
> >> At the moment I'm using a programmatic approach (with
> >> HibernateStatistics) however I'm looking for an admin approach to it.
>
> Are you using JMX currently?  Can you please give some examples of the
> JMX queries that you are using to get this?
>

Hello,
well no, I'm basically using Hibernate Api to get through the cache

        Statistics stats = factory.getStatistics();
        SecondLevelCacheStatistics cacheStats =
        stats.getSecondLevelCacheStatistics("entity-region");
        System.out.println("Entity cached:"
+cacheStats.getElementCountInMemory());
         . . . . . . . .

however I remember being it possible through the jmx-console in AS5- though
I dont remember which was the MBean.
regards
Francesco



>
> Scott
>
> >> Thanks a lot
> >> Francesco
> >>
> >>
> >>
> >> _______________________________________________
> >> jboss-as7-dev mailing list
> >> jboss-as7-dev at lists.jboss.org
> >> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
> >
> >
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20110830/c6d6b588/attachment.html 


More information about the jboss-as7-dev mailing list