{"id":391,"date":"2023-12-15T16:59:21","date_gmt":"2023-12-15T07:59:21","guid":{"rendered":"https:\/\/baresupport.jp\/blog\/?p=391"},"modified":"2024-03-11T13:28:50","modified_gmt":"2024-03-11T04:28:50","slug":"oom-killer%e3%81%a8%e3%81%af%ef%bc%9f-%e5%8e%9f%e5%9b%a0%e3%82%84%e5%af%be%e5%87%a6%e6%96%b9%e6%b3%95%e3%80%81%e4%ba%88%e9%98%b2%e7%ad%96%e3%82%92%e8%a9%b3%e3%81%97%e3%81%8f%e8%a7%a3%e8%aa%ac%ef%bf%bc","status":"publish","type":"post","link":"https:\/\/baresupport.jp\/blog\/2023\/12\/15\/391\/","title":{"rendered":"OOM killer\u3068\u306f\uff1f \u539f\u56e0\u3084\u5bfe\u51e6\u65b9\u6cd5\u3001\u4e88\u9632\u7b56\u3092\u8a73\u3057\u304f\u89e3\u8aac\ufffc"},"content":{"rendered":"\n<p>Linux\u7cfb\u306eOS\u3092\u4f7f\u7528\u3057\u3066\u3044\u3066\u3001\u300c\u7a81\u7136\u30d7\u30ed\u30bb\u30b9\u304c\u505c\u6b62\u3055\u308c\u3066\u3057\u307e\u3063\u305f\u300d\u3068\u3044\u3046\u7d4c\u9a13\u3092\u3055\u308c\u305f\u3053\u3068\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u3053\u308c\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u30e1\u30e2\u30ea\u304c\u67af\u6e07\u3057\u305f\u3053\u3068\u3067\u767a\u751f\u3059\u308b\u300cOOM killer\u300d\u306b\u3088\u3063\u3066\u8d77\u3053\u3063\u305f\u3053\u3068\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002OOM killer\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u5b89\u5b9a\u7a3c\u50cd\u3092\u4fdd\u3064\u305f\u3081\u306b\u5fc5\u8981\u306a\u4ed5\u7d44\u307f\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u7a81\u7136\u91cd\u8981\u306a\u30d7\u30ed\u30bb\u30b9\u304c\u505c\u6b62\u3057\u3066\u3057\u307e\u3046\u3068\u91cd\u5927\u306a\u30c8\u30e9\u30d6\u30eb\u306e\u539f\u56e0\u3068\u3082\u306a\u308a\u304b\u306d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001OOM killer\u306e\u6982\u8981\u3084\u767a\u751f\u3059\u308b\u539f\u56e0\u3001\u78ba\u8a8d\u65b9\u6cd5\u3001\u672a\u7136\u306b\u9632\u3050\u305f\u3081\u306e\u65b9\u6cd5\u306a\u3069\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">\u3053\u306e\u8a18\u4e8b\u306e\u76ee\u6b21<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/baresupport.jp\/blog\/2023\/12\/15\/391\/#OOM_killer%E3%81%A8%E3%81%AF\" >OOM killer\u3068\u306f<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/baresupport.jp\/blog\/2023\/12\/15\/391\/#OOM_killer%E3%81%8C%E8%B5%B7%E3%81%93%E3%82%8B%E5%8E%9F%E5%9B%A0\" >OOM killer\u304c\u8d77\u3053\u308b\u539f\u56e0<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/baresupport.jp\/blog\/2023\/12\/15\/391\/#OOM_killer%E3%81%AE%E7%A2%BA%E8%AA%8D%E6%96%B9%E6%B3%95\" >OOM killer\u306e\u78ba\u8a8d\u65b9\u6cd5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/baresupport.jp\/blog\/2023\/12\/15\/391\/#OOM_killer%E3%81%8C%E8%B5%B7%E3%81%8D%E3%81%9F%E9%9A%9B%E3%81%AE%E5%AF%BE%E5%87%A6%E6%96%B9%E6%B3%95\" >OOM killer\u304c\u8d77\u304d\u305f\u969b\u306e\u5bfe\u51e6\u65b9\u6cd5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/baresupport.jp\/blog\/2023\/12\/15\/391\/#OOM_killer%E3%82%92%E6%9C%AA%E7%84%B6%E3%81%AB%E9%98%B2%E3%81%90%E3%81%AB%E3%81%AF\" >OOM killer\u3092\u672a\u7136\u306b\u9632\u3050\u306b\u306f<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/baresupport.jp\/blog\/2023\/12\/15\/391\/#swap%E9%A0%98%E5%9F%9F%E3%82%92%E5%A2%97%E3%82%84%E3%81%99\" >swap\u9818\u57df\u3092\u5897\u3084\u3059<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/baresupport.jp\/blog\/2023\/12\/15\/391\/#%E3%83%A1%E3%83%A2%E3%83%AA%E3%82%92%E5%A2%97%E3%82%84%E3%81%99\" >\u30e1\u30e2\u30ea\u3092\u5897\u3084\u3059<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/baresupport.jp\/blog\/2023\/12\/15\/391\/#OOM_killer%E3%81%AE%E5%84%AA%E5%85%88%E5%BA%A6%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B\" >OOM killer\u306e\u512a\u5148\u5ea6\u3092\u8a2d\u5b9a\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/baresupport.jp\/blog\/2023\/12\/15\/391\/#OOM_killer%E3%82%92%E7%84%A1%E5%8A%B9%E3%81%AB%E3%81%99%E3%82%8B%EF%BC%88%E9%9D%9E%E6%8E%A8%E5%A5%A8%EF%BC%89\" >OOM killer\u3092\u7121\u52b9\u306b\u3059\u308b\uff08\u975e\u63a8\u5968\uff09<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/baresupport.jp\/blog\/2023\/12\/15\/391\/#%E3%81%BE%E3%81%A8%E3%82%81\" >\u307e\u3068\u3081<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"OOM_killer%E3%81%A8%E3%81%AF\"><\/span><strong>OOM killer<\/strong><strong>\u3068\u306f<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>OOM killer\u3068\u306f\u3001Out of Memory Killer\u306e\u7565\u3067\u3001Linux\u30ab\u30fc\u30cd\u30eb\u306b\u5b9f\u88c5\u3055\u308c\u305f\u30e1\u30e2\u30ea\u7ba1\u7406\u6a5f\u80fd\u306e\u4e00\u3064\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306e\u30e1\u30e2\u30ea\u304c\u7269\u7406\u7684\u306b\u4e0d\u8db3\u3057\u305f\u969b\u306b\u3001Linux\u30ab\u30fc\u30cd\u30eb\u304c\u7279\u5b9a\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u5f37\u5236\u7d42\u4e86\u3059\u308b\u6a5f\u80fd\u306e\u3053\u3068\u3092\u6307\u3057\u307e\u3059\u3002OOM killer\u306b\u3088\u308b\u5f37\u5236\u7d42\u4e86\u306f\u3001\u5927\u91cf\u306e\u30e1\u30e2\u30ea\u3092\u6d88\u8cbb\u3057\u3066\u3044\u308b\u4f7f\u7528\u52b9\u7387\u306e\u60aa\u3044\u30d7\u30ed\u30bb\u30b9\u304b\u3089\u512a\u5148\u3057\u3066\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"OOM_killer%E3%81%8C%E8%B5%B7%E3%81%93%E3%82%8B%E5%8E%9F%E5%9B%A0\"><\/span><strong>OOM killer<\/strong><strong>\u304c\u8d77\u3053\u308b\u539f\u56e0<\/strong><strong><\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u3067\u306f\u3001\u306a\u305cOOM killer\u304c\u767a\u751f\u3059\u308b\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n\n\n\n<p>Linux\u30ab\u30fc\u30cd\u30eb\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u5b9f\u884c\u4e2d\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u30e1\u30e2\u30ea\u3092\u8981\u6c42\u3055\u308c\u305f\u969b\u306b\u30aa\u30f3\u30c7\u30de\u30f3\u30c9\u3067\u30e1\u30e2\u30ea\u3092\u5272\u308a\u5f53\u3066\u307e\u3059\u3002\u901a\u5e38\u3053\u306e\u3084\u308a\u3068\u308a\u306f\u30d7\u30ed\u30bb\u30b9\u5b9f\u884c\u306e\u524d\u306b\u884c\u308f\u308c\u307e\u3059\u304c\u3001\u3053\u306e\u6642\u70b9\u3067\u30e1\u30e2\u30ea\u304c\u78ba\u4fdd\u3055\u308c\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5b9f\u969b\u306e\u30e1\u30e2\u30ea\u5272\u308a\u5f53\u3066\u306f\u3001\u30a2\u30af\u30bb\u30b9\u304c\u767a\u751f\u3059\u308b\u30bf\u30a4\u30df\u30f3\u30b0\u307e\u3067\u9045\u5ef6\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3092\u300c\u9045\u5ef6\u30a2\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u300d\u3068\u8a00\u3044\u3001\u9045\u5ef6\u30a2\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u30ab\u30fc\u30cd\u30eb\u306f\u30e1\u30e2\u30ea\u3092\u30aa\u30fc\u30d0\u30fc\u30b3\u30df\u30c3\u30c8\uff08\u5404\u30d7\u30ed\u30bb\u30b9\u306b\u5272\u308a\u5f53\u3066\u308b\u30e1\u30e2\u30ea\u306e\u5408\u8a08\u304c\u7269\u7406\u7684\u306a\u30e1\u30e2\u30ea\u306e\u4e0a\u9650\u3092\u8d85\u3048\u308b\u3053\u3068\uff09\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u3063\u3066\u3001\u30ab\u30fc\u30cd\u30eb\u306f\u30e1\u30e2\u30ea\u306e\u4f7f\u7528\u52b9\u7387\u3092\u9ad8\u3081\u3089\u308c\u308b\u3088\u3046\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u901a\u5e38\u3053\u308c\u306f\u554f\u984c\u306b\u306a\u308a\u307e\u305b\u3093\u304c\u3001\u3082\u3057\u8907\u6570\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u305f\u30e1\u30e2\u30ea\u3092\u4e00\u5ea6\u306b\u4f7f\u7528\u3057\u59cb\u3081\u308b\u3068\u3001\u30e1\u30e2\u30ea\u4e0d\u8db3\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u30ab\u30fc\u30cd\u30eb\u306f\u30e1\u30e2\u30ea\u4e0d\u8db3\u306b\u3088\u308a\u30b5\u30fc\u30d0\u30fc\u81ea\u4f53\u304c\u52d5\u4f5c\u505c\u6b62\u3059\u308b\u3068\u3044\u3046\u6700\u60aa\u306e\u4e8b\u614b\u3092\u9632\u3050\u305f\u3081\u3001OOM killer\u306e\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u4e00\u90e8\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u5f37\u5236\u7d42\u4e86\u3055\u305b\u308b\u306e\u3067\u3059\u3002\u3064\u307e\u308a\u3001OOM killer\u306f\u30b5\u30fc\u30d0\u30fc\u3092\u5b89\u5b9a\u7a3c\u50cd\u3055\u305b\u308b\u305f\u3081\u306b\u5fc5\u9808\u306e\u6a5f\u80fd\u3068\u8a00\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"OOM_killer%E3%81%AE%E7%A2%BA%E8%AA%8D%E6%96%B9%E6%B3%95\"><\/span><strong>OOM killer\u306e\u78ba\u8a8d\u65b9\u6cd5<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u30d7\u30ed\u30bb\u30b9\u304c\u5f37\u5236\u7d42\u4e86\u3055\u308c\u305f\u6642\u306b\u305d\u306e\u539f\u56e0\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u3001\/var\/log\/messages\u306b\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002\u307e\u305a\u306f\u3053\u3053\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><p>$ grep -i kill \/var\/log\/messages*<\/p>host kernel: Out of Memory: Killed process <PID> (program1)<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0a\u306e\u3088\u3046\u306a\u51fa\u529b\u304c\u5f97\u3089\u308c\u305f\u5834\u5408\u3001\u30e1\u30e2\u30ea\u4e0d\u8db3\u304c\u539f\u56e0\u3067program1\u306fOOM killer\u306b\u3088\u3063\u3066\u5f37\u5236\u7d42\u4e86\u3055\u308c\u305f\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"OOM_killer%E3%81%8C%E8%B5%B7%E3%81%8D%E3%81%9F%E9%9A%9B%E3%81%AE%E5%AF%BE%E5%87%A6%E6%96%B9%E6%B3%95\"><\/span><strong>OOM killer<\/strong><strong>\u304c\u8d77\u304d\u305f\u969b\u306e\u5bfe\u51e6\u65b9\u6cd5<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u3067\u306f\u3001OOM killer\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306f\u3069\u306e\u3088\u3046\u306b\u5bfe\u51e6\u3059\u3079\u304d\u3067\u3057\u3087\u3046\u304b\u3002\u57fa\u672c\u7684\u306b\u3001OOM killer\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306b\u306f\u5f37\u5236\u7d42\u4e86\u3055\u308c\u305f\u30d7\u30ed\u30bb\u30b9\u306e\u518d\u8d77\u52d5\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u305d\u3082\u305d\u3082\u30e1\u30e2\u30ea\u304c\u4e0d\u8db3\u3057\u3066\u3044\u308b\u72b6\u614b\u3067\u3042\u308b\u305f\u3081\u3001\u518d\u8d77\u52d5\u3059\u308b\u524d\u306b\u30b5\u30fc\u30d0\u30fc\u306e\u30ad\u30e3\u30d1\u30b7\u30c6\u30a3\u3084\u52d5\u4f5c\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u9ad8\u30e1\u30e2\u30ea\u7d71\u8a08\u3068\u4f4e\u30e1\u30e2\u30ea\u7d71\u8a08\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ free -lh<\/code><\/pre>\n\n\n\n<p>\u8ca0\u8377\u306e\u9ad8\u3044\u30d7\u30ed\u30bb\u30b9\u304c\u3042\u308b\u5834\u5408\u306f\u305d\u306e\u5bfe\u5fdc\u3092\u884c\u3063\u3066\u304b\u3089\u518d\u8d77\u52d5\u3059\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002\u3082\u3057\u30b5\u30fc\u30d0\u30fc\u3078SSH\u63a5\u7d9a\u3067\u304d\u306a\u3044\u5834\u5408\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u518d\u8d77\u52d5\u3092\u884c\u3046\u3057\u304b\u5bfe\u51e6\u65b9\u6cd5\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"OOM_killer%E3%82%92%E6%9C%AA%E7%84%B6%E3%81%AB%E9%98%B2%E3%81%90%E3%81%AB%E3%81%AF\"><\/span><strong>OOM killer\u3092\u672a\u7136\u306b\u9632\u3050\u306b\u306f<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>OOM killer\u306f\u30e1\u30e2\u30ea\u4e0d\u8db3\u306b\u3088\u3063\u3066\u8d77\u304d\u308b\u305f\u3081\u3001\u4e8b\u524d\u306b\u5bfe\u7b56\u3092\u884c\u3046\u3053\u3068\u3067\u672a\u7136\u306b\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u91cd\u8981\u306a\u30d7\u30ed\u30bb\u30b9\u304c\u7a81\u7136\u5f37\u5236\u7d42\u4e86\u3055\u308c\u308b\u4e8b\u614b\u3092\u907f\u3051\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5bfe\u7b56\u3092\u65e5\u9803\u304b\u3089\u884c\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"swap%E9%A0%98%E5%9F%9F%E3%82%92%E5%A2%97%E3%82%84%E3%81%99\"><\/span><strong>swap\u9818\u57df\u3092\u5897\u3084\u3059<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u3082\u3057OOM killer\u306e\u767a\u751f\u539f\u56e0\u304c\u4e00\u6642\u7684\u306a\u30e1\u30e2\u30ea\u4e0d\u8db3\u3067\u3042\u308c\u3070\u3001swap\u9818\u57df\u3092\u5897\u3084\u3059\u3053\u3068\u3067\u56de\u907f\u3067\u304d\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3001swap\u9818\u57df\u304c\u4e0d\u8db3\u3057\u305f\u5834\u5408\u306f\u7834\u7dbb\u3059\u308b\u305f\u3081\u3001swap\u306e\u4f7f\u7528\u91cf\u3092\u76e3\u8996\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u307e\u305f\u3001\u6162\u6027\u7684\u306a\u30e1\u30e2\u30ea\u4e0d\u8db3\u306e\u5834\u5408\u306f\u3053\u306e\u65b9\u6cd5\u3067\u56de\u907f\u3059\u308b\u3053\u3068\u306f\u96e3\u3057\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%83%A1%E3%83%A2%E3%83%AA%E3%82%92%E5%A2%97%E3%82%84%E3%81%99\"><\/span><strong>\u30e1\u30e2\u30ea\u3092\u5897\u3084\u3059<\/strong><strong><\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u305d\u3082\u305d\u3082\u3001\u904b\u7528\u3057\u305f\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u3068\u3059\u308b\u30e1\u30e2\u30ea\u5bb9\u91cf\u3092\u3001\u4f4e\u304f\u898b\u7a4d\u3082\u3063\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u306f\u30b7\u30f3\u30d7\u30eb\u306b\u30e1\u30e2\u30ea\u5bb9\u91cf\u3092\u62e1\u5f35\u3059\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002\u73fe\u5728\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u7a3c\u50cd\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u305f\u4e0a\u3067\u3001\u5fc5\u8981\u306a\u30e1\u30e2\u30ea\u5bb9\u91cf\u3092\u898b\u76f4\u3057\u3066\u8ffd\u52a0\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"OOM_killer%E3%81%AE%E5%84%AA%E5%85%88%E5%BA%A6%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B\"><\/span><strong>OOM killer<\/strong><strong>\u306e\u512a\u5148\u5ea6\u3092\u8a2d\u5b9a\u3059\u308b<\/strong><strong><\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>OOM killer\u306b\u3088\u3063\u3066\u5f37\u5236\u7d42\u4e86\u3055\u308c\u308b\u30d7\u30ed\u30bb\u30b9\u306e\u512a\u5148\u5ea6\u3092\u4e8b\u524d\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f0\u3067\u3001\u512a\u5148\u5ea6\u3092-1000\u306b\u3059\u308b\u3053\u3068\u3067\u30d7\u30ed\u30bb\u30b9\u505c\u6b62\u306e\u5bfe\u8c61\u5916\u3068\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\u307e\u305f\u3001\u30d7\u30ed\u30bb\u30b9\u3054\u3068\u306b\u30b9\u30b3\u30a2\u304c\u8a08\u7b97\u3055\u308c\u3001\u30b9\u30b3\u30a2\u306e\u9ad8\u3044\u3082\u306e\u304b\u3089\u9806\u306b\u30d7\u30ed\u30bb\u30b9\u505c\u6b62\u306e\u5bfe\u8c61\u3068\u306a\u308a\u307e\u3059\u3002\u7d76\u5bfe\u306b\u505c\u6b62\u3057\u305f\u3089\u56f0\u308b\u30d7\u30ed\u30bb\u30b9\u304c\u3042\u308a\u3001\u4ed6\u306e\u30d7\u30ed\u30bb\u30b9\u306f\u4e00\u6642\u7684\u306b\u505c\u6b62\u3057\u3066\u3082\u554f\u984c\u306a\u3044\u3068\u3044\u3046\u5834\u5408\u306b\u306f\u6d3b\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u512a\u5148\u5ea6\u30fb\u30b9\u30b3\u30a2\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u512a\u5148\u5ea6<\/p><pre class=\"wp-block-code\"><code>\/proc\/&lt;PID&gt;\/oom_score_adj<\/code><\/pre>\n\n\n\n<p>\u30b9\u30b3\u30a2<\/p><pre class=\"wp-block-code\"><code>\/proc\/&lt;PID&gt;\/oom_score<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"OOM_killer%E3%82%92%E7%84%A1%E5%8A%B9%E3%81%AB%E3%81%99%E3%82%8B%EF%BC%88%E9%9D%9E%E6%8E%A8%E5%A5%A8%EF%BC%89\"><\/span><strong>OOM killer\u3092\u7121\u52b9\u306b\u3059\u308b\uff08\u975e\u63a8\u5968\uff09<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u5b9f\u50cd\u74b0\u5883\u3067\u306f\u63a8\u5968\u3055\u308c\u307e\u305b\u3093\u304c\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067OOM killer\u3092\u5b8c\u5168\u306b\u7121\u52b9\u306b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><p>sysctl vm.overcommit_memory=2<\/p>echo \u201cvm.overcommit_memory=2\u201d &gt;&gt; \/etc\/sysctl.conf<\/code><\/pre>\n\n\n\n<p>\u3057\u304b\u3057\u3001OOM killer\u304c\u7121\u52b9\u306e\u72b6\u614b\u3067\u30e1\u30e2\u30ea\u4e0d\u8db3\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u30ea\u30bd\u30fc\u30b9\u3068\u69cb\u6210\u306b\u3088\u3063\u3066\u306f\u4e88\u671f\u3057\u306a\u3044\u52d5\u4f5c\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u30ab\u30fc\u30cd\u30eb\u30d1\u30cb\u30c3\u30af\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30cf\u30f3\u30b0\u30a2\u30c3\u30d7\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30af\u30e9\u30c3\u30b7\u30e5\u306a\u3069\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3053\u306e\u9078\u629e\u80a2\u3092\u691c\u8a0e\u3059\u308b\u5834\u5408\u306f\u30ea\u30b9\u30af\u306b\u3064\u3044\u3066\u5341\u5206\u306b\u628a\u63e1\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%81%BE%E3%81%A8%E3%82%81\"><\/span><strong>\u307e\u3068\u3081<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>OOM killer\u306f\u3001Linux\u30ab\u30fc\u30cd\u30eb\u306b\u5b9f\u88c5\u3055\u308c\u305f\u30e1\u30e2\u30ea\u7ba1\u7406\u6a5f\u80fd\u306e\u4e00\u3064\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306e\u30e1\u30e2\u30ea\u304c\u7269\u7406\u7684\u306b\u4e0d\u8db3\u3057\u305f\u969b\u306b\u3001Linux\u30ab\u30fc\u30cd\u30eb\u304c\u7279\u5b9a\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u5f37\u5236\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b5\u30fc\u30d0\u30fc\u306e\u5b89\u5b9a\u7a3c\u50cd\u3092\u4fdd\u3064\u305f\u3081\u306b\u5fc5\u8981\u306a\u6a5f\u80fd\u3067\u3059\u304c\u3001\u7a81\u7136\u91cd\u8981\u306a\u30d7\u30ed\u30bb\u30b9\u304c\u7d42\u4e86\u3057\u3066\u3057\u307e\u3046\u3068\u30b7\u30b9\u30c6\u30e0\u306e\u505c\u6b62\u306a\u3069\u5927\u304d\u306a\u30c8\u30e9\u30d6\u30eb\u3092\u62db\u304f\u30ea\u30b9\u30af\u3082\u3042\u308b\u3067\u3057\u3087\u3046\u3002OOM killer\u306e\u767a\u751f\u3092\u672a\u7136\u306b\u9632\u3050\u306b\u306f\u3001\u65e5\u9803\u304b\u3089\u5bfe\u7b56\u3092\u884c\u3046\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u73fe\u5728\u7a3c\u50cd\u4e2d\u306e\u30b7\u30b9\u30c6\u30e0\u306e\u30e1\u30e2\u30ea\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u3001\u9069\u5207\u306a\u5bfe\u5fdc\u3092\u3057\u3066\u30c8\u30e9\u30d6\u30eb\u3092\u56de\u907f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/baresupport.jp\/about\/\"><img decoding=\"async\" src=\"https:\/\/baremetal.jp\/blog\/wp-content\/uploads\/2020\/12\/\u00e3\u0083\u0095\u00e3\u0082\u0099\u00e3\u0083\u00ad\u00e3\u0082\u00af\u00e3\u0082\u0099\u00e7\u0094\u00a8\u00e3\u0083\u008f\u00e3\u0082\u0099\u00e3\u0083\u008a\u00e3\u0083\u00bc\u00e3\u0081\u00ae\u00e3\u0082\u00b3\u00e3\u0083\u0092\u00e3\u0082\u009a\u00e3\u0083\u00bc7-01.png\" alt=\"\u76e3\u8996\u904b\u7528\u306a\u3089\u30d9\u30a2\u30b5\u30dd\u30fc\u30c8\"\/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u7cfb\u306eOS\u3092\u4f7f\u7528\u3057\u3066\u3044\u3066\u3001\u300c\u7a81\u7136\u30d7\u30ed\u30bb\u30b9\u304c\u505c\u6b62\u3055\u308c\u3066\u3057\u307e\u3063\u305f\u300d\u3068\u3044\u3046\u7d4c\u9a13\u3092\u3055\u308c\u305f\u3053\u3068\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u3053\u308c\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u30e1\u30e2\u30ea\u304c\u67af\u6e07\u3057\u305f\u3053\u3068\u3067\u767a\u751f\u3059\u308b\u300cOOM killer\u300d\u306b\u3088\u3063\u3066\u8d77\u3053\u3063\u305f\u3053\u3068\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002OO [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":402,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-391","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-operation"],"aioseo_notices":[],"views":42687,"_links":{"self":[{"href":"https:\/\/baresupport.jp\/blog\/wp-json\/wp\/v2\/posts\/391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/baresupport.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/baresupport.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/baresupport.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/baresupport.jp\/blog\/wp-json\/wp\/v2\/comments?post=391"}],"version-history":[{"count":15,"href":"https:\/\/baresupport.jp\/blog\/wp-json\/wp\/v2\/posts\/391\/revisions"}],"predecessor-version":[{"id":515,"href":"https:\/\/baresupport.jp\/blog\/wp-json\/wp\/v2\/posts\/391\/revisions\/515"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/baresupport.jp\/blog\/wp-json\/wp\/v2\/media\/402"}],"wp:attachment":[{"href":"https:\/\/baresupport.jp\/blog\/wp-json\/wp\/v2\/media?parent=391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/baresupport.jp\/blog\/wp-json\/wp\/v2\/categories?post=391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/baresupport.jp\/blog\/wp-json\/wp\/v2\/tags?post=391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}