0

根据本指南,我已经在一台机器上部署了具有 2 个阴影和 2 个切片的 solr 云设置:http: //outerthought.org/blog/491-ot.html

当同时从 2 个客户端提交 500 多个文档时,solr 云会抛出此异常。任何形式的帮助表示赞赏。谢谢。

SEVERE: shard update error StdNode:     
http://newscheduler:8900/solr/core_collection1_slice1_shard2/:org.apache.solr.common.SolrException:  
Server at http://newscheduler:8900/solr/core_collection1_slice1_shard2 returned non ok status:500,  
message:Server Error
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:403)
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:209)
at org.apache.solr.update.SolrCmdDistributor$1.call(SolrCmdDistributor.java:320)
at org.apache.solr.update.SolrCmdDistributor$1.call(SolrCmdDistributor.java:301)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
4

1 回答 1

0

当我没有为 solrj 客户端放置足够的内存时,我会遇到同样的错误。我需要在我的环境中放置类似的东西:

JVM_OPTS="${JVM_OPTS} -XX:NewSize=512m -XX:MaxNewSize=1G -XX:PermSize=512m -XX:MaxPermSize=1G -XX:+DisableExplicitGC -Xms4G -Xmx6G"
于 2012-07-11T13:27:38.217 回答