Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ public interface ElasticsearchCluster extends TestRule, LocalClusterHandle {
* @return a builder for a local cluster
*/
static LocalClusterSpecBuilder<ElasticsearchCluster> local() {
return locateBuilderImpl();
LocalClusterSpecBuilder<ElasticsearchCluster> elasticsearchClusterSpecBuilder = locateBuilderImpl();
// reduce the size of direct buffers so we don't OOM when reserving direct memory on small machines with many CPUs in tests
elasticsearchClusterSpecBuilder.systemProperty("es.searchable.snapshot.shared_cache.write_buffer.size", "256k");
return elasticsearchClusterSpecBuilder;
}

@SuppressWarnings({ "unchecked", "rawtypes" })
Expand Down