小编Jam*_*ell的帖子

如何更改 /etc/security/limits.d/ 中的堆栈深度限制并在启动时将更改应用于服务

我的系统

  • Ubuntu 14.04.5 (x86_64) 服务器系列,不断更新
  • 我的应用程序需要我增加 postgres 的堆栈深度
  • 我在/etc/security/limits.d/myapplication.conf 中创建了一个文件
  • myapplication.conf档案中有一行:* - stack 131072
  • 请注意,131072KB == 128MB
  • 制作此myapplication.conf文件后,我ulimit -s返回:131072
  • 然后我编辑了我的/etc/postgresql/9.3/main/postgresql.conf文件并附加了以下行:max_stack_depth = 126MB


我的问题

在引导期间,会出现以下消息:

 * The PostgreSQL server failed to start. Please check the log output:
2018-01-24 09:27:53 MST LOG:  invalid value for parameter "max_stack_depth": 129024
2018-01-24 09:27:53 MST DETAIL:  "max_stack_depth" must not exceed 7680kB.
2018-01-24 09:27:53 MST HINT:  Increase the platform's stack depth limit via "ulimit …
Run Code Online (Sandbox Code Playgroud)

postgresql ubuntu ulimit ansible

6
推荐指数
1
解决办法
1269
查看次数

3
推荐指数
1
解决办法
7万
查看次数