{"id":604,"date":"2014-06-29T20:01:05","date_gmt":"2014-06-29T11:01:05","guid":{"rendered":"http:\/\/tech.akat.info\/?p=604"},"modified":"2014-12-31T23:14:50","modified_gmt":"2014-12-31T14:14:50","slug":"nginx-alert-mmapmap_anonmap_shared-268435456-failed-12-cannot-allocate-memory","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=604","title":{"rendered":"nginx: [alert] mmap(MAP_ANON|MAP_SHARED, 268435456) failed (12: Cannot allocate memory)"},"content":{"rendered":"<p>keys_zone\u306b\u306f\u5171\u6709\u30e1\u30e2\u30ea\u306e\u540d\u524d\u3068\u5bb9\u91cf\u3092\u6307\u5b9a\u3059\u308b\u304c\u3001\u642d\u8f09\u30e1\u30e2\u30ea\u3088\u308a\u3082\u591a\u304f\u5272\u308a\u5f53\u3066\u308b\u3068\u3053\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/etc\/nginx# nginx -t\r\nnginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok\r\nnginx: &#x5B;alert] mmap(MAP_ANON|MAP_SHARED, 268435456) failed (12: Cannot allocate memory)\r\nnginx: configuration file \/etc\/nginx\/nginx.conf test failed\r\nroot@hostname:\/etc\/nginx# vi nginx.conf # keys_zone\u306e\u5024\u3092\u5909\u66f4\u3059\u308b\r\n=====\r\n        # \u4f7f\u308f\u308c\u306a\u3044\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u524a\u9664\u3055\u308c\u308b\u6642\u9593\r\n        proxy_cache_path \/var\/cache\/web\/nginx_cache levels=1:2 keys_zone=cachezone:64m max_size=64m inactive=5d;\r\n        # \u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u30b9\u30c8\u30a2\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\r\n        proxy_temp_path  \/var\/cache\/web\/nginx_tmp;\r\n\r\n        ### FASTCGI ###\r\n        # \u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306eFastCGI\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\r\n        fastcgi_cache_path \/var\/cache\/web\/nginx_fastcgi_cache levels=1:2 keys_zone=phpzone:64m max_size=64m inactive=5d;\r\n        # \u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u30b9\u30c8\u30a2\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\r\n        fastcgi_temp_path  \/var\/cache\/web\/nginx_fastcgi_tmp;\r\n=====\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>keys_zone\u306b\u306f\u5171\u6709\u30e1\u30e2\u30ea\u306e\u540d\u524d\u3068\u5bb9\u91cf\u3092\u6307\u5b9a\u3059\u308b\u304c\u3001\u642d\u8f09\u30e1\u30e2\u30ea\u3088\u308a\u3082\u591a\u304f\u5272\u308a\u5f53\u3066\u308b\u3068\u3053\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b root@hostname:\/etc\/nginx# nginx -t nginx: the confi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[18,26],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/604"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=604"}],"version-history":[{"count":2,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/604\/revisions"}],"predecessor-version":[{"id":1370,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/604\/revisions\/1370"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}