: > I am using solr 3.6.0 , I have observed many connection in CLOSE_WAIT state : > after using solr server for some time. On further analysis and googling : > found that I need to close the idle connections from the client which is : > connecting to solr to query data and it does reduce the number of CLOSE_WAIT : > connections but still some connection remain in that state. ... : This is a "me too" email. We've got haproxy sitting in front of Solr. A : little more than half of the connections in the various WAIT states are from : the webserver SolrJ clients to haproxy listening on ports 8983 and 8984. This : is SolrJ to haproxy, so there is a non-Solr component.
This *sounds* like the general problem addressed in the following issues... https://issues.apache.org/jira/browse/SOLR-861 https://issues.apache.org/jira/browse/SOLR-2020 https://issues.apache.org/jira/browse/SOLR-3532 In particular: SolrJ clients should now call shutdown() on their SolrServer object to let it know they don't want to re-use any existing connections anymore, and when Solr internally uses SolrJ to talk to other nodes in SolrCloud it should be doing this (as of 4.0-ALPHA) -Hoss