ubuntu上的套接字超时异常

ubuntu上的套接字超时异常,ubuntu,solr,Ubuntu,Solr,我们有solr路由器和碎片。当在所有碎片上进行分面搜索时,这会出现在路由器的jetty日志中 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error org.apache.

我们有solr路由器和碎片。当在所有碎片上进行分面搜索时,这会出现在路由器的jetty日志中

org.apache.commons.httpclient.HttpMethodDirector executeWithRetry 
INFO: I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error 
org.apache.commons.httpclient.HttpMethodDirector executeWithRetry 
INFO: Retrying request 
后跟有关内部服务器错误的异常。我们在几个服务器上运行80个碎片。路由器在自己的节点上运行

UPD: 在SOLR的HttpCommComponent类中,sumbits使用HttpClient类请求碎片,我注意到多线程HttpConnectionManager上有以下设置: mgr.getParams().setDefaultMaxConnectionsPerHost(20)


在我看来,80多个碎片的设置似乎太少。

经过进一步调试,我发现其中一个请求的大小为4,4MB。tomcat6中的默认maxPostSize为2MB()

将其更改为10MB大大改善了solr端的情况