{"id":181920,"date":"2024-11-09T19:36:17","date_gmt":"2024-11-09T11:36:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/181920\/"},"modified":"2024-11-09T19:36:18","modified_gmt":"2024-11-09T11:36:18","slug":"%e6%b7%b1%e5%85%a5%e6%8e%a2%e7%a9%b6%e6%95%b8%e6%93%9a%e5%ba%ab%e7%93%b6%e9%a0%b8%e7%9a%84%e5%88%86%e6%9e%90%e6%96%b9%e6%b3%95%ef%bc%88%e6%95%b8%e6%93%9a%e5%ba%ab%e7%93%b6%e9%a0%b8%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/181920\/","title":{"rendered":"\u6df1\u5165\u63a2\u7a76\u6578\u64da\u5eab\u74f6\u9838\u7684\u5206\u6790\u65b9\u6cd5\uff08\u6578\u64da\u5eab\u74f6\u9838\u5206\u6790\uff09"},"content":{"rendered":"<h1 id=\"%e6%b7%b1%e5%85%a5%e6%8e%a2%e7%a9%b6%e6%95%b8%e6%93%9a%e5%ba%ab%e7%93%b6%e9%a0%b8%e7%9a%84%e5%88%86%e6%9e%90%e6%96%b9%e6%b3%95%ef%bc%88%e6%95%b8%e6%93%9a%e5%ba%ab%e7%93%b6%e9%a0%b8%e5%88%86%e6%9e%90-uiXRNiKHrS\">\u6df1\u5165\u63a2\u7a76\u6578\u64da\u5eab\u74f6\u9838\u7684\u5206\u6790\u65b9\u6cd5\uff08\u6578\u64da\u5eab\u74f6\u9838\u5206\u6790\uff09<\/h1>\n<p>\u5728\u7576\u4eca\u6578\u64da\u9a45\u52d5\u7684\u4e16\u754c\u4e2d\uff0c\u6578\u64da\u5eab\u7684\u6027\u80fd\u5c0d\u65bc\u4f01\u696d\u7684\u904b\u71df\u81f3\u95dc\u91cd\u8981\u3002\u96a8\u8457\u6578\u64da\u91cf\u7684\u589e\u9577\u548c\u7528\u6236\u9700\u6c42\u7684\u589e\u52a0\uff0c\u6578\u64da\u5eab\u74f6\u9838\u554f\u984c\u8b8a\u5f97\u8d8a\u4f86\u8d8a\u666e\u904d\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u6578\u64da\u5eab\u74f6\u9838\u7684\u5206\u6790\u65b9\u6cd5\uff0c\u5e6b\u52a9\u8b80\u8005\u7406\u89e3\u5982\u4f55\u8b58\u5225\u548c\u89e3\u6c7a\u9019\u4e9b\u554f\u984c\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af%e6%95%b8%e6%93%9a%e5%ba%ab%e7%93%b6%e9%a0%b8%ef%bc%9f-uiXRNiKHrS\">\u4ec0\u9ebc\u662f\u6578\u64da\u5eab\u74f6\u9838\uff1f<\/h2>\n<p>\u6578\u64da\u5eab\u74f6\u9838\u662f\u6307\u5728\u6578\u64da\u5eab\u7cfb\u7d71\u4e2d\uff0c\u67d0\u4e9b\u8cc7\u6e90\u7684\u9650\u5236\u5c0e\u81f4\u6574\u9ad4\u6027\u80fd\u4e0b\u964d\u7684\u60c5\u6cc1\u3002\u9019\u4e9b\u74f6\u9838\u53ef\u80fd\u51fa\u73fe\u5728\u591a\u500b\u5c64\u9762\uff0c\u5305\u62ec\u786c\u9ad4\u3001\u7db2\u7d61\u3001\u6578\u64da\u5eab\u8a2d\u8a08\u548c\u67e5\u8a62\u6027\u80fd\u7b49\u3002\u7576\u74f6\u9838\u51fa\u73fe\u6642\uff0c\u6578\u64da\u5eab\u7684\u97ff\u61c9\u6642\u9593\u6703\u589e\u52a0\uff0c\u6700\u7d42\u5f71\u97ff\u5230\u7528\u6236\u9ad4\u9a57\u548c\u696d\u52d9\u904b\u71df\u3002<\/p>\n<h2 id=\"%e6%95%b8%e6%93%9a%e5%ba%ab%e7%93%b6%e9%a0%b8%e7%9a%84%e5%b8%b8%e8%a6%8b%e9%a1%9e%e5%9e%8b-uiXRNiKHrS\">\u6578\u64da\u5eab\u74f6\u9838\u7684\u5e38\u898b\u985e\u578b<\/h2>\n<ul>\n<li><strong>CPU\u74f6\u9838\uff1a<\/strong>\u7576\u6578\u64da\u5eab\u7684\u67e5\u8a62\u8655\u7406\u9700\u8981\u7684\u8a08\u7b97\u8cc7\u6e90\u8d85\u904e\u53ef\u7528\u7684CPU\u80fd\u529b\u6642\uff0c\u5c31\u6703\u51fa\u73feCPU\u74f6\u9838\u3002<\/li>\n<li><strong>\u5167\u5b58\u74f6\u9838\uff1a<\/strong>\u5982\u679c\u6578\u64da\u5eab\u7684\u5de5\u4f5c\u96c6\u8d85\u904e\u4e86\u53ef\u7528\u5167\u5b58\uff0c\u5247\u6703\u5c0e\u81f4\u983b\u7e41\u7684\u78c1\u789fI\/O\u64cd\u4f5c\uff0c\u5f9e\u800c\u5f71\u97ff\u6027\u80fd\u3002<\/li>\n<li><strong>\u78c1\u789fI\/O\u74f6\u9838\uff1a<\/strong>\u7576\u6578\u64da\u5eab\u9700\u8981\u5f9e\u78c1\u789f\u8b80\u53d6\u6216\u5beb\u5165\u6578\u64da\u7684\u901f\u5ea6\u7121\u6cd5\u6eff\u8db3\u9700\u6c42\u6642\uff0c\u5c31\u6703\u51fa\u73fe\u78c1\u789fI\/O\u74f6\u9838\u3002<\/li>\n<li><strong>\u7db2\u7d61\u74f6\u9838\uff1a<\/strong>\u5728\u5206\u4f48\u5f0f\u6578\u64da\u5eab\u7cfb\u7d71\u4e2d\uff0c\u7db2\u7d61\u5ef6\u9072\u548c\u5e36\u5bec\u9650\u5236\u53ef\u80fd\u6703\u6210\u70ba\u6027\u80fd\u7684\u74f6\u9838\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%95%b8%e6%93%9a%e5%ba%ab%e7%93%b6%e9%a0%b8%e5%88%86%e6%9e%90%e6%96%b9%e6%b3%95-uiXRNiKHrS\">\u6578\u64da\u5eab\u74f6\u9838\u5206\u6790\u65b9\u6cd5<\/h2>\n<p>\u70ba\u4e86\u6709\u6548\u5730\u8b58\u5225\u548c\u89e3\u6c7a\u6578\u64da\u5eab\u74f6\u9838\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u5206\u6790\u65b9\u6cd5\uff1a<\/p>\n<h3 id=\"1-%e6%80%a7%e8%83%bd%e7%9b%a3%e6%8e%a7%e5%b7%a5%e5%85%b7-uiXRNiKHrS\">1. \u6027\u80fd\u76e3\u63a7\u5de5\u5177<\/h3>\n<p>\u4f7f\u7528\u6027\u80fd\u76e3\u63a7\u5de5\u5177\u53ef\u4ee5\u5e6b\u52a9\u7ba1\u7406\u54e1\u5be6\u6642\u8ddf\u8e64\u6578\u64da\u5eab\u7684\u6027\u80fd\u6307\u6a19\u3002\u9019\u4e9b\u5de5\u5177\u901a\u5e38\u63d0\u4f9bCPU\u4f7f\u7528\u7387\u3001\u5167\u5b58\u4f7f\u7528\u60c5\u6cc1\u3001\u78c1\u789fI\/O\u548c\u67e5\u8a62\u6027\u80fd\u7b49\u6578\u64da\u3002\u4f8b\u5982\uff0c<code>MySQL<\/code>\u7684<code>SHOW PROCESSLIST<\/code>\u547d\u4ee4\u53ef\u4ee5\u986f\u793a\u7576\u524d\u6b63\u5728\u57f7\u884c\u7684\u67e5\u8a62\uff0c\u5e6b\u52a9\u8b58\u5225\u9577\u6642\u9593\u904b\u884c\u7684\u67e5\u8a62\u3002<\/p>\n<h3 id=\"2-%e6%9f%a5%e8%a9%a2%e5%88%86%e6%9e%90-uiXRNiKHrS\">2. \u67e5\u8a62\u5206\u6790<\/h3>\n<p>\u67e5\u8a62\u6027\u80fd\u5206\u6790\u662f\u8b58\u5225\u74f6\u9838\u7684\u95dc\u9375\u3002\u901a\u904e\u4f7f\u7528<code>EXPLAIN<\/code>\u8a9e\u53e5\uff0c\u53ef\u4ee5\u7372\u53d6\u67e5\u8a62\u7684\u57f7\u884c\u8a08\u5283\uff0c\u5f9e\u800c\u4e86\u89e3\u6578\u64da\u5eab\u5982\u4f55\u8655\u7406\u8a72\u67e5\u8a62\u3002\u9019\u6709\u52a9\u65bc\u767c\u73fe\u4e0d\u5fc5\u8981\u7684\u5168\u8868\u6383\u63cf\u6216\u7d22\u5f15\u4f7f\u7528\u4e0d\u7576\u7684\u60c5\u6cc1\u3002<\/p>\n<h3 id=\"3-%e6%95%b8%e6%93%9a%e5%ba%ab%e6%8c%87%e6%a8%99-uiXRNiKHrS\">3. \u6578\u64da\u5eab\u6307\u6a19<\/h3>\n<p>\u5b9a\u671f\u6aa2\u67e5\u6578\u64da\u5eab\u7684\u6027\u80fd\u6307\u6a19\uff0c\u5982\u67e5\u8a62\u97ff\u61c9\u6642\u9593\u3001\u4e8b\u52d9\u8655\u7406\u901f\u5ea6\u548c\u932f\u8aa4\u7387\uff0c\u53ef\u4ee5\u5e6b\u52a9\u8b58\u5225\u6f5b\u5728\u7684\u74f6\u9838\u3002\u9019\u4e9b\u6307\u6a19\u53ef\u4ee5\u901a\u904e\u6578\u64da\u5eab\u7684\u7ba1\u7406\u754c\u9762\u6216\u4f7f\u7528\u7b2c\u4e09\u65b9\u76e3\u63a7\u5de5\u5177\u7372\u53d6\u3002<\/p>\n<h3 id=\"4-%e8%b2%a0%e8%bc%89%e6%b8%ac%e8%a9%a6-uiXRNiKHrS\">4. \u8ca0\u8f09\u6e2c\u8a66<\/h3>\n<p>\u9032\u884c\u8ca0\u8f09\u6e2c\u8a66\u53ef\u4ee5\u6a21\u64ec\u9ad8\u6d41\u91cf\u60c5\u6cc1\uff0c\u5e6b\u52a9\u8b58\u5225\u5728\u9ad8\u8ca0\u8f09\u4e0b\u7684\u6027\u80fd\u74f6\u9838\u3002\u901a\u904e\u4f7f\u7528\u5de5\u5177\u5982<code>Apache JMeter<\/code>\u6216<code>Gatling<\/code>\uff0c\u53ef\u4ee5\u6e2c\u8a66\u6578\u64da\u5eab\u5728\u4e0d\u540c\u8ca0\u8f09\u4e0b\u7684\u8868\u73fe\uff0c\u4e26\u627e\u51fa\u6027\u80fd\u4e0b\u964d\u7684\u539f\u56e0\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-uiXRNiKHrS\">\u7d50\u8ad6<\/h2>\n<p>\u6578\u64da\u5eab\u74f6\u9838\u7684\u5206\u6790\u662f\u4e00\u500b\u6301\u7e8c\u7684\u904e\u7a0b\uff0c\u6d89\u53ca\u591a\u7a2e\u6280\u8853\u548c\u5de5\u5177\u3002\u901a\u904e\u6709\u6548\u7684\u76e3\u63a7\u3001\u67e5\u8a62\u5206\u6790\u548c\u8ca0\u8f09\u6e2c\u8a66\uff0c\u7ba1\u7406\u54e1\u53ef\u4ee5\u53ca\u6642\u8b58\u5225\u4e26\u89e3\u6c7a\u6027\u80fd\u554f\u984c\uff0c\u5f9e\u800c\u78ba\u4fdd\u6578\u64da\u5eab\u7cfb\u7d71\u7684\u7a69\u5b9a\u6027\u548c\u9ad8\u6548\u6027\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u6027\u80fd\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\u7684\u4f01\u696d\uff0c\u9078\u64c7\u5408\u9069\u7684<code><a href=\"https:\/\/server.hk\">VPS<\/a><\/code>\u6216<code><a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a><\/code>\u53ef\u4ee5\u63d0\u4f9b\u66f4\u597d\u7684\u652f\u6301\uff0c\u5e6b\u52a9\u4ed6\u5011\u61c9\u5c0d\u4e0d\u65b7\u589e\u9577\u7684\u6578\u64da\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6df1\u5165\u63a2\u7a76\u6578\u64da\u5eab\u74f6\u9838\u7684\u5206\u6790\u65b9\u6cd5\uff0c\u63ed\u793a\u6027\u80fd\u554f\u984c\u6839\u6e90\uff0c\u63d0\u5347\u7cfb\u7d71\u6548\u7387\uff0c\u52a9\u529b\u6578\u64da\u7ba1\u7406\u6700\u4f73\u5be6\u8e10\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-181920","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/181920","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=181920"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/181920\/revisions"}],"predecessor-version":[{"id":181921,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/181920\/revisions\/181921"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=181920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=181920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=181920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}