2011/8/29 Scott Marlow <smarlow(a)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(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>
>
_______________________________________________
jboss-as7-dev mailing list
jboss-as7-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev