are there any limit in increase number of openfile in linux?

i want to increase the number of openfile, and on google there are so many ex about it, but there are plenty of number too.
so, are there any limit in increase number of openfile in linux?

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

/proc/sys/fs/file-max contains the currently set number of system-wide maximum open files. On my x86_64 systme, that’s 9223372036854775807 (which is an incredibly large number, namely 2⁶³-1, the largest integer that you can represent in a signed 64 bit int).

You can increase that number (if it’s problematically small) until your kernel complains the value you set can’t be applied, e.g.

echo 1000000 > /proc/sys/fs/file-max

(as root).

But usually, that limit is already very high (even on smaller machines, half a million), unless you’re using a very old kernel or Linux distro.

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply