Article 59MZG Confused with fd limit setting difference on the system level or on the service level (systemctl)

Confused with fd limit setting difference on the system level or on the service level (systemctl)

by
c0nfuser
from LinuxQuestions.org on (#59MZG)
Hi!

I would like to change the file descriptor soft limit for a specific process which is executed via a systemctl service and is actually a server which creates socket connections therefore I would like to increase the limit to more than 100k

In this case there is the option of editing directly /etc/security/limits.conf which as far as I know it will apply the changes for the user but

recently I learned also that systemctl provides this options

Code:LimitNOFILE= ulimit -n Number of File DescriptorsWhich I would like to ask, are those 2 settings are independent? I mean if I will set a value directly to the systemctl LimitNOFILE=100000, do I need to edit also the /etc/security/limits.conf ?

Thanks!latest?d=yIl2AUoC8zA latest?i=Fl0J5ZFEvbU:WglWjZBK2-M:F7zBnMy latest?i=Fl0J5ZFEvbU:WglWjZBK2-M:V_sGLiP latest?d=qj6IDK7rITs latest?i=Fl0J5ZFEvbU:WglWjZBK2-M:gIN9vFwFl0J5ZFEvbU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments