lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Wiblin" <>
Subject RE: SOlr crashes
Date Mon, 14 Aug 2006 06:36:00 GMT

A common problem with any server running lucene becasue it needs to open lots of file handles
- often more than the linux default of 1024.

Here's the fix for a linux system...

Edit the file:   /etc/security/limits.conf

Add to the bottom:

* soft nofile 16384
* hard nofile 16384

Restart any console windows you have open and when you run ulimit -a you should get something

core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 16384     
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 7168
virtual memory (kbytes, -v) unlimited

Restarting Solr... your "too many file handles" crash should be reoslved.
Best regards,


-----Original Message-----
From: farhan diwan []
Sent: 14 August 2006 07:29
Subject: SOlr crashes

It crashes giving this output. Too many open files
        at org.mortbay.util.ThreadedServer.newServerSocket(
        at org.mortbay.util.ThreadedServer.start(
        at org.mortbay.http.SocketListener.start(
        at org.mortbay.http.HttpServer.doStart(
        at org.mortbay.util.Container.start(
        at org.mortbay.jetty.Server.main(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.mortbay.start.Main.invokeMain(
        at org.mortbay.start.Main.start(
        at org.mortbay.start.Main.main(

View raw message