[Building Sakai] Configuring SITE_PAGE_PROPERTY cache
David Horwitz
david.horwitz at uct.ac.za
Fri Feb 24 03:14:34 PST 2012
Hi All
I need urgent help configuring the SITE_PAGE_PROPERTY cache. We're
seeing very high disk IO and seeing that this cache seems to be heavily
overflowing to disk. id like to:
- increase the in memory size
- disable overflow to disk.
I've tried editing the cache definition in db-components.xml:
<bean id="db.cache.SAKAI_SITE_PAGE_PROPERTY"
class="org.springframework.cache.ehcache.EhCacheFactoryBean">
<property name="cacheManager"
ref="org.sakaiproject.memory.api.MemoryService.cacheManager" />
<property name="cacheName"
value="org.sakaiproject.db.BaseDbFlatStorage.SAKAI_SITE_PAGE_PROPERTY" />
<property name="maxElementsInMemory" value="30000" />
<property name="overflowToDisk" value="false" />
</bean>
But this does not seem to have any effect on the cache configuration.
Any ideas?
For those interested a snapshot of why I want to make this change:
> [ name =
> org.sakaiproject.db.BaseDbFlatStorage.SAKAI_SITE_PAGE_PROPERTY status
> = STATUS_ALIVE eternal = false overflowToDisk = true
> maxElementsInMemory = 10000 maxElementsOnDisk = 10000000
> memoryStoreEvictionPolicy = LRU timeToLiveSeconds = 3600
> timeToIdleSeconds = 3600 diskPersistent = false
> diskExpiryThreadIntervalSeconds = 120 cacheEventListeners: hitCount =
> 445958 memoryStoreHitCount = 316076 diskStoreHitCount = 129882
> missCountNotFound = 187641 missCountExpired = 48741 ]
Thanks
David
More information about the sakai-dev
mailing list