I've run ulimit -n 65536
, added the following lines to /etc/security/limits.conf
:
* soft nofile 65536
* hard nofile 65536
alix soft nofile 65536
alix hard nofile 65536
root soft nofile 65536
root hard nofile 65536
And added session required pam_limits.so
to both:
- /etc/pam.d/common-session
- /etc/pam.d/common-session-noninteractive
And fs.file-max = 65536
to /etc/sysctl.d/60-file-max.conf
.
Still, after restarting and running ulimit -n
on my session, I only get 4096 (was 1024 before).
What am I missing?