【问题标题】:Postgresql 8.4 -> 9.1 : ANALYSE VERBOSE; -> out of shared memoryPostgresql 8.4 -> 9.1:分析详细; -> 共享内存不足
【发布时间】:2014-05-12 13:06:17
【问题描述】:

仅供参考,这个问题也发布在 PG-General 邮件列表中,

自从我们从 8.4 迁移到 9.1 后,我们遇到了一个问题。

我们玩的时候:

ANALYSE VERBOSE; 

(所有数据库的统计数据,有 500 个表和所有表中的 1to DATA)

我们现在收到了这条消息:

org.postgresql.util.PSQLException: ERROR: out of shared memory Indice : You might need to increase max_locks_per_transaction.

我们在8.4的时候没有报错,服务器上有我们具体的postgresql.conf配置:

default_statistics_target = 200
maintenance_work_mem = 1GB
constraint_exclusion = on
checkpoint_completion_target = 0.9
effective_cache_size = 7GB
work_mem = 48MB
wal_buffers = 32MB
checkpoint_segments = 64
shared_buffers = 2304MB
max_connections = 150
random_page_cost = 2.0
max_locks_per_transaction = 128 **

max_lock_per_transaction 在 (64?) 之前是默认值,我们已经根据错误提示尝试增加它

我们也已经尝试过增加 linux 共享内存。你有什么建议吗?

【问题讨论】:

    标签: memory statistics postgresql-9.1


    【解决方案1】:

    我会尝试降低maintenance_work_mem(尝试256MB)并将max_locks_per_transaction 设置为更高的值,例如1024.

    【讨论】:

      猜你喜欢
      • 2011-03-09
      • 1970-01-01
      • 1970-01-01
      • 2013-07-13
      • 1970-01-01
      • 2013-05-05
      • 1970-01-01
      • 1970-01-01
      • 2012-09-18
      相关资源
      最近更新 更多