I set /etc/security/limits.conf so that root has a high ulimit. However, after restarting the system some of the processes running as root still have a limit of 1024. Does the limits.conf not apply to all applications?
Linux – way to set ulimit for all root processes
linux
Related Topic
- Linux – determine ulimit for root user
- Linux – how to limit the number of simultaneous processes per user in the system
- Jenkins – ulimit Not Reflected for Jenkins Slave
- Linux – Increase file ulimit for the asterisk daemon
- Linux – ulimit -n not persisting, tried everything
- Linux – /etc/security/limits.conf soft nproc limit appears to be ignored
- Linux CentOS Systemd – Increasing nproc for Processes Launched by Systemd on CentOS 7
- Linux – Centos Monit ulimit not working
Best Answer
The limits set through
/etc/security/limits.conf
only apply to processes that pass through the PAM stack and have the pam_limits module applied.It's likely these processes do not go through PAM.
I think you'd have to find out where they are started from and manually set the ulimit there using the
ulimit
command.