Hi, I get this solrj error in development environment.
org.apache.solr.client.solrj.SolrServerException: java.net.SocketException: Too many open files At the time there was no reindexing or any write to the index. There were only different queries genrated using solrj to hit solr server: CommonsHttpSolrServer server = new CommonsHttpSolrServer(url); server.setSoTimeout(1000); // socket read timeout server.setConnectionTimeout(1000); server.setDefaultMaxConnectionsPerHost(100); server.setMaxTotalConnections(100); ... QueryResponse rsp = server.query(solrQuery); I did NOT share reference of solrj CommonsHttpSolrServer among requests. So every http request will obtain a solj solr server instance and run query on it. The question is: 1. Should solrj client share one instance of CommonHttpSolrServer? Why? Is every CommonHttpSolrServer matched to one solr/lucene reader? But from the source code, it just shows it related to one apache http client. 2. Is TooManyOpenFiles exeption related to my possible wrong usage of CommonHttpSolrServer? 3. server.query(solrQuery) throws SolrServerException. How can concurrent solr queries triggers Too many open file exception? Look forward to your input. Thanks, cy -- View this message in context: http://lucene.472066.n3.nabble.com/Too-many-open-files-exception-related-to-solrj-getServer-too-often-tp2808718p2808718.html Sent from the Solr - User mailing list archive at Nabble.com.