Wednesday, April 29, 2020

Fedora 32 change max open files

#soft limit
> ulimit -Sn
1024

#hard limit
> ulimit -Hn
524288

Add to /etc/sysctl.conf

fs.inotify.max_user_watches=524288
fs.file-max=100000


Add to /etc/security/limits.conf

*     soft  nofile 100000
*     hard  nofile 524288
root  soft  nofile 100000
root  hard  nofile 524288


reboot
https://www.99ideas.in/blog-post/increasing-file-descriptors-and-open-files-limit-in-centos-7/

No comments:

Post a Comment