OOM Killerがmysqldを殺し続ける

OOM Killerがmysqldを殺し続ける

私はcPanel / WHMを使用していくつかのウェブサイトをホストするためにCentOS vpsを実行していますが、時にはmysqlデータベースに接続できないため、ウェブサイトが機能しなくなります。

メッセージログを見ると、次の内容が表示されます。

Oct 16 04:03:07 s97-74-228-8 kernel: [54180237.755824] Out of memory in UB 88299: OOM killed process 413 (spamd child) score 0 vm:232540kB, rss:100696kB, swap:0kB Oct 16 04:03:08 s97-74-228-8 kernel: [54180237.863552] Out of memory in UB 88299: OOM killed process 1060 (spamd child) score 31 vm:231516kB, rss:99536kB, swap:0kB Oct 16 04:03:08 s97-74-228-8 kernel: [54180237.888621] Out of memory in UB 88299: OOM killed process 1061 (spamd) score 31 vm:231516kB, rss:99160kB, swap:0kB Oct 16 04:03:08 s97-74-228-8 kernel: [54180237.898954] Out of memory in UB 88299: OOM killed process 25084 (spamd) score 0 vm:231516kB, rss:100204kB, swap:0kB Oct 16 04:03:08 s97-74-228-8 kernel: [54180238.007397] Out of memory in UB 88299: OOM killed process 29642 (mysqld) score 0 vm:7849012kB, rss:62860kB, swap:0kB Oct 16 04:03:08 s97-74-228-8 kernel: [54180238.165135] Out of memory in UB 88299: OOM killed process 29450 (named) score 0 vm:1786256kB, rss:31192kB, swap:0kB Oct 16 04:03:11 s97-74-228-8 kernel: [54180241.036672] Out of memory in UB 88299: OOM killed process 1191 (mysqld) score 0 vm:1662420kB, rss:42300kB, swap:0kB Oct 16 04:03:12 s97-74-228-8 kernel: [54180242.761161] Out of memory in UB 88299: OOM killed process 1362 (mysqld) score 0 vm:807072kB, rss:40124kB, swap:0kB Oct 16 04:03:16 s97-74-228-8 kernel: [54180246.167647] Out of memory in UB 88299: OOM killed process 1434 (mysqld) score 0 vm:2188788kB, rss:43808kB, swap:0kB Oct 16 04:03:31 s97-74-228-8 kernel: [54180261.056050] Out of memory in UB 88299: OOM killed process 1562 (mysqld) score 0 vm:7980592kB, rss:59692kB, swap:0kB

Webサイトがダウンした後、SSH経由でログインしましたが、最大446MB / 3072MBのスペースしか使用されませんでした。

正直なところ、何をすべきかわかりません。助けてくれてありがとうございます:)

アレックス

ベストアンサー1

以下からカスタムmy.cnfを作成できます。https://tools.percona.com。 MySQL構成ウィザードを使用してOOMを正常に防止しました。オペレーティングシステム、CPanel、およびシステムで実行されている他のすべてのエントリに十分なRAMを残します。

おすすめ記事