“Max open files” for working process

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

    The following commands give the max # of open files per process permissible by default limits (soft and hard respectively):

    ulimit -Sa
    ulimit -Ha
    

    You can use a program or a command to change these limits. Look at ulimit (man ulimit).

提交回复
热议问题