diff --git a/core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/MemoryOverflowModel.java b/core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/MemoryOverflowModel.java index b04cebf4a7f..194aa561bf6 100644 --- a/core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/MemoryOverflowModel.java +++ b/core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/MemoryOverflowModel.java @@ -244,8 +244,8 @@ private synchronized void checkMemoryOverflow() { maxBlockSize = blockSize; } // Sync if either the estimated size of the next block is larger than remaining memory, or - // if less than 10% of the heap is still free (this last condition to avoid GC overhead limit) - if (freeToAllocateMemory < Math.min(0.1 * maxMemory, maxBlockSize)) { + // if less than 15% of the heap is still free (this last condition to avoid GC overhead limit) + if (freeToAllocateMemory < Math.min(0.15 * maxMemory, maxBlockSize)) { logger.debug("syncing at {} triples. max block size: {}", size, maxBlockSize); overflowToDisk(); }