- 论坛徽章:
- 0
|
谢谢roamvalley的回复。
写的很清楚,又学会了一点。
也感谢horseman的关注!
1. 你跑數據庫的服務器,操作系統關于共享內存的參數是如何設定的,如果可以的話把它貼上來看看
# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296
2. postgresql.conf里面的配置,你更改了哪些,最好把這個貼上來看看
我改了如下:(改后的值)
max_connections = 500
shared_buffers = 4000
#max_fsm_pages = 20000 # min max_fsm_relations*16, 6 bytes each
#max_fsm_relations = 1000 # min 100, ~70 bytes each
max_fsm_pages=40000
我就改了以上3个地方。
3. 跑數據庫的服務器只跑數據庫么?沒有其他應用在上面跑?你網站的內容主要是一些啥操作?select or insert or update or delete or some thing
我的数据库服务器上没有别的应用,只有数据库。我的网站频繁的操作有(由高到低)select ,update,insert,delete,也就是select和update比较频繁
数据库服务器的配置:2个4核cup,4G内存,linux4企业版操作系
信息如上!
不知horseman有何高见。。。。
也请大师们看看。。。
谢谢各位的指导!
(在线等待中。。。。。。。) |
|