max_files_per_process

类型: integer
默认: 1000
最低限度: 25
最大: 2147483647
上下文: postmaster
重新开始: true

设置每个服务器子进程允许同时打开的最大文件数目。默认是 1000 个文件。如果内核强制一个安全的针对每个进程的限制,那么你不用操心这个设置。但是在 一些平台上(特别是大多数 BSD 系统),如果很多进程都尝试打开很多文件,内核将允许独立进程打开比个系统真正可以支持的数目大得多得文件数。如果你发现自己看到了Too many open files这样的失败,可尝试减小这个设置。这个参数只能在服务器启动时设置。

建议 [EN]

If you have a large database with many partitioned tables, you may want to increase this. Note that you will probably have to increase ulimits for the postgres user or system as well.

条评论