[pgsql-jp: 31678] Re: PostgreSQL7.3.4の性能について
Yoshiyuki NIIJIMA
niijima.yoshiyu @ fks.fujitsu.com
2003年 12月 3日 (水) 10:03:11 JST
新島@FKSです。
ご返答ありがとうございます。
> 繋がらなくなった時に postmaster は生きてますか?
もう一度試してみたのですが、接続が拒否されたメッセージが出ている間に
"ps -ef|grep post"にて調べたところ、3つのpostmasterを確認しました。
また、"ps -ef | grep psql | wc -l"とやってみたところ、
33前後が表示されます。psコマンド自身の1行を引いたらちょうど32前後。。
postgresql.conのmax_connectionsがきいていないのでしょうか?
ちなみにpostgresql.confの主要と思われる部分は以下のようになっています。
> # Connection Parameters
> #
> #tcpip_socket = false
> tcpip_socket = true
> #ssl = false
>
> #max_connections = 32
> #max_connections = 512
> max_connections = 256
> #superuser_reserved_connections = 2
>
> # Shared Memory Size
> #
> #shared_buffers = 64 # min max_connections*2 or 16, 8KB each
> #shared_buffers = 12800 # min max_connections*2 or 16, 8KB each
> #shared_buffers = 1024 # min max_connections*2 or 16, 8KB each
> shared_buffers = 512 # min max_connections*2 or 16, 8KB each
> #max_fsm_relations = 1000 # min 10, fsm is free space map, ~40 bytes
> #max_fsm_pages = 10000 # min 1000, fsm is free space map, ~6 bytes
> #max_locks_per_transaction = 64 # min 10
> #wal_buffers = 8 # min 4, typically 8KB each
> wal_buffers = 1600 # min 4, typically 8KB each
> #
> # Write-ahead log (WAL)
> #
> #checkpoint_segments = 3 # in logfile segments, min 1, 16MB each
> #checkpoint_timeout = 300 # range 30-3600, in seconds
> #
> #commit_delay = 0 # range 0-100000, in microseconds
> #commit_siblings = 5 # range 1-1000
> #
> #fsync = true
> fsync = false
寺岡様がおっしゃるような
psql: FATAL: Sorry, too many clients already
なんていうメッセージは見たことがありません。
また、シェルスクリプトの動作が終了してから手動にてpsqlコマンドを
発行すると、問題なく接続できます。
PostgreSQLの起動は
pg_ctl -l /usr/local/pgsql/log/log start
とやっていますが、ひょっとしてこれに問題があるのでしょうか?
今まで何の疑問も抱かずに使っていたのですが。。。
長くなりましたが、引き続きご教授よろしくお願いいたします。
--
*****************************************
*** 株式会社富士通関西システムズ
*** 新島 佳之
*** niijima.yoshiyu @ fks.fujitsu.com
*****************************************
pgsql-jp メーリングリストの案内