“Max open files” for working process

后端 未结 8 716
春和景丽
春和景丽 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:09

    Another option is to use the prlimit command (from the util-linux package). For example if you want to set the maximum number of open files for a running process to 4096:

    prlimit -n4096 -p pid_of_process

提交回复
热议问题