SolrCore Initialization Failures

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