まだ要るの?

会社でPostgreSQLデータベースLink を何台かのサーバで使っているのですが、そのうち一台が最近以下のようなログを残して自動再起動をほぼ毎日するように。
LOG:  background writer process (PID 7127) was terminated by signal 9
LOG:  terminating any other active server processes
WARNING:  terminating connection because of crash of another server process
DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
HINT:  In a moment you should be able to reconnect to the database and repeat your command.
WARNING:  terminating connection because of crash of another server process
DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
HINT:  In a moment you should be able to reconnect to the database and repeat your command.
LOG:  all server processes terminated; reinitializing
ログにインデックスを再構成しろとあったのでやってみても効果なく、原因が分からず数日ほったらかし。ユーザーに聞いても特に動作の不具合は無かったのですが、気味が悪いので調べてみるとOut of MemoryでOSによって強制終了させられたLink というのが。んで、/var/log/messageを見てみると
Mar  7 19:16:10 xxxxxxxxxx kernel: Out of Memory: Killed process 7127 (postmaster).
おお、まさに!

一歩解決に向かって進んだわけですが、このサーバ、5GB RAM+8GB Swapという私の手持ちの中では最強のやつなのですが・・・・

まだ足りませんか? T_T

# たぶん、全メモリのことではない気がする

[2007/3/9 追記] OOM (Out Of Memory) KillerLink だって。PostgreSQLのWriter processに約1GBのキャッシュメモリあげているようなものだから、集中的に狙われているみたい。
[2007/3/13 追記] ここLink にまとめ

— posted by mu at 10:50 pm   commentComment [0]  pingTrackBack [0]

この記事に対する TrackBack URL:

設定によりTB元のページに、こちらの記事への言及(この記事へのリンク)がなければ、TB受付不可となりますのであらかじめご了承下さい。

コメントをどうぞ。 名前(ペンネーム)と画像認証のひらがな4文字は必須で、ウェブサイトURLはオプションです。

ウェブサイト (U):

タグは使えません。http://・・・ は自動的にリンク表示となります

:) :D 8-) ;-) :P :E :o :( (TT) ):T (--) (++!) ?;w) (-o-) (**!) ;v) f(--; :B l_P~ (QQ)

     

[X] [Top ↑]

T: Y: ALL: Online:
ThemeSwitch
  • Basic
Created in 0.3562 sec.
prev
2007.3
next
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31