Hi,

I had save problem "Too many open files" but it is logged by Tomcat server. Please check your index directory if there are too much index files please execute Solr optimize command. This exception is raised by OS of server, you can google for researching it.


On 10/26/2011 3:07 AM, Yonik Seeley wrote:
On Tue, Oct 25, 2011 at 4:03 PM, Jonty Rhods<jonty.rh...@gmail.com>  wrote:
Hi,

I am using solrj and for connection to server I am using instance of the
solr server:

SolrServer server =  new CommonsHttpSolrServer("
http://localhost:8080/solr/core0";);
Are you reusing the server object for all of your requests?
By default, Solr and SolrJ use persistent connections, meaning that
sockets are reused and new ones are not opened for every request.

-Yonik
http://www.lucidimagination.com


I noticed that after few minutes it start throwing exception
java.net.SocketException: Too many open files.
It seems that it related to instance of the HttpClient. How to resolved the
instances to a certain no. Like connection pool in dbcp etc..

I am not experienced on java so please help to resolved this problem.

  solr version: 3.4

regards
Jonty



Reply via email to