Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
# sysctl -w fs.file-nr=131072
error: permission denied on key 'fs.file-nr'
Same issue when I edit /etc/sysctl.conf and try sysctl -p. Any reason why I cannot edit this value?
I am on CentOS 6.5
fs.file-nr represents the number of allocated file handles, the number of allocated but unused ones, and the maximum number of file handles, which is read-only.
However the third field can be modified through fs.file-max instead.
# sysctl -w fs.file-max=131072
Required, but never shown