mirror of https://github.com/apache/lucene.git
SOLR-9284: Reduce off heap cache size.
This commit is contained in:
parent
55f10e9060
commit
6962381180
|
@ -114,7 +114,7 @@ public class BlockDirectoryTest extends SolrTestCaseJ4 {
|
||||||
if (random().nextBoolean()) {
|
if (random().nextBoolean()) {
|
||||||
Metrics metrics = new Metrics();
|
Metrics metrics = new Metrics();
|
||||||
int blockSize = 8192;
|
int blockSize = 8192;
|
||||||
int slabSize = blockSize * 32768;
|
int slabSize = blockSize * 16384;
|
||||||
long totalMemory = 1 * slabSize;
|
long totalMemory = 1 * slabSize;
|
||||||
BlockCache blockCache = new BlockCache(metrics, true, totalMemory, slabSize, blockSize);
|
BlockCache blockCache = new BlockCache(metrics, true, totalMemory, slabSize, blockSize);
|
||||||
BlockDirectoryCache cache = new BlockDirectoryCache(blockCache, "/collection1", metrics, true);
|
BlockDirectoryCache cache = new BlockDirectoryCache(blockCache, "/collection1", metrics, true);
|
||||||
|
|
Loading…
Reference in New Issue