Permalink
Browse files

Memory mapped configuration now read from config.props

  • Loading branch information...
1 parent ef03b61 commit be28c5a717d930918ea2f36b8d19683cc96024df Johan Svensson committed Apr 4, 2012
View
@@ -0,0 +1,5 @@
+neostore.nodestore.db.mapped_memory=12M
+neostore.relationshipstore.db.mapped_memory=56M
+neostore.propertystore.db.mapped_memory=46M
+neostore.propertystore.db.strings.mapped_memory=39M
+neostore.propertystore.db.arrays.mapped_memory=45M
@@ -26,11 +26,7 @@
import java.io.FileReader;
import java.io.IOException;
import java.text.DecimalFormat;
-import java.util.ArrayList;
-import java.util.HashSet;
import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
@@ -19,6 +19,7 @@
*/
package org.neo4j.bench.regression.main;
+import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;
@@ -40,9 +41,9 @@ public static void main( String[] args ) throws Exception
{
Args argz = new Args( args );
long timeToRun = Long.parseLong( argz.get( "time-to-run", "120" ) ); // Time in minutes
- Map<String, String> props = new HashMap<String, String>();
+ Map<String, String> props = EmbeddedGraphDatabase.loadConfigurations( "../config.props" );
props.put( Config.USE_MEMORY_MAPPED_BUFFERS, "true" );
- final EmbeddedGraphDatabase db = new EmbeddedGraphDatabase( "db" );
+ final EmbeddedGraphDatabase db = new EmbeddedGraphDatabase( "db", props );
final MixedLoadBenchCase myCase = new MixedLoadBenchCase( timeToRun );
/*
* Commented out because it breaks windows but it is nice to have for

0 comments on commit be28c5a

Please sign in to comment.