Updated Branches:
  refs/heads/develop fc848813b -> 7bdf80d5a

improve cache settings for triplestore itself to avoid cache overflows


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/7bdf80d5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/7bdf80d5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/7bdf80d5

Branch: refs/heads/develop
Commit: 7bdf80d5ad97edc0d9b5897e8846a961d2c99d28
Parents: fc84881
Author: Sebastian Schaffert <[email protected]>
Authored: Thu Nov 21 12:51:59 2013 +0100
Committer: Sebastian Schaffert <[email protected]>
Committed: Thu Nov 21 12:51:59 2013 +0100

----------------------------------------------------------------------
 .../kiwi-triplestore/src/main/resources/ehcache-kiwi.xml    | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/7bdf80d5/libraries/kiwi/kiwi-triplestore/src/main/resources/ehcache-kiwi.xml
----------------------------------------------------------------------
diff --git 
a/libraries/kiwi/kiwi-triplestore/src/main/resources/ehcache-kiwi.xml 
b/libraries/kiwi/kiwi-triplestore/src/main/resources/ehcache-kiwi.xml
index 8b5aa7c..b18cb45 100644
--- a/libraries/kiwi/kiwi-triplestore/src/main/resources/ehcache-kiwi.xml
+++ b/libraries/kiwi/kiwi-triplestore/src/main/resources/ehcache-kiwi.xml
@@ -140,7 +140,6 @@ are "on" and "off".  The default is "autodetect".
     created programmtically using CacheManager.add(String cacheName)
     -->
     <defaultCache
-            maxElementsInMemory="20000"
             eternal="true"
             overflowToDisk="false"
             memoryStoreEvictionPolicy="LRU"
@@ -171,7 +170,7 @@ are "on" and "off".  The default is "autodetect".
     -->
     <cache name="query-cache"
            statistics="true"
-           maxElementsInMemory="10000"
+           maxBytesLocalHeap="10%"
            timeToLiveSeconds="3600"
            overflowToDisk="false"/>
 
@@ -184,7 +183,7 @@ are "on" and "off".  The default is "autodetect".
 
     <!-- a cache from anonymous ID to KiWiAnonResource -->
     <cache name="bnode-cache"
-           maxElementsInMemory="5000"
+           maxBytesLocalHeap="5%"
            overflowToDisk="false"
            timeToLiveSeconds="3600"
            memoryStoreEvictionPolicy="LRU"/>
@@ -199,13 +198,13 @@ are "on" and "off".  The default is "autodetect".
 
 
     <cache name="namespace-prefix-cache"
-           maxElementsInMemory="100"
+           maxBytesLocalHeap="5%"
            eternal="true"
            overflowToDisk="false"
            memoryStoreEvictionPolicy="LFU"/>
 
     <cache name="namespace-uri-cache"
-           maxElementsInMemory="100"
+           maxBytesLocalHeap="5%"
            eternal="true"
            overflowToDisk="false"
            memoryStoreEvictionPolicy="LFU"/>

Reply via email to