[Building Sakai] Configuring SITE_PAGE_PROPERTY cache

David Horwitz david.horwitz at uct.ac.za
Fri Feb 24 03:47:47 PST 2012


Thanks - it seemed that putting in sakai.properties did the trick, 
however I had to use this bean name:


maxElementsInMemory at db.cache.SAKAI_SITE_PAGE_PROPERTY=50000
overflowToDisk at db.cache.SAKAI_SITE_PAGE_PROPERTY=false


This is in 2.8 not sure if it changed 1 way or  the other.

D

On 02/24/2012 01:20 PM, Matthew Buckett wrote:
> 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.
>



More information about the sakai-dev mailing list