{"id":214,"date":"2018-12-20T13:33:56","date_gmt":"2018-12-20T05:33:56","guid":{"rendered":"https:\/\/qtvz.com\/?p=214"},"modified":"2018-12-20T13:33:56","modified_gmt":"2018-12-20T05:33:56","slug":"apache%e6%af%8f%e9%9a%94%e4%b8%80%e6%ae%b5%e6%97%b6%e9%97%b4%e5%b0%b1%e6%ad%bb%e6%8e%89%ef%bc%8c%e5%81%87%e6%ad%bb%ef%bc%8c%e8%a3%85%e6%ad%bb%ef%bc%8c%e4%b8%8d%e8%a6%81%e8%84%b8%e7%9a%84%e6%ad%bb","status":"publish","type":"post","link":"https:\/\/qtvz.com\/214.html","title":{"rendered":"Apache\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\u5c31\u6b7b\u6389\uff0c\u5047\u6b7b\uff0c\u88c5\u6b7b\uff0c\u4e0d\u8981\u8138\u7684\u6b7b\uff0c\u53ea\u80fd\u91cd\u542f\u6b63\u5e38"},"content":{"rendered":"<!--wp-compress-html--><!--wp-compress-html no compression--><p>\u670d\u52a1\u5668\u8fd9\u51e0\u5929\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\u5c31\u6b7b\uff0c\u987b\u91cd\u542f\u624d\u80fd\u751f\u6548\uff0c\u67e5\u770b<a href=\"https:\/\/qtvz.com\/tag\/apache\" class=\"tag-tooltip\" data-toggle=\"tooltip\" title=\"\u67e5\u770b\u66f4\u591a\u5173\u4e8e Apache \u7684\u6587\u7ae0\" target=\"_blank\">Apache<\/a>\u9519\u8bef\u65e5\u5fd7\u662f\u8fd9\u6837<\/p>\n<pre class=\"lang:default decode:true \">[Tue Dec 12 06:57:23.570079 2017] [mpm_winnt:error] [pid 5172:tid 5380] AH00326: Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting\r\n[Tue Dec 12 08:52:21.244119 2017] [mpm_winnt:crit] [pid 5172:tid 1272] AH02538: Child: Parent process exited abruptly. Child process is ending\r\n[Tue Dec 12 08:52:28.069576 2017] [mpm_winnt:notice] [pid 5668:tid 1372] AH00418: Parent: Created child process 4716\r\n[Tue Dec 12 08:52:31.664441 2017] [mpm_winnt:notice] [pid 4716:tid 1272] AH00354: Child: Starting 150 worker threads.\r\n<\/pre>\n<p>\u67e5\u4e00\u4e0b\u62a5\u9519\u8868\u793a\u8fdb\u7a0b\u7684\u7ebf\u7a0b\u6570\u4e0d\u591f\u7528\uff0c\u53ef\u4ee5\u4fee\u6539ThreadsPerChild\uff0c\u5373\u6bcf\u4e2a\u5b50\u8fdb\u7a0b\u5f00\u542f\u7684\u5e76\u53d1\u7ebf\u7a0b\u6570<\/p>\n<p>\u62a5\u9519\u539f\u56e0 ( \u6458 )<\/p>\n<pre class=\"lang:default decode:true \">Apache\u9488\u5bf9\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u63d0\u4f9b\u4e86\u591a\u4e2a\u4e0d\u540c\u7684MPM\u6a21\u5757\uff0c\u4f8b\u5982\uff1ampm_beos\u3001mpm_event\u3001mpm_netware\u3001mpmt_os2\u3001mpm_prefork\u3001mpm_winnt\u3001mpm_worker\u3002\r\nWindows\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u9ed8\u8ba4\u7684MPM\u6a21\u5757\u662fmpm_winnt\uff0cmpm_winnt\u6a21\u5757\u662f\u4e13\u95e8\u9488\u5bf9Windows\u64cd\u4f5c\u7cfb\u7edf\u800c\u4f18\u5316\u8bbe\u8ba1\u7684MPM\u6a21\u5757\u3002\u5b83\u53ea\u521b\u5efa\u4e00\u4e2a\u5355\u72ec\u7684\u5b50\u8fdb\u7a0b\uff0c\u5e76\u5728\u8fd9\u4e2a\u5b50\u8fdb\u7a0b\u4e2d\u8f6e\u6d41\u4ea7\u751f\u591a\u4e2a\u7ebf\u7a0b\u6765\u5904\u7406\u8bf7\u6c42\u3002\r\n\u5728\u5bf9Apache\u7684MPM\u6a21\u5757\u5177\u5907\u4e00\u5b9a\u4e86\u89e3\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u9488\u5bf9\u4e0d\u540c\u7684MPM\u6a21\u5757\u6765\u4fee\u6539Apache\u7684\u6700\u5927\u5e76\u53d1\u8fde\u63a5\u6570\u914d\u7f6e\u4e86<\/pre>\n<p>\u542f\u7528MPM\u6a21\u5757\u914d\u7f6e\u6587\u4ef6<\/p>\n<pre class=\"lang:default decode:true \">\u5728Apace\u5b89\u88c5\u76ee\u5f55\/conf\/extra\u76ee\u5f55\u4e2d\u6709\u4e00\u4e2a\u540d\u4e3ahttpd-mpm.conf       \u7684\u914d\u7f6e\u6587\u4ef6\u3002\u8be5\u6587\u4ef6\u4e3b\u8981\u7528\u4e8e\u8fdb\u884cMPM\u6a21\u5757\u7684\u76f8\u5173\u914d\u7f6e\r\n\u6211\u4eec\u9700\u8981\u5728httpd.conf\u6587\u4ef6\u4e2d\u542f\u7528\u8be5\u914d\u7f6e\u6587\u4ef6\r\n\r\n# Server-pool management (MPM specific)\r\nInclude conf\/extra\/httpd-mpm.conf (\u53bb\u6389\u8be5\u884c\u524d\u9762\u7684\u6ce8\u91ca\u7b26\u53f7\"#\")\r\n<\/pre>\n<p>\u4fee\u6539MPM\u6a21\u5757\u914d\u7f6ehttp-mpm.conf\u6587\u4ef6\u4e2d\u7684\u76f8\u5173\u914d\u7f6e<\/p>\n<pre class=\"lang:default decode:true \">#\u7531\u4e8empm_winnt\u6a21\u5757\u53ea\u4f1a\u521b\u5efa1\u4e2a\u5b50\u8fdb\u7a0b\uff0c\u56e0\u6b64\u8fd9\u91cc\u5bf9\u5355\u4e2a\u5b50\u8fdb\u7a0b\u7684\u53c2\u6570\u8bbe\u7f6e\u5c31\u76f8\u5f53\u4e8e\u5bf9\u6574\u4e2aApache\u7684\u53c2\u6570\u8bbe\u7f6e\u3002\r\n\r\n&lt;IfModule mpm_winnt_module&gt;\r\nThreadsPerChild      521 #\u9ed8\u8ba4\u503c\u662f150\uff0c\u63a8\u8350\u8bbe\u7f6e\uff1a\u5c0f\u578b\u7f51\u7ad9=1000 \u4e2d\u578b\u7f51\u7ad9=1000~2000 \u5927\u578b\u7f51\u7ad9=2000~3500\r\nMaxRequestsPerChild    3000 #\u63a8\u8350\u8bbe\u7f6e\uff1a\u5c0f=10000 \u4e2d\u6216\u5927=20000~100000\r\n&lt;\/IfModule&gt;\r\n<\/pre>\n<p>&nbsp;<\/p>\n<!--wp-compress-html no compression--><!--wp-compress-html-->","protected":false},"excerpt":{"rendered":"\u670d\u52a1\u5668\u8fd9\u51e0\u5929\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\u5c31\u6b7b\uff0c\u987b\u91cd\u542f\u624d\u80fd\u751f\u6548\uff0c\u67e5\u770bApache\u9519\u8bef\u65e5\u5fd7\u662f\u8fd9\u6837 [Tue Dec 12 06:57:23.570079 2017] [mpm_winnt:error] [pid 5172 \u00b7\u00b7\u00b7","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[65],"tags":[66],"views":11561,"_links":{"self":[{"href":"https:\/\/qtvz.com\/api\/wp\/v2\/posts\/214"}],"collection":[{"href":"https:\/\/qtvz.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qtvz.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/comments?post=214"}],"version-history":[{"count":1,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/posts\/214\/revisions"}],"predecessor-version":[{"id":215,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/posts\/214\/revisions\/215"}],"wp:attachment":[{"href":"https:\/\/qtvz.com\/api\/wp\/v2\/media?parent=214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/categories?post=214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qtvz.com\/api\/wp\/v2\/tags?post=214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}