It seems like a very easy question but I couldn't find, what the default for services in SystemD for LimitNOFILE is.
Is there a file with global defaults?
It seems like a very easy question but I couldn't find, what the default for services in SystemD for LimitNOFILE is.
Is there a file with global defaults?
systemd imposes no such limit by default. however pam_limits generally does, configuration file is /etc/security/limits.conf
LimitNOFILE
to a high value did fix the problem. Limits in /etc/security/limits.conf
were set high enough and increasing it alone did not fix the problem. Maybe it has been changed since 2015. –
Pratincole /etc/systemd/system.conf
now does apply a limit (see the other answer) –
Chromatin #/etc/security/limits.conf
#This file sets the resource limits for the users logged in via PAM.
#It does not affect resource limits of the system services.
#if your program startup via systemctl
#config /etc/systemd/system.conf
DefaultLimitNOFILE=
systemd imposes no such limit by default. however pam_limits generally does, configuration file is /etc/security/limits.conf
LimitNOFILE
to a high value did fix the problem. Limits in /etc/security/limits.conf
were set high enough and increasing it alone did not fix the problem. Maybe it has been changed since 2015. –
Pratincole /etc/systemd/system.conf
now does apply a limit (see the other answer) –
Chromatin The default config is in /etc/systemd/system.conf
, and the default value is DefaultLimitNOFILE=1024:524288
.
© 2022 - 2024 — McMap. All rights reserved.