{"id":99737,"date":"2026-09-03T08:08:46","date_gmt":"2026-09-03T00:08:46","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/99737.html"},"modified":"2026-09-03T08:08:46","modified_gmt":"2026-09-03T00:08:46","slug":"%e6%80%a7%e8%83%bd%e6%b5%8b%e8%af%95%e9%97%ae%e9%a2%98%e6%8e%92%e6%9f%a5%e6%80%9d%e8%b7%af","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/99737.html","title":{"rendered":"\u6027\u80fd\u6d4b\u8bd5\u95ee\u9898\u6392\u67e5\u601d\u8def"},"content":{"rendered":"<h3>1\u3001\u5148\u6392\u6389&#034;\u5047\u95ee\u9898&#034;&#xff08;30% \u7684\u5751\u5728\u8fd9&#xff09;<\/h3>\n<p>\u5f88\u591a\u6240\u8c13&#034;\u6027\u80fd\u4e0a\u4e0d\u53bb&#034;&#xff0c;\u5176\u5b9e\u662f\u538b\u6d4b\u672c\u8eab\u7684\u95ee\u9898\u3002\u8fd9\u4e00\u6b65\u4e0d\u5148\u505a&#xff0c;\u540e\u9762\u5168\u767d\u5e72\u3002<\/p>\n<table>\n<tr>\n<p>\u68c0\u67e5\u70b9<\/p>\n<p>\u600e\u4e48\u770b<\/p>\n<p>\u5178\u578b\u75c7\u72b6<\/p>\n<\/tr>\n<tbody>\n<tr>\n<td>\n<p>\u538b\u6d4b\u673a\u81ea\u8eab\u74f6\u9888<\/p>\n<\/td>\n<td>\n<p>top\u3001CPU\u3001\u5185\u5b58\u3001\u7f51\u7edc<\/p>\n<\/td>\n<td>\n<p>\u538b\u6d4b\u673a CPU \u6253\u6ee1 \u2192 TPS \u662f\u538b\u6d4b\u673a\u7684\u4e0a\u9650&#xff0c;\u4e0d\u662f\u670d\u52a1\u7aef\u7684<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u7aef\u53e3\u8017\u5c3d<\/p>\n<\/td>\n<td>\n<p>ss -s\u3001netstat<\/p>\n<\/td>\n<td>\n<p>TIME_WAIT \u66b4\u6da8&#xff0c;Cannot assign requested address<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u7f51\u7edc\u5e26\u5bbd<\/p>\n<\/td>\n<td>\n<p>iftop\u3001sar -n DEV<\/p>\n<\/td>\n<td>\n<p>\u5e26\u5bbd\u8dd1\u6ee1&#xff0c;RT \u5168\u7ebf\u62c9\u957f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u811a\u672c\u95ee\u9898<\/p>\n<\/td>\n<td>\n<p>\u770b\u8bf7\u6c42\u662f\u5426\u771f\u53d1\u51fa\u53bb<\/p>\n<\/td>\n<td>\n<p>think time \u8bbe\u9519\u3001\u65ad\u8a00\u592a\u91cd\u3001CSV \u8bfb\u53d6\u6162<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u8fde\u63a5\u6c60\/\u5ba2\u6237\u7aef\u9650\u5236<\/p>\n<\/td>\n<td>\n<p>JMeter \u7684 httpclient \u8fde\u63a5\u6570<\/p>\n<\/td>\n<td>\n<p>\u5e76\u53d1\u8bbe\u4e86 500&#xff0c;\u5b9e\u9645\u8fde\u63a5\u6570\u53ea\u6709 20<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5224\u636e\u9ec4\u91d1\u53e3\u8bc0&#xff1a;<\/p>\n<p>TPS \u4e0a\u4e0d\u53bb&#xff0c;\u4f46\u670d\u52a1\u7aef\u8d44\u6e90&#xff08;CPU\/\u5185\u5b58\/IO&#xff09;\u90fd\u5f88\u95f2 \u2192 \u5927\u6982\u7387\u662f\u538b\u6d4b\u7aef\u6216\u94fe\u8def\u963b\u585e&#xff0c;\u4e0d\u662f\u670d\u52a1\u7aef\u6027\u80fd\u95ee\u9898\u3002<\/p>\n<hr \/>\n<h3>2\u3001\u5efa\u7acb&#034;\u4e09\u8981\u7d20&#034;\u5173\u8054\u89c6\u56fe<\/h3>\n<p>\u4efb\u4f55\u6027\u80fd\u95ee\u9898&#xff0c;\u90fd\u8981\u540c\u65f6\u770b\u8fd9\u4e09\u4e2a\u6307\u6807\u7684\u5173\u7cfb&#xff0c;\u7f3a\u4e00\u4e0d\u53ef&#xff1a;<\/p>\n<p>TPS&#xff08;\u541e\u5410\u91cf&#xff09;  \u2194  RT&#xff08;\u54cd\u5e94\u65f6\u95f4&#xff09;  \u2194  \u8d44\u6e90\u5229\u7528\u7387&#xff08;CPU\/\u5185\u5b58\/IO\/\u7f51\u7edc&#xff09;<\/p>\n<p>\u6838\u5fc3\u5b9a\u5f8b&#xff1a;<\/p>\n<ul>\n<li>CPU \u6da8&#xff0c;TPS \u6da8\u200b \u2192 \u6b63\u5e38&#xff0c;\u8fd8\u6ca1\u5230\u74f6\u9888<\/li>\n<li>CPU \u6da8&#xff0c;TPS \u4e0d\u6da8&#xff0c;RT \u6da8\u200b \u2192 \u5feb\u5230\u74f6\u9888\u4e86&#xff0c;\u5f00\u59cb\u6392\u961f<\/li>\n<li>CPU \u4e0d\u6da8&#xff0c;TPS \u4e0d\u6da8&#xff0c;RT \u6da8\u200b \u2192 \u6709\u963b\u585e&#xff08;\u9501\u3001IO \u7b49\u5f85\u3001\u5916\u90e8\u4f9d\u8d56\u3001\u8fde\u63a5\u6c60\u4e0d\u591f&#xff09;<\/li>\n<li>CPU \u6da8&#xff0c;TPS \u53cd\u964d\u200b \u2192 \u7ebf\u7a0b\u4e0a\u4e0b\u6587\u5207\u6362\u4e25\u91cd&#xff0c;\u6216 GC \u9891\u7e41<\/li>\n<\/ul>\n<p>\u7b2c\u4e8c\u548c\u7b2c\u4e09\u79cd\u662f\u6700\u5e38\u89c1\u7684\u4e24\u7c7b\u95ee\u9898&#xff0c;\u540e\u9762\u5206\u5f00\u8bb2\u3002<\/p>\n<hr \/>\n<h3>3\u3001\u5206\u5c42\u5b9a\u4f4d\u6f0f\u6597&#xff08;\u4ece\u5916\u5230\u5185&#xff09;<\/h3>\n<p>\u6309\u8fd9\u4e2a\u987a\u5e8f\u5f80\u4e0b\u94bb&#xff0c;\u6bcf\u5c42\u90fd\u6709\u660e\u786e\u7684&#034;\u8bc1\u636e&#034;\u51b3\u5b9a\u662f\u5426\u4e0b\u94bb&#xff1a;<\/p>\n<p>\u2460 \u7f51\u7edc\/\u8d1f\u8f7d\u5747\u8861  \u2192  \u2461 \u5e94\u7528\u670d\u52a1\u5668  \u2192  \u2462 JVM  \u2192  \u2463 \u4e2d\u95f4\u4ef6\/\u5916\u90e8\u4f9d\u8d56  \u2192  \u2464 \u6570\u636e\u5e93  \u2192  \u2465 \u4ee3\u7801<\/p>\n<h4>\u2460 \u7f51\u7edc &amp; \u8d1f\u8f7d\u5747\u8861<\/h4>\n<ul>\n<li>\u770b&#xff1a;\u5e26\u5bbd\u3001\u4e22\u5305\u7387\u3001LB \u8fde\u63a5\u6570\u3001DNS \u89e3\u6790<\/li>\n<li>\u5de5\u5177&#xff1a;iftop\u3001sar -n DEV\u3001ping\u3001mtr<\/li>\n<li>\u5178\u578b\u95ee\u9898&#xff1a;\u5e26\u5bbd\u6253\u6ee1\u3001SLB \u8fde\u63a5\u6570\u9650\u5236\u3001\u8de8\u53ef\u7528\u533a\u8c03\u7528<\/li>\n<\/ul>\n<h4>\u2461 \u5e94\u7528\u670d\u52a1\u5668&#xff08;\u7cfb\u7edf\u5c42&#xff09;<\/h4>\n<ul>\n<li>\u770b&#xff1a;CPU\u3001\u5185\u5b58\u3001\u78c1\u76d8 IO\u3001\u4e0a\u4e0b\u6587\u5207\u6362\u3001\u6253\u5f00\u6587\u4ef6\u6570<\/li>\n<li>\u5de5\u5177&#xff1a;top\u3001vmstat\u3001iostat\u3001pidstat\u3001dstat<\/li>\n<li>\u5173\u952e\u6307\u6807&#xff1a;\n<ul>\n<li>us&#xff08;\u7528\u6237\u6001CPU&#xff09;\u9ad8\u200b \u2192 \u4e1a\u52a1\u4ee3\u7801\u5728\u7b97&#xff0c;\u5f80\u4e0b\u94bb\u4ee3\u7801<\/li>\n<li>sy&#xff08;\u5185\u6838\u6001CPU&#xff09;\u9ad8\u200b \u2192 \u7cfb\u7edf\u8c03\u7528\u9891\u7e41&#xff08;\u5927\u91cf IO\/\u7f51\u7edc\/\u9501\u7ade\u4e89&#xff09;<\/li>\n<li>wa&#xff08;IO\u7b49\u5f85&#xff09;\u9ad8\u200b \u2192 \u78c1\u76d8\u6216\u5916\u90e8 IO \u6162<\/li>\n<li>cs&#xff08;\u4e0a\u4e0b\u6587\u5207\u6362&#xff09;\u66b4\u6da8\u200b \u2192 \u7ebf\u7a0b\u6570\u8fc7\u591a&#xff0c;\u5728\u75af\u72c2\u5207\u6362<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>\u2462 JVM \u5c42<\/h4>\n<ul>\n<li>\u770b&#xff1a;GC \u9891\u7387\/\u8017\u65f6\u3001\u5806\u5185\u5b58\u3001\u7ebf\u7a0b\u72b6\u6001<\/li>\n<li>\u5de5\u5177&#xff1a;jstat -gcutil\u3001jmap\u3001jstack\u3001Arthas dashboard<\/li>\n<li>\u5178\u578b\u95ee\u9898&#xff1a;\n<ul>\n<li>Full GC \u9891\u7e41\u200b \u2192 \u5185\u5b58\u6cc4\u6f0f\u6216\u5806\u592a\u5c0f \u2192 jmap dump &#043; MAT \u5206\u6790<\/li>\n<li>Young GC \u8017\u65f6\u9ad8\u200b \u2192 \u5bf9\u8c61\u521b\u5efa\u8fc7\u5feb&#xff0c;\u770b jstat \u5404\u533a\u56de\u6536\u60c5\u51b5<\/li>\n<li>\u5927\u91cf\u7ebf\u7a0b BLOCKED\u200b \u2192 \u9501\u7ade\u4e89 \u2192 jstack \u6216 Arthas thread -b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>\u2463 \u4e2d\u95f4\u4ef6 \/ \u5916\u90e8\u4f9d\u8d56<\/h4>\n<ul>\n<li>\u770b&#xff1a;Redis\u3001MQ\u3001\u7b2c\u4e09\u65b9\u63a5\u53e3\u3001\u8fde\u63a5\u6c60<\/li>\n<li>\u5178\u578b\u95ee\u9898&#xff1a;\n<ul>\n<li>\u8fde\u63a5\u6c60\u6253\u6ee1&#xff08;Druid\/HikariCP \u7b49\u5f85\u6570&#xff09;\u2192 \u6162 SQL \u62d6\u4f4f\u8fde\u63a5<\/li>\n<li>Redis \u5927 key\u3001\u70ed key\u3001\u8fde\u63a5\u6c60\u4e0d\u591f<\/li>\n<li>\u7b2c\u4e09\u65b9\u63a5\u53e3 RT \u957f \u2192 \u4e32\u884c\u8c03\u7528\u653e\u5927 RT<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>\u2464 \u6570\u636e\u5e93&#xff08;\u6700\u5e38\u89c1\u7684\u7ec8\u6781\u74f6\u9888&#xff09;<\/h4>\n<ul>\n<li>\u770b&#xff1a;\u6162 SQL\u3001\u9501\u7b49\u5f85\u3001\u8fde\u63a5\u6570\u3001Buffer Pool \u547d\u4e2d\u7387<\/li>\n<li>\u5de5\u5177&#xff1a;\u6162\u67e5\u8be2\u65e5\u5fd7\u3001show processlist\u3001explain\u3001Arthas trace \u5b9a\u4f4d\u5230 SQL<\/li>\n<li>\u5178\u578b\u95ee\u9898&#xff1a;\n<ul>\n<li>\u6ca1\u8d70\u7d22\u5f15\u3001\u7d22\u5f15\u5931\u6548<\/li>\n<li>\u5927\u8868 JOIN\u3001\u6df1\u5206\u9875<\/li>\n<li>\u884c\u9501\/\u8868\u9501\u7b49\u5f85<\/li>\n<li>\u8fde\u63a5\u6570\u6253\u6ee1<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>\u2465 \u4ee3\u7801\u5c42<\/h4>\n<ul>\n<li>\u5230\u8fd9\u4e00\u5c42\u5c31\u662f\u6700\u540e\u4e00\u6b65\u4e86&#xff0c;\u9760 Arthas \/ APM \/ profile \u706b\u7130\u56fe<\/li>\n<li>\u5178\u578b\u95ee\u9898&#xff1a;\u5faa\u73af\u91cc\u67e5\u6570\u636e\u5e93\u3001\u540c\u6b65\u9501\u8303\u56f4\u8fc7\u5927\u3001\u5e8f\u5217\u5316\u5f00\u9500\u3001\u65e5\u5fd7\u6253\u592a\u591a<\/li>\n<\/ul>\n<hr \/>\n<h3>4\u3001\u4e24\u5927\u7ecf\u5178\u573a\u666f\u7684\u6392\u67e5\u8def\u5f84<\/h3>\n<h4>\u573a\u666f A&#xff1a;CPU \u9ad8\u3001TPS \u4e0a\u4e0d\u53bb<\/h4>\n<p>top                          \u2192 \u627e\u5230 CPU \u9ad8\u7684\u8fdb\u7a0b<br \/>\ntop -Hp &lt;pid&gt;                \u2192 \u627e\u5230 CPU \u9ad8\u7684\u7ebf\u7a0b<br \/>\nprintf %x &lt;tid&gt;              \u2192 \u8f6c 16 \u8fdb\u5236<br \/>\njstack &lt;pid&gt; | grep -A20 &lt;hex&gt;  \u2192 \u770b\u8fd9\u4e2a\u7ebf\u7a0b\u5728\u5e72\u561b<\/p>\n<p>\u6216\u8005 Arthas \u4e00\u6b65\u5230\u4f4d&#xff1a;<\/p>\n<p>thread -n 3<\/p>\n<p>\u5f80\u4e0b\u5224\u65ad&#xff1a;<\/p>\n<ul>\n<li>\u6808\u5728\u4e1a\u52a1\u65b9\u6cd5\u200b \u2192 \u7b97\u6cd5\/\u5faa\u73af\u95ee\u9898&#xff0c;\u7528 profiler \u706b\u7130\u56fe\u627e\u70ed\u70b9\u65b9\u6cd5<\/li>\n<li>\u6808\u5728 GC \u7ebf\u7a0b\u200b \u2192 \u5185\u5b58\u95ee\u9898&#xff0c;\u8f6c JVM \u6392\u67e5<\/li>\n<li>\u6808\u5728\u5e8f\u5217\u5316\/JSON\u200b \u2192 \u6570\u636e\u91cf\u592a\u5927\u6216\u5e8f\u5217\u5316\u6846\u67b6\u6162<\/li>\n<\/ul>\n<h4>\u573a\u666f B&#xff1a;CPU \u4e0d\u9ad8\u3001\u4f46 RT \u5f88\u957f\u3001TPS \u4e0a\u4e0d\u53bb \u2190 \u9762\u8bd5\u6700\u7231\u8003<\/h4>\n<p>\u8fd9\u662f\u963b\u585e\u578b\u95ee\u9898&#xff0c;\u6392\u67e5\u601d\u8def\u5b8c\u5168\u4e0d\u540c&#xff1a;<\/p>\n<p>1. jstack \/ Arthas thread \u770b\u7ebf\u7a0b\u72b6\u6001<br \/>\n   \u2192 \u5927\u91cf WAITING\/BLOCKED<br \/>\n2. \u770b\u5728\u7b49\u4ec0\u4e48&#xff1a;<br \/>\n   &#8211; \u7b49\u6570\u636e\u5e93\u8fde\u63a5\u6c60     \u2192 \u8fde\u63a5\u6570\u4e0d\u591f \u6216 \u6162 SQL \u5360\u7740\u8fde\u63a5<br \/>\n   &#8211; \u7b49 Redis\/HTTP \u8fde\u63a5  \u2192 \u5916\u90e8\u4f9d\u8d56\u6162<br \/>\n   &#8211; \u7b49 synchronized \u9501  \u2192 \u9501\u7ade\u4e89\u6fc0\u70c8&#xff08;thread -b \u76f4\u63a5\u627e&#xff09;<br \/>\n   &#8211; \u7b49\u7ebf\u7a0b\u6c60\u961f\u5217        \u2192 \u7ebf\u7a0b\u6c60\u6838\u5fc3\u6570\/\u961f\u5217\u914d\u7f6e\u4e0d\u5408\u7406<br \/>\n3. Arthas trace \u770b\u65b9\u6cd5\u5185\u90e8\u8017\u65f6\u5206\u5e03<br \/>\n   \u2192 \u5b9a\u4f4d\u5230\u5e95\u5361\u5728\u54ea\u4e00\u8df3<\/p>\n<p>\u5173\u952e\u6d1e\u5bdf&#xff1a;<\/p>\n<p>CPU \u4f4e &#043; RT \u9ad8 &#061; \u7cfb\u7edf\u5728&#034;\u7b49&#034;&#xff0c;\u4e0d\u662f\u5728&#034;\u7b97&#034;\u3002\u8981\u627e&#034;\u7b49\u4ec0\u4e48&#034;&#xff0c;\u4e0d\u662f\u627e&#034;\u7b97\u4ec0\u4e48&#034;\u3002<\/p>\n<hr \/>\n<h3>\u4e94\u3001\u4e00\u4e2a\u5b9e\u6218\u6392\u67e5\u6a21\u677f&#xff08;\u53ef\u76f4\u63a5\u5957&#xff09;<\/h3>\n<p># &#061;&#061;&#061; \u7b2c 0 \u6b65&#xff1a;\u786e\u8ba4\u538b\u6d4b\u7aef\u6ca1\u95ee\u9898 &#061;&#061;&#061;<br \/>\n# \u538b\u6d4b\u673a CPU\/\u7f51\u7edc\u662f\u5426\u6b63\u5e38<\/p>\n<p># &#061;&#061;&#061; \u7b2c 1 \u6b65&#xff1a;\u7cfb\u7edf\u5c42 &#061;&#061;&#061;<br \/>\ntop                      # \u770b\u6574\u4f53\u8d1f\u8f7d\u3001CPU \u5206\u5e03<br \/>\nvmstat 1                 # \u770b cs&#xff08;\u4e0a\u4e0b\u6587\u5207\u6362&#xff09;\u3001wa&#xff08;IO\u7b49\u5f85&#xff09;<br \/>\npidstat -u -p &lt;pid&gt; 1    # \u8fdb\u7a0b\u7ea7 CPU<\/p>\n<p># &#061;&#061;&#061; \u7b2c 2 \u6b65&#xff1a;JVM \u5c42 &#061;&#061;&#061;<br \/>\njstat -gcutil &lt;pid&gt; 1000   # \u770b GC \u9891\u7387\u548c\u8017\u65f6<br \/>\njstack &lt;pid&gt; &gt; \/tmp\/stack.txt   # \u6293\u7ebf\u7a0b\u6808&#xff08;\u591a\u6293\u51e0\u6b21&#xff09;<\/p>\n<p># &#061;&#061;&#061; \u7b2c 3 \u6b65&#xff1a; Arthas \u7cbe\u51c6\u5b9a\u4f4d &#061;&#061;&#061;<br \/>\ndashboard                  # \u6574\u4f53\u9762\u677f<br \/>\nthread -n 3                # CPU Top3<br \/>\nthread -b                  # \u627e\u6b7b\u9501\/\u963b\u585e\u6e90<br \/>\ntrace &lt;class&gt; &lt;method&gt; &#039;#cost&gt;200&#039;   # \u53ea\u770b\u8017\u65f6&gt;200ms \u7684\u8c03\u7528<br \/>\nwatch &lt;class&gt; &lt;method&gt; &#039;{params, returnObj}&#039; -x 2<\/p>\n<p># &#061;&#061;&#061; \u7b2c 4 \u6b65&#xff1a;\u6570\u636e\u5e93 &#061;&#061;&#061;<br \/>\n# \u5f00\u6162\u67e5\u8be2\u65e5\u5fd7 \/ show processlist \/ explain<\/p>\n<p>\u7ebf\u7a0b\u6808\u6293\u4e0b\u6765\u540e&#xff0c;\u91cd\u70b9\u770b\u5927\u591a\u6570\u7ebf\u7a0b\u505c\u5728\u54ea\u4e00\u4e2a\u6808\u5e27\u2014\u2014\u90a3\u4e2a\u5c31\u662f\u74f6\u9888\u3002<\/p>\n<hr \/>\n<h3>\u516d\u3001\u6392\u67e5\u5fc3\u6cd5&#xff08;\u6bd4\u5de5\u5177\u66f4\u91cd\u8981&#xff09;<\/h3>\n<li>\u5148\u6d4b\u91cf&#xff0c;\u518d\u4f18\u5316&#xff1a;\u6ca1\u6709\u6570\u636e\u652f\u6491\u7684\u4f18\u5316\u90fd\u662f\u7384\u5b66<\/li>\n<li>\u4e00\u6b21\u53ea\u6539\u4e00\u4e2a\u53d8\u91cf&#xff1a;\u6539\u5b8c\u91cd\u6d4b&#xff0c;\u624d\u80fd\u786e\u5b9a\u6548\u679c<\/li>\n<li>\u4ece\u5927\u5230\u5c0f&#xff0c;\u4ece\u7c97\u5230\u7ec6&#xff1a;\u5148\u786e\u5b9a\u662f\u54ea\u4e00\u5c42&#xff08;\u7f51\u7edc\/\u5e94\u7528\/DB&#xff09;&#xff0c;\u518d\u6df1\u5165\u5177\u4f53\u65b9\u6cd5<\/li>\n<li>\u770b\u8d8b\u52bf&#xff0c;\u4e0d\u770b\u5feb\u7167&#xff1a;\u6027\u80fd\u95ee\u9898\u8981\u770b\u538b\u6d4b\u8fc7\u7a0b\u4e2d\u7684\u66f2\u7ebf\u53d8\u5316&#xff08;\u5185\u5b58\u662f\u5426\u6301\u7eed\u589e\u957f&#xff1f;TPS \u662f\u5426\u968f\u65f6\u95f4\u4e0b\u964d&#xff1f;&#xff09;<\/li>\n<li>TPS \u4e0b\u964d\u6bd4 RT \u53d8\u957f\u66f4\u65e9\u66b4\u9732\u95ee\u9898&#xff1a;RT \u662f\u7ed3\u679c&#xff0c;TPS \u548c\u8d44\u6e90\u7684\u5173\u7cfb\u53d8\u5316\u624d\u662f\u9884\u8b66\u4fe1\u53f7<\/li>\n<hr \/>\n<h3>\u4e03\u3001\u8bb0\u5fc6\u951a\u70b9<\/h3>\n<p>\u4e00\u770b\u538b\u6d4b\u7aef&#xff0c;\u4e8c\u770b\u4e09\u8981\u7d20&#xff08;TPS\/RT\/\u8d44\u6e90&#xff09;&#xff0c;\u4e09\u5206\u5c42\u4e0b\u94bb&#xff0c;\u56db\u5206 CPU \u9ad8\u8fd8\u662f\u7b49\u963b\u585e\u3002<\/p>\n<p>CPU \u9ad8\u5f80\u4e0b\u627e&#034;\u7b97\u4ec0\u4e48&#034;&#xff0c;CPU \u4f4e\u5f80\u4e0b\u627e&#034;\u7b49\u4ec0\u4e48&#034;\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u5148\u6392\u6389\\&#8221;\u5047\u95ee\u9898\\&#8221;&#xff08;30% \u7684\u5751\u5728\u8fd9&#xff09;\u5f88\u591a\u6240\u8c13\\&#8221;\u6027\u80fd\u4e0a\u4e0d\u53bb\\&#8221;&#xff0c;\u5176\u5b9e\u662f\u538b\u6d4b\u672c\u8eab\u7684\u95ee\u9898\u3002\u8fd9\u4e00\u6b65\u4e0d\u5148\u505a&#xff0c;\u540e\u9762\u5168\u767d\u5e72\u3002\u68c0\u67e5\u70b9\u600e\u4e48\u770b\u5178\u578b\u75c7\u72b6\u538b\u6d4b\u673a\u81ea\u8eab\u74f6\u9888top\u3001CPU\u3001\u5185\u5b58\u3001\u7f51\u7edc\u538b\u6d4b\u673a CPU \u6253\u6ee1 \u2192 TPS \u662f\u538b\u6d4b\u673a\u7684\u4e0a\u9650&#xff0c;\u4e0d\u662f\u670d\u52a1\u7aef\u7684\u7aef\u53e3\u8017\u5c3dss -s\u3001netstatTIME_WAIT \u66b4\u6da8&#xff0c;Cannot assign requested address\u7f51\u7edc\u5e26\u5bbdiftop\u3001sar -n DEV<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11407,1002],"topic":[],"class_list":["post-99737","post","type-post","status-publish","format-standard","hentry","category-server","tag-11407","tag-1002"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6027\u80fd\u6d4b\u8bd5\u95ee\u9898\u6392\u67e5\u601d\u8def - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/99737.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6027\u80fd\u6d4b\u8bd5\u95ee\u9898\u6392\u67e5\u601d\u8def - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"1\u3001\u5148\u6392\u6389&quot;\u5047\u95ee\u9898&quot;&#xff08;30% \u7684\u5751\u5728\u8fd9&#xff09;\u5f88\u591a\u6240\u8c13&quot;\u6027\u80fd\u4e0a\u4e0d\u53bb&quot;&#xff0c;\u5176\u5b9e\u662f\u538b\u6d4b\u672c\u8eab\u7684\u95ee\u9898\u3002\u8fd9\u4e00\u6b65\u4e0d\u5148\u505a&#xff0c;\u540e\u9762\u5168\u767d\u5e72\u3002\u68c0\u67e5\u70b9\u600e\u4e48\u770b\u5178\u578b\u75c7\u72b6\u538b\u6d4b\u673a\u81ea\u8eab\u74f6\u9888top\u3001CPU\u3001\u5185\u5b58\u3001\u7f51\u7edc\u538b\u6d4b\u673a CPU \u6253\u6ee1 \u2192 TPS \u662f\u538b\u6d4b\u673a\u7684\u4e0a\u9650&#xff0c;\u4e0d\u662f\u670d\u52a1\u7aef\u7684\u7aef\u53e3\u8017\u5c3dss -s\u3001netstatTIME_WAIT \u66b4\u6da8&#xff0c;Cannot assign requested address\u7f51\u7edc\u5e26\u5bbdiftop\u3001sar -n DEV\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/99737.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-03T00:08:46+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/99737.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/99737.html\",\"name\":\"\u6027\u80fd\u6d4b\u8bd5\u95ee\u9898\u6392\u67e5\u601d\u8def - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-03T00:08:46+00:00\",\"dateModified\":\"2026-09-03T00:08:46+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/99737.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/99737.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/99737.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6027\u80fd\u6d4b\u8bd5\u95ee\u9898\u6392\u67e5\u601d\u8def\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6027\u80fd\u6d4b\u8bd5\u95ee\u9898\u6392\u67e5\u601d\u8def - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/99737.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6027\u80fd\u6d4b\u8bd5\u95ee\u9898\u6392\u67e5\u601d\u8def - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"1\u3001\u5148\u6392\u6389\"\u5047\u95ee\u9898\"&#xff08;30% \u7684\u5751\u5728\u8fd9&#xff09;\u5f88\u591a\u6240\u8c13\"\u6027\u80fd\u4e0a\u4e0d\u53bb\"&#xff0c;\u5176\u5b9e\u662f\u538b\u6d4b\u672c\u8eab\u7684\u95ee\u9898\u3002\u8fd9\u4e00\u6b65\u4e0d\u5148\u505a&#xff0c;\u540e\u9762\u5168\u767d\u5e72\u3002\u68c0\u67e5\u70b9\u600e\u4e48\u770b\u5178\u578b\u75c7\u72b6\u538b\u6d4b\u673a\u81ea\u8eab\u74f6\u9888top\u3001CPU\u3001\u5185\u5b58\u3001\u7f51\u7edc\u538b\u6d4b\u673a CPU \u6253\u6ee1 \u2192 TPS \u662f\u538b\u6d4b\u673a\u7684\u4e0a\u9650&#xff0c;\u4e0d\u662f\u670d\u52a1\u7aef\u7684\u7aef\u53e3\u8017\u5c3dss -s\u3001netstatTIME_WAIT \u66b4\u6da8&#xff0c;Cannot assign requested address\u7f51\u7edc\u5e26\u5bbdiftop\u3001sar -n DEV","og_url":"https:\/\/www.wsisp.com\/helps\/99737.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-03T00:08:46+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/99737.html","url":"https:\/\/www.wsisp.com\/helps\/99737.html","name":"\u6027\u80fd\u6d4b\u8bd5\u95ee\u9898\u6392\u67e5\u601d\u8def - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-03T00:08:46+00:00","dateModified":"2026-09-03T00:08:46+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/99737.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/99737.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/99737.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6027\u80fd\u6d4b\u8bd5\u95ee\u9898\u6392\u67e5\u601d\u8def"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/99737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=99737"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/99737\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=99737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=99737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=99737"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=99737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}