jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1381536 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeStore.java
Date Thu, 06 Sep 2012 09:10:01 GMT
Author: jukka
Date: Thu Sep  6 09:10:01 2012
New Revision: 1381536

URL: http://svn.apache.org/viewvc?rev=1381536&view=rev
Log:
OAK-167: Caching NodeStore implementation

Reduce the maximum cache size to avoid OOMs during tests.
TODO: Make the cache configurable (or better yet, leave it up to the MK)

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeStore.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeStore.java?rev=1381536&r1=1381535&r2=1381536&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeStore.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeStore.java
Thu Sep  6 09:10:01 2012
@@ -60,7 +60,7 @@ public class KernelNodeStore implements 
     private volatile Observer observer = EmptyObserver.INSTANCE;
 
     private final LoadingCache<String, KernelNodeState> cache =
-            CacheBuilder.newBuilder().maximumSize(100000).build(
+            CacheBuilder.newBuilder().maximumSize(10000).build(
                     new CacheLoader<String, KernelNodeState>() {
                         @Override
                         public KernelNodeState load(String key) {



Mime
View raw message