[Building Sakai] Configuring SITE_PAGE_PROPERTY cache

Matthew Buckett matthew.buckett at oucs.ox.ac.uk
Fri Feb 24 03:20:39 PST 2012


On 24 February 2012 11:14, David Horwitz <david.horwitz at uct.ac.za> wrote:
> 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?

Not sure why that doesn't work, but I think cache config can come from
sakai.properties:

memory.org.sakaiproject.db.BaseDbFlatStorage.SAKAI_SITE_PAGE_PROPERTY=maxElementsInMemory=30000,overflowToDisk=false

This is there in 2.8 I think.

-- 
  Matthew Buckett
  VLE Developer, LTG, Oxford University Computing Services


More information about the sakai-dev mailing list