“Max open files” for working process

后端 未结 8 664
春和景丽
春和景丽 2020-12-02 17:33

Is it possible to increase \"Max open files\" parameter for working process ? I mean this parameter:

cat /proc//limits | grep files
8条回答
  •  [愿得一人]
    2020-12-02 18:15

    This link details how to change this system wide or per user.

    Many application such as Oracle database or Apache web server needs this range quite higher. So you can increase the maximum number of open files by setting a new value in kernel variable /proc/sys/fs/file-max as follows (login as the root):

    $ sysctl -w fs.file-max=100000

    You need to edit /etc/sysctl.conf file and put following line so that after reboot the setting will remain as it is

提交回复
热议问题