{"id":661,"date":"2011-09-22T10:23:45","date_gmt":"2011-09-22T02:23:45","guid":{"rendered":"http:\/\/www.poloo.org\/?p=661"},"modified":"2011-09-22T10:23:45","modified_gmt":"2011-09-22T02:23:45","slug":"apache%e9%94%99%e8%af%aferror-os-10038%e5%9c%a8%e4%b8%80%e4%b8%aa%e9%9d%9e%e5%a5%97%e6%8e%a5%e5%ad%97%e4%b8%8a%e5%b0%9d%e8%af%95%e4%ba%86%e4%b8%80%e4%b8%aa%e6%93%8d%e4%bd%9c","status":"publish","type":"post","link":"https:\/\/www.poloo.org\/?p=661","title":{"rendered":"Apache\u9519\u8bef:[error] (OS 10038)\u5728\u4e00\u4e2a\u975e\u5957\u63a5\u5b57\u4e0a\u5c1d\u8bd5\u4e86\u4e00\u4e2a\u64cd\u4f5c"},"content":{"rendered":"<div>\n<p>\u4eca\u65e5\u7535\u8111\u4e0a\u7684APACHE\u542f\u52a8\u540eCPU\u5360\u7528\u7387\u4e00\u76f4\u9ad8\u5c45100%, PHP\u7a0b\u5e8f\u4e5f\u65e0\u6cd5\u6267\u884c\u4e86\u3002<br \/>\n\u67e5\u770b\u9519\u8bef\u65e5\u5fd7\u91cc\u9762\u8bb0\u5f55\u4e86\u5f88\u591a\uff1a<\/p>\n<p>[error] (OS 10038)\u5728\u4e00\u4e2a\u975e\u5957\u63a5\u5b57\u4e0a\u5c1d\u8bd5\u4e86\u4e00\u4e2a\u64cd\u4f5c\u3002 : Child 3356: Encountered too many errors accepting client connections. Possible causes: dynamic address renewal, or incompatible VPN or firewall software. Try using the Win32DisableAcceptEx directive.<\/p>\n<p><!--more--><\/p>\n<p>\u53bb\u5230\u7f51\u4e0a\u641c\u7d22\uff0c\u627e\u5230\u4e0b\u9762\u7684\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n<p>\u7f16\u8f91httpd.conf<\/p>\n<p>Win32DisableAcceptEx ##\u52a0\u5165\u8fd9\u884c<br \/>\nThreadsPerChild 250<br \/>\nMaxRequestsPerChild 0<\/p>\n<p>\u91cd\u542fapache\u5c31\u89e3\u51b3\u4e86\u3002<\/p>\n<p>\u4fee\u6539\u540e\u8fd8\u662f\u4e0d\u884c\uff0c\u4efb\u7136\u6709\u9519\u8bef\u8bb0\u5f55\uff0cCPU\u5360\u7528\u7387\u662f\u964d\u4f4e\u4e86\uff0c\u4f46\u662f\u8fd8\u662f\u6ca1\u6709\u6062\u590d\u5230\u539f\u6765\u7684\u72b6\u6001.logs\u91cc\u9762\u8fd8\u662f\u4e00\u76f4\u5728\u8bb0\u5f55\u4e0b\u9762\u7684\u9519\u8bef\u62a5\u544a\u3002<\/p>\n<p>[Mon Dec 24 16:48:06 2007] [error] (OS 10038)\u5728\u4e00\u4e2a\u975e\u5957\u63a5\u5b57\u4e0a\u5c1d\u8bd5\u4e86\u4e00\u4e2a\u64cd\u4f5c\u3002 : Too many errors in select loop. Child process exiting.<br \/>\n[Mon Dec 24 16:48:06 2007] [notice] Child 1916: Exit event signaled. Child process is ending.<br \/>\n[Mon Dec 24 16:48:07 2007] [notice] Child 1916: Released the start mutex<br \/>\n[Mon Dec 24 16:48:07 2007] [notice] Child 1916: Waiting for 250 worker threads to exit.<br \/>\n[Mon Dec 24 16:48:07 2007] [notice] Child 1916: All worker threads have exited.<br \/>\n[Mon Dec 24 16:48:07 2007] [notice] Child 1916: Child process is exiting<br \/>\n[Mon Dec 24 16:48:07 2007] [notice] Parent: child process exited with status 0 &#8212; Restarting.<br \/>\n[Mon Dec 24 16:48:07 2007] [notice] Apache\/2.0.55 (Win32) configured &#8212; resuming normal operations<br \/>\n[Mon Dec 24 16:48:07 2007] [notice] Server built: Oct 9 2005 19:16:56<br \/>\n[Mon Dec 24 16:48:07 2007] [notice] Parent: Created child process 3028<br \/>\n[Mon Dec 24 16:48:07 2007] [notice] Disabled use of AcceptEx() WinSock2 API<br \/>\n[Mon Dec 24 16:48:07 2007] [notice] Child 3028: Child process is running<br \/>\n[Mon Dec 24 16:48:07 2007] [notice] Child 3028: Acquired the start mutex.<br \/>\n[Mon Dec 24 16:48:07 2007] [notice] Child 3028: Starting 250 worker threads.<br \/>\n[Mon Dec 24 16:48:08 2007] [notice] Child 3028: Listening on port 80.<\/p>\n<p>\u6700\u540e\u641c\u7d22\u5230\u4e0ewinsock\u6709\u5173\uff0c\u6709\u7f51\u53cb\u4e5f\u51fa\u73b0\u4e86\u8fd9\u4e2a\u95ee\u9898\uff0c\u4ed6\u8ba4\u4e3a\u662f\u91d1\u5c71\u6bd2\u9738\u6216\u8005\u5347\u7ea7\u7cbe\u7075\u4fee\u6539\u4e86WINSOCK\u5bfc\u81f4\u7684\u3002\u7531\u4e8e\u6211\u7535\u8111\u4e0a\u4e5f\u5b89\u88c5\u4e86\u91d1\u5c71\u6bd2\u9738\uff0c\u800c\u4e14\u6700\u8fd1\u51e0\u5929\u4e5f\u5347\u7ea7\u8fc7\u4e86\uff0c\u5e94\u8be5\u662f\u540c\u6837\u7684\u95ee\u9898\u3002\u4e8e\u662f\u641c\u7d22\u5230\u6062\u590dWinsock\u7684\u65b9\u6cd5\uff1a<\/p>\n<p><strong>netsh winsock reset<\/strong><\/p>\n<p>\u4f7f\u7528\u6b64\u6761\u547d\u4ee4\u6062\u590d\u540e\uff0c\u91cd\u542f\u7535\u8111\uff0c\u8fd9\u4e0bApache\u6062\u590d\u5f53\u539f\u5148\u7684\u826f\u597d\u72b6\u6001\u4e86\u3002<\/p>\n<p>\u5e0c\u671b\u9047\u89c1\u8fd9\u6837\u95ee\u9898\u7684\u670b\u53cb\u4eec\u80fd\u5f97\u5230\u5e2e\u52a9~~\uff01<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u65e5\u7535\u8111\u4e0a\u7684APACHE\u542f\u52a8\u540eCPU\u5360\u7528\u7387\u4e00\u76f4\u9ad8\u5c45100%, PHP&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[31,34,32,33],"class_list":["post-661","post","type-post","status-publish","format-standard","hentry","category-NetOS","tag-apache","tag-34","tag-32","tag-33"],"_links":{"self":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=661"}],"version-history":[{"count":2,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/661\/revisions"}],"predecessor-version":[{"id":663,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/661\/revisions\/663"}],"wp:attachment":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}