You are not logged in.
So I am running a Arch installation without a graphical UI and Im running elasticsearch on it as its own user (elasticsearch). Since elasticsearch needs to be able to handle more than the 4066 files that seems to the be the default, I edit /etc/security/limits.conf
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
elasticsearch soft nofile 65000
elasticsearch hard nofile 65000
* - rtprio 0
* - nice 0
@audio - rtprio 65
@audio - nice -10
@audio - memlock 40000
I restart the system, but the limit is seemingly still 4066. What gives? I read on the wiki that in order to enforce the values you need a pam enabled login. I dont have a graphical login manager and
grep pam_limits.so /etc/pam.d/*
Gives me this..
/etc/pam.d/crond:session required pam_limits.so
/etc/pam.d/polkit-1:session required pam_limits.so
/etc/pam.d/su:session required pam_limits.so
/etc/pam.d/system-auth:session required pam_limits.so
/etc/pam.d/system-services:session required pam_limits.so
Any ideas on what I have to do to raise the open file limit here?
Thanks
Offline
Seems like adding the LimitNOFILE parameter to the systemd service file did the trick, but still doesnt explain why limits.conf isnt being enforced.
Last edited by Zygote (2014-07-17 10:04:43)
Offline
I'm having this problem too. waiting for solutions.
Offline