我在一台32GB ram的机器上运行postgresql 9.3,交换0.最多可连接200个客户端.盒子上还有另外1个4GB进程.如何解释此错误日志消息?如何防止内存不足错误?允许交换?为机器添加更多内存?允许更少客户端连接?调整设置?
示例pg_top:
last pid: 6607; load avg: 3.59, 2.32, 2.61; up 16+09:17:29 20:49:51
113 processes: 1 running, 111 sleeping, 1 uninterruptable
CPU states: 22.5% user, 0.0% nice, 4.9% system, 63.2% idle, 9.4% iowait
Memory: 29G used, 186M free, 7648K buffers, 23G cached
DB activity: 2479 tps, 1 rollbs/s, 217 buffer r/s, 99 hit%, 11994 row r/s, 3820 row w/s
DB I/O: 0 reads/s, 0 KB/s, 0 writes/s, 0 KB/s
DB disk: 149.8 GB total, 46.7 GB free (68% …Run Code Online (Sandbox Code Playgroud) postgresql ×1