• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to: Too many open files issue on Centos

AndyB

Well-known member
#1
How to increase the open files variable on Centos.

1) Edit /etc/sysctl.conf and add "fs.file-max = 655036"

2) Run "sysctl -p" at the command line

3) Run "ulimit -n 100000" to increase the limit

To verify values have changed, run at the command line

ulimit -Hn
100000 <- should return this value

ulimit -Sn
100000 <- should return this value