Troubleshoting

All the OpenKM instances share the same database, and if you create a folder in a given instance it may take several seconds to appear in other instance. This is because OpenKM cache the node children to improve performance, but in this case this cache it disturbing. To reduce this time you can configure the cache with these values (ehcache.xml file content)

<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <diskStore path="java.io.tmpdir/okm"/>

    <cache name="com.openkm.dao.bean.NodeDocument"
       maxElementsInMemory="100"
       timeToIdleSeconds="5"
       timeToLiveSeconds="5"
       overflowToDisk="true"
       eternal="false" />

    <cache name="com.openkm.dao.bean.NodeFolder"
       maxElementsInMemory="100"
       timeToIdleSeconds="5"
       timeToLiveSeconds="5"
       overflowToDisk="true"
       eternal="false" />
    
    <cache name="com.openkm.dao.bean.NodeBase"
       maxElementsInMemory="100"
       timeToIdleSeconds="5"
       timeToLiveSeconds="5"
       overflowToDisk="true"
       eternal="false" />

    <defaultCache
       maxElementsInMemory="1000"
       eternal="false"
       timeToIdleSeconds="5"
       timeToLiveSeconds="5"
       overflowToDisk="true"
       maxElementsOnDisk="1000"
       diskPersistent="false"
       diskExpiryThreadIntervalSeconds="5"
       memoryStoreEvictionPolicy="LRU"
    />
</ehcache>

 

 

Table of contents [ Hide Show ]