Author: mreutegg
Date: Mon Jun 19 13:59:41 2017
New Revision: 1799211

URL: http://svn.apache.org/viewvc?rev=1799211&view=rev
Log:
OAK-6369: Reduce cache segments for revisions sweep

Modified:
    
jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/run/RevisionsCommand.java

Modified: 
jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/run/RevisionsCommand.java
URL: 
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/run/RevisionsCommand.java?rev=1799211&r1=1799210&r2=1799211&view=diff
==============================================================================
--- 
jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/run/RevisionsCommand.java
 (original)
+++ 
jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/run/RevisionsCommand.java
 Mon Jun 19 13:59:41 2017
@@ -366,6 +366,10 @@ public class RevisionsCommand implements
             System.err.println("revisions mode only available for 
DocumentNodeStore");
             return;
         }
+        // usage of this DocumentNodeStore is single threaded. Reduce the
+        // number of cache segments to a minimum. This allows for caching
+        // bigger entries that would otherwise be evicted immediately
+        builder.setCacheSegmentCount(1);
         DocumentStore store = builder.getDocumentStore();
         // cluster node must be inactive
         for (ClusterNodeInfoDocument doc : ClusterNodeInfoDocument.all(store)) 
{


Reply via email to