user1731299
user1731299

Reputation: 567

Solr - java.net.SocketException: Too many open files

I'm using solr 3.6.1 in my project and since yesterday I get following errors if I try to update the index:

Socket accept failed: java.net.SocketException: Too many open files

org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: 
  NativeFSLock@/opt/jboss-as-7.1.1.Final/domain/servers/server-one/lib/apache-solr-3.6.1-
 /example/solr/./data/index/write.lock

I already found following "solutions" to avoid these errors (?):

What is the best solution?

Upvotes: 1

Views: 1884

Answers (1)

sevage
sevage

Reputation: 39

This works for me:

insert following lines to /etc/security/limits.conf

* soft nofile 65535
* hard nofile 65535

Then logout/login or open new session for user You run server with.

Upvotes: 1

Related Questions