提交时Solr Cloud shard更新错误

时间:2012-05-30 15:11:55

标签: java solr full-text-search replication

根据本指南,我在一台计算机上部署了一个包含2个shads和2个slice的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)

1 个答案:

答案 0 :(得分:0)

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

JVM_OPTS="${JVM_OPTS} -XX:NewSize=512m -XX:MaxNewSize=1G -XX:PermSize=512m -XX:MaxPermSize=1G -XX:+DisableExplicitGC -Xms4G -Xmx6G"