You are not logged in.

#1 2014-07-17 09:22:49

Zygote
Member
Registered: 2013-01-15
Posts: 77

open file limit in limits.conf not being enforced

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

#2 2014-07-17 10:04:18

Zygote
Member
Registered: 2013-01-15
Posts: 77

Re: open file limit in limits.conf not being enforced

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

#3 2015-12-03 05:20:35

enihcam
Member
From: Internet
Registered: 2009-12-20
Posts: 220

Re: open file limit in limits.conf not being enforced

I'm having this problem too. waiting for solutions. sad

Offline

Board footer

Powered by FluxBB