PG 数据库启动

DEBUG:  loaded library "imcs"
DEBUG:  find_in_dynamic_libpath: trying "/opt/pgsql/lib/plugin_debugger"
DEBUG:  find_in_dynamic_libpath: trying "/opt/pgsql/lib/plugin_debugger.so"
DEBUG:  loaded library "plugin_debugger"
DEBUG:  invoking IpcMemoryCreate(size=8737193984)
DEBUG:  mmap with MAP_HUGETLB failed, huge pages disabled: Cannot allocate memory
FATAL:  could not map anonymous shared memory: Cannot allocate memory
HINT:  This error usually means that PostgreSQL's request for a shared memory segment exceeded available memory, swap space, or huge pages. To reduce the request size (currently 8737193984 bytes), reduce PostgreSQL's shared memory usage, perhaps by reducing shared_buffers or max_connections.
DEBUG:  shmem_exit(1): 0 before_shmem_exit callbacks to make
DEBUG:  shmem_exit(1): 0 on_shmem_exit callbacks to make
DEBUG:  proc_exit(1): 2 callbacks to make
DEBUG:  exit(1)
DEBUG:  shmem_exit(-1): 0 before_shmem_exit callbacks to make
DEBUG:  shmem_exit(-1): 0 on_shmem_exit callbacks to make
DEBUG:  proc_exit(-1): 0 callbacks to make

DEBUG:  invoking IpcMemoryCreate(size=8737193984)
DEBUG:  mmap with MAP_HUGETLB failed, huge pages disabled: Cannot allocate memory
DEBUG:  SlruScanDirectory invoking callback on pg_notify/0000
DEBUG:  removing file "pg_notify/0000"
DEBUG:  dynamic shared memory system will support 128 segments
DEBUG:  created dynamic shared memory control segment 1804289383 (1036 bytes)
DEBUG:  max_safe_fds = 985, usable_fds = 1000, already_open = 5
LOG:  redirecting log output to logging collector process

数据库启动 #ifdef EXEC_BACKEND if (argc > 1 && strncmp(argv[1], "--fork", 6) == 0) SubPostmasterMain(argc, argv); /* does not return */

main --> EXEC_BACKEND SubPostmasterMain --CreateSharedMemoryAndSemaphores -- PGSharedMemoryCreate(Size size, bool makePrivate, int port, PGShmemHeader **shim)

SlruScanDirectory

转载于:https://my.oschina.net/innovation/blog/706380

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值