Need help with Too many open files

(bigfootxxl) #1

I have only one instance and now I get constant Too many open files errors:

my settings are:
[root@server ~]# cat /proc/sys/fs/file-max
[root@server ~]# ulimit -Hn
[root@server ~]# ulimit -Sn
[root@log1tln ~]# cat /usr/lib/sysctl.d/elasticsearch.conf

but all this has no effect, I still have 65535:
[root@server ~]# curl http://server:9200/_nodes/process?pretty|grep max_file_descriptors
"max_file_descriptors" : 65535,

how exactly can I increase the max_file_descriptors then?

(bigfootxxl) #2

Guys! please help!!!! I want to go home, it's past the workday here already... but the damn server is not working :((
I even found finally /etc/sysconfig/elasticsearch but changing the MAX_OPEN_FILES=131070 had also no effect...

I'm getting really desperate here :confused:

When I launch it from command line with -Des.max-open-files=true it has 131070 but the damn service is not taking it.

(bigfootxxl) #3

Got help from irc:

(Mark Walkom) #4

It sounds like systemd doesn't like how we set ulimit, so if we can get more information we can potentially raise a bug to get it fixed.

(Ashis Parajuli) #5

reboot the system ,and hence changes will take effect

(system) #6