stintel's blog

Changing the maximum number of open file descriptors

On Linux, there is a global and per-user limit of open file descriptors (read: maximum number of open files). The global limit is distribution and kernel specific, the per-user limit is set to 1024 by default. However, some applications, like Lotus Domino, Oracle, ... require to have more than 1024 open files.

Global limit

The current global limit can be checked with:
cat /proc/sys/fs/file-max

To change the global limit, you can do:
echo 65536 > /proc/sys/fs/file-max

Unfortunately, if you set the limit with the above command, it will not be saved after a reboot. To change this parameter at every boot, you have to add this to /etc/sysctl.conf:
fs.file-max = 65536

Tags: 

Topics: 

Yay! My first blog entry :-)

Hi all, and welcome to my blog. As you can see, this is my first blog entry.

Because my colleague Fred kept asking where he could find my blog, I quickly setup one ;-) I'll try to blog some stuff here from time to time, but I don't promise anything :-)

Cheers
Stijn

Topics: 

Pages

Subscribe to RSS - stintel's blog