Here is how far I could get:

The document cache:
  OSCacheCache cache = xwiki.xWiki.getStore().getCache();

seems pretty non-inspectable but is probably configured by xwiki.cfg. Is that 
correct?

The hibernate object cache is controlled by each of the sessions which is 
controlled by the session-factory of which I can get a statistics:

   SessionFactoryImpl sessionFactory = 
xwiki.xWiki.getStore().getStore().getSessionFactory();

however the stats for the factory there seems pretty much empty.
I must be doing something wrong.

thanks for hints.
This, to me, sounds to be a big big optimization possibility if we can have 
some monitoring mechanism.

paul


Le 21 juil. 2011 à 00:48, Paul Libbrecht a écrit :

> 
> Le 21 juil. 2011 à 00:21, Sergiu Dumitriu a écrit :
>>>> Let me ask a simpler question: is ehcache used per default?
>>>> I seem to see a bit more about oscache... is this one rather used?
>>>> Are both used?
>>> 
>>> We're only using jbosscache. ehcache has never been used AFAIK, the other 
>>> implementation that we have but that we're no longer using is oscache.
>> 
>> That's not right. jbosscache is used in XWiki's cache module, but 
>> ehcache is used internally by Hibernate. There are still some 
>> optimizations possible with Hibernate's use of cache, but that's a 
>> rather complex topic.
> 
> aaaaah.
> This is the one I am interested into: the one of hibernate.
> 
> And indeed, all the abstraction kind of prevents me to be sure of things.
> 
> Any way I can be sure ehcache is the one used?
> 
> thanks in advance
> 
> Paul
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to