0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

OOM Killerの対象外にしたい(CentOS7)

Last updated at Posted at 2021-03-11

Out of Memory が発生した場合でもプロセスを落とされたくない場合、
/etc/systemd/system 等の配下にあるsystemd用ファイルに以下を設定する。

[Service]
~~省略~~
OOMScoreAdjust=-1000
~~省略~~

OOMScoreAdjust を -1000 に設定すると、対象サービスのプロセスはkill対象外になる。
(MySQLを落とされて悲惨な目にあったので設定しておきたい)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?