Skip to content

Commit bc7ecf8

Browse files
authored
shrinking pagecache for less memory consumption (#540)
1 parent 2f3e124 commit bc7ecf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/apoc/index/UpdateFreetextIndexTest.java

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import org.neo4j.graphdb.GraphDatabaseService;
1010
import org.neo4j.graphdb.factory.GraphDatabaseBuilder;
1111
import org.neo4j.graphdb.factory.GraphDatabaseFactory;
12+
import org.neo4j.graphdb.factory.GraphDatabaseSettings;
1213
import org.neo4j.kernel.api.exceptions.KernelException;
1314

1415
import java.util.Arrays;
@@ -111,6 +112,7 @@ public void shouldIndexGetUpdatedAcrossRestarts() throws KernelException, Interr
111112

112113
private GraphDatabaseService initGraphDatabase() {
113114
GraphDatabaseBuilder graphDatabaseBuilder = new GraphDatabaseFactory().newEmbeddedDatabaseBuilder(tmpFolder.getRoot());
115+
graphDatabaseBuilder.setConfig(GraphDatabaseSettings.pagecache_memory, "8M");
114116
graphDatabaseBuilder.setConfig("apoc.autoIndex.enabled", Boolean.toString(paramEnableAutoUpdatesInApocConfig));
115117
graphDatabaseBuilder.setConfig("apoc.autoIndex.async", Boolean.toString(paramDoUpdatesAsync));
116118
graphDatabaseBuilder.setConfig("apoc.autoIndex.async_rollover_opscount", "10");

0 commit comments

Comments
 (0)