SolrCore Initialization Failures - Max direct memory is likely too low

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.

posted on 2018-02-02 15:28  cxhfuujust  阅读(413)  评论(0编辑  收藏  举报

导航