小编mta*_*ott的帖子

闲置的postgres进程占用了大量的内存

我试图找出为什么~30个空闲的postgres进程在正常使用后会占用如此多的特定于进程的内存.我正在使用Postgres 9.3.1和CentOS版本6.3(最终版).使用top,我可以看到许多postgres连接使用高达300mb(平均~200mb)的非共享(RES-SHR)内存:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 3534 postgres  20   0 2330m 1.4g 1.1g S  0.0 20.4   1:06.99 postgres: deploy mtalcott 10.222.154.172(53495) idle
 9143 postgres  20   0 2221m 1.1g 983m S  0.0 16.9   0:14.75 postgres: deploy mtalcott 10.222.154.167(35811) idle
 6026 postgres  20   0 2341m 1.1g 864m S  0.0 16.4   0:46.56 postgres: deploy mtalcott 10.222.154.167(37110) idle
18538 postgres  20   0 2327m 1.1g 865m S  0.0 16.1   2:06.59 postgres: deploy mtalcott 10.222.154.172(47796) idle …
Run Code Online (Sandbox Code Playgroud)

memory postgresql centos centos6 postgresql-9.3

19
推荐指数
1
解决办法
8657
查看次数

标签 统计

centos ×1

centos6 ×1

memory ×1

postgresql ×1

postgresql-9.3 ×1