postgresql 9.6

时间:2017-04-13 06:48:01

标签: postgresql cpu postgresql-9.6

我们将postgresql从9.3升级到9.6,我们发现升级postgresql后整体消耗了75%的CPU。 我们正在使用基于Web的应用程序(JBOSS),它将与postgresql 9.6进行通信 我们正在使用性能测量脚本,它将调用rest API并运行1小时并收集整体CPU利用率。

使用以下配置,1小时后的总体CPU利用率约为75%。

postgresql.conf中:

max_worker_processes = 16

max_parallel_workers_per_gather = 8

force_parallel_mode =上

的shared_buffers = 3GB

maintenance_work_mem = 1GB

backend_flush_after = 1MB

bgwriter_flush_after = 1MB

bgwriter_delay = 10ms的

min_wal_size = 1GB

max_wal_size = 2GB

synchronous_commit =关

effective_io_concurrency = 100

max_prepared_transactions = 1000

硬件配置

CPU = 8 Core

内存= 16GB

postgresql数据目录驻留在NFS中。

postgresql 9.3中没有遇到这些性能峰值(总CPU消耗约为50%)

任何人都可以帮忙吗?

0 个答案:

没有答案