SolrCore Initialization Failures - Max direct memory is likely too low

本文介绍了解决Solr在使用HDFS缓存时遇到的直接内存溢出问题。通过调整配置参数solr.hdfs.blockcache.direct.memory.allocation为false,可以将缓存从直接内存移至堆内存中,避免错误的发生。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: The max direct memory is likely too low. Either increase it (by adding -XX:MaxDirectMemorySize=g -XX:+UseLargePages to your containers startup args) or disable direct allocation using solr.hdfs.blockcache.direct.memory.allocation=false in solrconfig.xml. If you are putting the block cache on the heap, your java heap size might not be large enough. Failed allocating ~134.217728 MB.

 

https://stackoverflow.com/questions/39588144/solrcore-initialization-failures-max-direct-memory-is-likely-too-low

 

SOLR is caching HDFS index files off JVM heap in direct memory. It is running out of memory while doing so. You can disable direct memory caching by setting solr.hdfs.blockcache.direct.memory.allocation=false

in solrconfig.xml. This will cause SOLR to cache HDFS index file portions in heap, so it is important you check what is the size of your JVM.

转载于:https://www.cnblogs.com/cxhfuujust/p/8405415.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值