{"id":39578,"date":"2025-05-24T07:46:11","date_gmt":"2025-05-23T23:46:11","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/39578.html"},"modified":"2025-05-24T07:46:11","modified_gmt":"2025-05-23T23:46:11","slug":"%e9%98%bf%e9%87%8c%e4%ba%91ecs-8%e6%a0%b8-16g-%e5%86%85%e5%ad%98-%e8%a3%85%e6%9c%89redis6-%e5%88%86%e9%85%8d%e4%ba%863g%e5%86%85%e5%ad%98%ef%bc%8c%e5%92%8c2%e4%b8%aatomcat-%e6%af%8f%e4%b8%aatomcat-4g","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/39578.html","title":{"rendered":"\u963f\u91cc\u4e91ecs 8\u6838 16G \u5185\u5b58 \u88c5\u6709redis6 \u5206\u914d\u4e863G\u5185\u5b58\uff0c\u548c2\u4e2atomcat \u6bcf\u4e2atomcat 4G \u670d\u52a1\u5668\u53cd\u5e94\u8fdf\u949d\uff0c\u5982\u4f55\u786e\u8ba4\u4e0d\u662fredis\u7684\u95ee\u9898"},"content":{"rendered":"<p>\u6211\u4eec\u7ecf\u5e38\u7528redis \u4f46\u9047\u5230tomcat timeout\u7684\u65f6\u5019&#xff0c;\u5982\u4f55\u786e\u8ba4\u4e0d\u662fredis\u7684\u95ee\u9898\u3002 \u4e0d\u80fd\u56e0\u4e3a\u8fd9\u4e2a\u518d\u53bb\u641e\u4e2aredis \u538b\u529b\u6d4b\u8bd5\u3002\u6709\u6ca1\u6709\u66f4\u7701\u52b2\u7684\u65b9\u6cd5\u6765\u786e\u8ba4\u4e0d\u662fredis\u7684\u95ee\u9898<\/p>\n<p>\u4ee5\u4e0b\u662f\u9488\u5bf9 \u963f\u91cc\u4e91 ECS&#xff08;8\u683816G&#xff0c;Redis 6\u5206\u914d3G\u5185\u5b58&#xff0c;2\u4e2aTomcat\u5404\u5206\u914d4G&#xff09;\u53cd\u5e94\u8fdf\u949d \u7684 \u786e\u5b9a\u6027\u6392\u67e5\u6d41\u7a0b&#xff0c;\u6240\u6709\u6307\u6807\u5747\u63d0\u4f9b\u660e\u786e\u7684\u9608\u503c\u548c\u5224\u65ad\u6807\u51c6&#xff1a;<\/p>\n<hr \/>\n<h4>\u4e00\u3001\u7cfb\u7edf\u8d44\u6e90\u74f6\u9888\u6392\u67e5<\/h4>\n<h5>1. \u5185\u5b58\u68c0\u67e5<\/h5>\n<ul>\n<li>\u547d\u4ee4&#xff1a;<span class=\"token function\">free<\/span> <span class=\"token parameter variable\">-h<\/span>        <span class=\"token comment\"># \u67e5\u770b\u7269\u7406\u5185\u5b58\u548cSwap\u4f7f\u7528<\/span><br \/>\nsar <span class=\"token parameter variable\">-r<\/span> <span class=\"token number\">1<\/span> <span class=\"token number\">5<\/span>     <span class=\"token comment\"># \u6bcf\u79d2\u91c7\u6837\u5185\u5b58\u4f7f\u7528&#xff0c;\u6301\u7eed5\u6b21<\/span>\n <\/li>\n<li>\u5173\u952e\u6307\u6807&#xff1a;\n<ul>\n<li>\u7269\u7406\u5185\u5b58\u5269\u4f59&#xff1a;\u82e5 available &lt; 1G&#xff0c;\u7cfb\u7edf\u53ef\u80fd\u9891\u7e41\u4f7f\u7528 Swap\u3002<\/li>\n<li>Swap\u4f7f\u7528&#xff1a;si&#xff08;Swap In&#xff09;\u548c so&#xff08;Swap Out&#xff09;\u6301\u7eed &gt; 0&#xff0c;\u8868\u660e\u5185\u5b58\u4e0d\u8db3&#xff0c;\u76f4\u63a5\u62d6\u6162\u6027\u80fd\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>2. CPU\u68c0\u67e5<\/h5>\n<ul>\n<li>\u547d\u4ee4&#xff1a;<span class=\"token function\">top<\/span> <span class=\"token parameter variable\">-H<\/span> <span class=\"token parameter variable\">-p<\/span> <span class=\"token operator\">&lt;<\/span>tomcat_pid<span class=\"token operator\">&gt;<\/span>  <span class=\"token comment\"># \u67e5\u770bTomcat\u7ebf\u7a0bCPU\u5360\u7528<\/span><br \/>\nmpstat <span class=\"token parameter variable\">-P<\/span> ALL <span class=\"token number\">1<\/span>         <span class=\"token comment\"># \u67e5\u770b\u6bcf\u4e2a\u6838\u5fc3\u7684CPU\u5229\u7528\u7387<\/span>\n <\/li>\n<li>\u5173\u952e\u6307\u6807&#xff1a;\n<ul>\n<li>\u603b\u4f53CPU\u4f7f\u7528\u7387&#xff1a;\u82e5 %us&#xff08;\u7528\u6237\u6001&#xff09;\u6216 %sy&#xff08;\u7cfb\u7edf\u6001&#xff09;\u6301\u7eed &gt; 70%&#xff0c;\u8868\u660eCPU\u9971\u548c\u3002<\/li>\n<li>\u5355\u4e2a\u6838\u5fc3\u4f7f\u7528\u7387&#xff1a;\u82e5\u67d0\u4e2a\u6838\u5fc3\u6301\u7eed 100%&#xff0c;\u53ef\u80fd\u5b58\u5728\u5355\u7ebf\u7a0b\u70ed\u70b9\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>3. \u78c1\u76d8 I\/O \u68c0\u67e5<\/h5>\n<ul>\n<li>\u547d\u4ee4&#xff1a;iostat <span class=\"token parameter variable\">-x<\/span> <span class=\"token number\">1<\/span>  <span class=\"token comment\"># \u67e5\u770b\u8bbe\u5907\u7ea7I\/O\u6307\u6807&#xff08;\u9700\u5b89\u88c5sysstat&#xff09;<\/span>\n <\/li>\n<li>\u5173\u952e\u6307\u6807&#xff1a;\n<ul>\n<li>%util&#xff08;\u78c1\u76d8\u5229\u7528\u7387&#xff09;&#xff1a;\n<ul>\n<li>&lt; 60%&#xff1a;\u6b63\u5e38\u3002<\/li>\n<li>60%~80%&#xff1a;\u6f5c\u5728\u74f6\u9888\u3002<\/li>\n<li>&gt; 80%&#xff1a;\u78c1\u76d8\u8fc7\u8f7d&#xff0c;I\/O\u961f\u5217\u5806\u79ef\u3002<\/li>\n<\/ul>\n<\/li>\n<li>await&#xff08;I\/O\u5e73\u5747\u7b49\u5f85\u65f6\u95f4&#xff09;&#xff1a;\n<ul>\n<li>&lt; 10ms&#xff1a;\u6b63\u5e38&#xff08;SSD&#xff09;\u3002<\/li>\n<li>&gt; 20ms&#xff1a;\u5f02\u5e38&#xff08;\u673a\u68b0\u76d8 &gt; 5ms \u5373\u9700\u8b66\u60d5&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li>svctm&#xff08;\u670d\u52a1\u65f6\u95f4&#xff09;&#xff1a;\n<ul>\n<li>SSD\u5e94 &lt; 2ms&#xff0c;\u673a\u68b0\u76d8 &lt; 10ms\u3002\u82e5 await \u226b svctm&#xff0c;\u8868\u660e\u961f\u5217\u5806\u79ef\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>4. \u7f51\u7edc\u68c0\u67e5<\/h5>\n<ul>\n<li>\u547d\u4ee4&#xff1a;sar <span class=\"token parameter variable\">-n<\/span> DEV <span class=\"token number\">1<\/span>    <span class=\"token comment\"># \u67e5\u770b\u7f51\u5361\u541e\u5410\u91cf<\/span><br \/>\nss <span class=\"token parameter variable\">-s<\/span>           <span class=\"token comment\"># \u7edf\u8ba1TCP\u8fde\u63a5\u72b6\u6001<\/span>\n <\/li>\n<li>\u5173\u952e\u6307\u6807&#xff1a;\n<ul>\n<li>\u5e26\u5bbd\u5360\u7528&#xff1a;\u82e5 rxkB\/s \u6216 txkB\/s \u63a5\u8fd1\u7f51\u5361\u4e0a\u9650&#xff08;\u5982\u5343\u5146\u7f51\u5361\u2248125MB\/s&#xff09;&#xff0c;\u8868\u660e\u5e26\u5bbd\u9971\u548c\u3002<\/li>\n<li>TCP\u91cd\u4f20&#xff1a;netstat -s | grep retransmit \u82e5\u91cd\u4f20\u7387 &gt; 0.1%&#xff08;\u5982\u603b\u91cd\u4f20\u6570\/\u603b\u5305\u6570&#xff09;&#xff0c;\u7f51\u7edc\u4e0d\u7a33\u5b9a\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h4>\u4e8c\u3001Redis \u786e\u5b9a\u6027\u6392\u67e5<\/h4>\n<h5>1. \u5185\u5b58\u538b\u529b<\/h5>\n<ul>\n<li>\u547d\u4ee4&#xff1a;redis-cli info memory <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-E<\/span> <span class=\"token string\">&#034;used_memory_human|maxmemory_human|mem_fragmentation_ratio|evicted_keys&#034;<\/span>\n <\/li>\n<li>\u5173\u952e\u6307\u6807&#xff1a;\n<ul>\n<li>\u5185\u5b58\u4f7f\u7528&#xff1a;\u82e5 used_memory \u2265 2.8G&#xff08;\u63a5\u8fd13G&#xff09;&#xff0c;\u4f1a\u89e6\u53d1\u6dd8\u6c70\u7b56\u7565&#xff0c;evicted_keys &gt; 0 \u8868\u793a\u9891\u7e41\u6dd8\u6c70\u6570\u636e\u3002<\/li>\n<li>\u5185\u5b58\u788e\u7247\u7387&#xff1a;mem_fragmentation_ratio &gt; 1.5 \u6216 &lt; 0.9 \u9700\u91cd\u542f\u6e05\u7406\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>2. \u5ef6\u8fdf\u68c0\u6d4b<\/h5>\n<ul>\n<li>\u547d\u4ee4&#xff1a;redis-cli <span class=\"token parameter variable\">&#8211;latency<\/span> <span class=\"token parameter variable\">-h<\/span> <span class=\"token operator\">&lt;<\/span>host<span class=\"token operator\">&gt;<\/span> <span class=\"token parameter variable\">-p<\/span> <span class=\"token operator\">&lt;<\/span>port<span class=\"token operator\">&gt;<\/span>  <span class=\"token comment\"># \u6301\u7eed\u6d4b\u8bd5\u5ef6\u8fdf<\/span>\n <\/li>\n<li>\u6b63\u5e38\u8303\u56f4&#xff1a;\n<ul>\n<li>\u672c\u5730\u5ef6\u8fdf&#xff1a;99% \u8bf7\u6c42\u5e94 &lt; 1ms&#xff08;\u82e5 &gt; 5ms&#xff0c;Redis\u53ef\u80fd\u963b\u585e&#xff09;\u3002<\/li>\n<li>\u7f51\u7edc\u5ef6\u8fdf&#xff1a;\u8de8\u673a\u623f\u6216\u516c\u7f51\u8bbf\u95ee\u65f6&#xff0c;\u5ef6\u8fdf\u5e94 &lt; 10ms\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>3. \u6162\u67e5\u8be2\u4e0e\u963b\u585e<\/h5>\n<ul>\n<li>\u547d\u4ee4&#xff1a;redis-cli slowlog get <span class=\"token number\">10<\/span>      <span class=\"token comment\"># \u67e5\u770b\u6700\u8fd110\u6761\u6162\u67e5\u8be2<\/span><br \/>\nredis-cli info commandstats   <span class=\"token comment\"># \u7edf\u8ba1\u547d\u4ee4\u8017\u65f6<\/span>\n <\/li>\n<li>\u9608\u503c&#xff1a;\n<ul>\n<li>\u6162\u67e5\u8be2\u9608\u503c&#xff1a;\u9ed8\u8ba4 10ms&#xff0c;\u82e5\u8bb0\u5f55\u5927\u91cf GET\/SET \u7b49\u7b80\u5355\u547d\u4ee4&#xff0c;\u8868\u660eRedis\u8d1f\u8f7d\u8fc7\u9ad8\u3002<\/li>\n<li>\u963b\u585e\u547d\u4ee4&#xff1a;\u68c0\u67e5\u662f\u5426\u6709 KEYS\u3001FLUSHALL\u3001HGETALL \u5927Key\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>4. \u6301\u4e45\u5316\u5f71\u54cd<\/h5>\n<ul>\n<li>\u547d\u4ee4&#xff1a;redis-cli info persistence <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-E<\/span> <span class=\"token string\">&#034;rdb_last_bgsave_status|aof_last_bgrewrite_status|aof_rewrite_in_progress&#034;<\/span>\n <\/li>\n<li>\u5173\u952e\u70b9&#xff1a;\n<ul>\n<li>\u82e5 aof_rewrite_in_progress:1&#xff0c;\u8868\u793a\u6b63\u5728\u91cd\u5199AOF&#xff0c;\u6b64\u65f6\u4f1a\u5927\u91cf\u6d88\u8017\u78c1\u76d8I\/O\u548cCPU\u3002<\/li>\n<li>\u68c0\u67e5 rdb_last_bgsave_status:ok&#xff0c;\u82e5\u4e3a err&#xff0c;\u6301\u4e45\u5316\u5931\u8d25\u53ef\u80fd\u5bfc\u81f4\u5185\u5b58\u6cc4\u6f0f\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h4>\u4e09\u3001Tomcat \u786e\u5b9a\u6027\u6392\u67e5<\/h4>\n<h5>1. JVM \u5185\u5b58\u4e0eGC<\/h5>\n<ul>\n<li>\u547d\u4ee4&#xff1a;jstat <span class=\"token parameter variable\">-gc<\/span> <span class=\"token operator\">&lt;<\/span>tomcat_pid<span class=\"token operator\">&gt;<\/span> <span class=\"token number\">1000<\/span>  <span class=\"token comment\"># \u6bcf\u79d2\u8f93\u51faGC\u72b6\u6001<\/span>\n <\/li>\n<li>\u5173\u952e\u6307\u6807&#xff1a;\n<ul>\n<li>\u5806\u5185\u5b58&#xff1a;\u8001\u5e74\u4ee3&#xff08;OU&#xff09;\u82e5 &gt; 90%&#xff0c;\u9891\u7e41 Full GC\u3002<\/li>\n<li>Full GC \u9891\u7387&#xff1a;\u82e5 &gt; 1\u6b21\/\u5206\u949f&#xff0c;\u6216\u5355\u6b21 Full GC \u65f6\u95f4 &gt; 1\u79d2&#xff0c;\u4e25\u91cd\u62d6\u6162\u5e94\u7528\u3002<\/li>\n<li>GC \u603b\u8017\u65f6&#xff1a;\u82e5 FGCT&#xff08;Full GC\u603b\u65f6\u95f4&#xff09;\u5360\u5e94\u7528\u8fd0\u884c\u65f6\u95f4 &gt; 5%&#xff0c;\u9700\u4f18\u5316\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>2. \u7ebf\u7a0b\u963b\u585e<\/h5>\n<ul>\n<li>\u547d\u4ee4&#xff1a;jstack <span class=\"token operator\">&lt;<\/span>tomcat_pid<span class=\"token operator\">&gt;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token string\">&#034;BLOCKED&#034;<\/span> <span class=\"token parameter variable\">-c<\/span>  <span class=\"token comment\"># \u7edf\u8ba1\u963b\u585e\u7ebf\u7a0b\u6570<\/span>\n <\/li>\n<li>\u9608\u503c&#xff1a;\u82e5\u963b\u585e\u7ebf\u7a0b\u6570 &gt; \u6d3b\u8dc3\u7ebf\u7a0b\u6570\u7684 10%&#xff0c;\u5b58\u5728\u9501\u7ade\u4e89\u6216\u5916\u90e8\u4f9d\u8d56\u963b\u585e\u3002<\/li>\n<\/ul>\n<h5>3. \u5916\u90e8\u4f9d\u8d56\u68c0\u67e5<\/h5>\n<ul>\n<li>\u6570\u636e\u5e93\u8fde\u63a5\u6c60&#xff1a;\n<ul>\n<li>\u68c0\u67e5 maxActive \u662f\u5426\u8fc7\u5c0f&#xff0c;\u5bfc\u81f4\u7b49\u5f85\u8fde\u63a5\u3002<\/li>\n<li>\u4f7f\u7528 netstat -ant | grep &lt;db_port&gt; | wc -l \u7edf\u8ba1\u6570\u636e\u5e93\u8fde\u63a5\u6570\u662f\u5426\u8d85\u9650\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5916\u90e8 API \u8c03\u7528&#xff1a;\n<ul>\n<li>\u5728\u4ee3\u7801\u4e2d\u6dfb\u52a0\u65e5\u5fd7&#xff0c;\u8bb0\u5f55\u8c03\u7528\u8017\u65f6&#xff0c;\u82e5 &gt; 500ms&#xff0c;\u9700\u4f18\u5316\u6216\u7194\u65ad\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h4>\u56db\u3001\u5feb\u901f\u9a8c\u8bc1 Redis \u662f\u5426\u5f71\u54cd<\/h4>\n<h5>1. \u77ed\u65f6\u95f4\u7981\u7528 Redis<\/h5>\n<ul>\n<li>\u64cd\u4f5c&#xff1a;systemctl stop redis   <span class=\"token comment\"># \u505c\u6b62Redis<\/span>\n <\/li>\n<li>\u89c2\u5bdf&#xff1a;\u82e5 Tomcat \u54cd\u5e94\u901f\u5ea6\u6062\u590d&#xff0c;\u95ee\u9898\u5728 Redis&#xff1b;\u5426\u5219\u7ee7\u7eed\u6392\u67e5 Tomcat\u3002<\/li>\n<\/ul>\n<h5>2. \u6a21\u62df Redis \u7a7a\u8d1f\u8f7d<\/h5>\n<ul>\n<li>\u64cd\u4f5c&#xff1a;redis-cli FLUSHALL    <span class=\"token comment\"># \u6e05\u7a7a\u6570\u636e&#xff08;\u614e\u7528&#xff01;&#xff09;<\/span><br \/>\nredis-cli CONFIG SET maxmemory 1GB  <span class=\"token comment\"># \u4e34\u65f6\u964d\u4f4e\u5185\u5b58\u9650\u5236<\/span>\n <\/li>\n<li>\u89c2\u5bdf&#xff1a;\u82e5\u6027\u80fd\u6539\u5584&#xff0c;\u539f Redis \u4f7f\u7528\u65b9\u5f0f\u6709\u74f6\u9888&#xff08;\u5982\u5927Key\u3001\u9ad8\u6dd8\u6c70\u7387&#xff09;\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4>\u4e94\u3001\u7ed3\u8bba\u4e0e\u89e3\u51b3\u65b9\u6848<\/h4>\n<h5>\u82e5\u786e\u8ba4 Redis \u65e0\u95ee\u9898&#xff08;\u6ee1\u8db3\u4ee5\u4e0b\u6240\u6709\u6761\u4ef6&#xff09;&#xff1a;<\/h5>\n<li>Redis \u5185\u5b58\u4f7f\u7528 &lt; 2.5G&#xff0c;\u65e0\u9891\u7e41\u6dd8\u6c70&#xff08;evicted_keys&#061;0&#xff09;\u3002<\/li>\n<li>Redis \u5ef6\u8fdf &lt; 1ms&#xff0c;\u65e0\u6162\u67e5\u8be2\u3002<\/li>\n<li>\u7cfb\u7edf\u8d44\u6e90&#xff08;CPU &lt; 70%&#xff0c;\u78c1\u76d8 %util &lt; 60%&#xff0c;\u65e0 Swap&#xff09;\u3002<\/li>\n<h5>\u95ee\u9898\u5927\u6982\u7387\u5728 Tomcat&#xff1a;<\/h5>\n<ul>\n<li>JVM \u4f18\u5316&#xff1a;<span class=\"token comment\"># Tomcat \u7684 catalina.sh \u8c03\u6574\u53c2\u6570<\/span><br \/>\n<span class=\"token assign-left variable\">JAVA_OPTS<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;-Xms3g -Xmx3g -XX:&#043;UseG1GC -XX:MaxGCPauseMillis&#061;200&#034;<\/span>\n <\/li>\n<li>\u7ebf\u7a0b\u6c60\u8c03\u6574&#xff1a;\n<ul>\n<li>\u589e\u5927 maxThreads&#xff08;\u5982 800&#xff09;&#xff0c;\u51cf\u5c11\u961f\u5217\u7b49\u5f85\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u4ee3\u7801\u4f18\u5316&#xff1a;\n<ul>\n<li>\u907f\u514d\u540c\u6b65\u963b\u585e&#xff0c;\u4f7f\u7528\u5f02\u6b65\u6216\u7f13\u5b58&#xff08;\u5982 Redis&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>\u82e5\u7cfb\u7edf\u8d44\u6e90\u4e0d\u8db3&#xff1a;<\/h5>\n<ul>\n<li>\u964d\u7ea7\u914d\u7f6e&#xff1a;\n<ul>\n<li>Tomcat \u5806\u5185\u5b58\u4ece 4G \u964d\u4e3a 3G&#xff0c;\u817e\u51fa 2G \u7ed9\u7cfb\u7edf\u548c Redis\u3002<\/li>\n<li>\u5347\u7ea7 ECS \u89c4\u683c\u81f3 8\u683832G\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e19\u6b21\uff0c\u6536\u85cf22\u6b21\u3002\u6211\u4eec\u7ecf\u5e38\u7528redis \u4f46\u9047\u5230tomcat timeout\u7684\u65f6\u5019\uff0c\u5982\u4f55\u786e\u8ba4\u4e0d\u662fredis\u7684\u95ee\u9898\u3002\u4e0d\u80fd\u56e0\u4e3a\u8fd9\u4e2a\u518d\u53bb\u641e\u4e2aredis \u538b\u529b\u6d4b\u8bd5\u3002\u6709\u6ca1\u6709\u66f4\u7701\u52b2\u7684\u65b9\u6cd5\u6765\u786e\u8ba4\u4e0d\u662fredis\u7684\u95ee\u9898_\u963f\u91cc\u4e91\u670d\u52a1\u5668ecs\u5168\u65b9\u4f4d\u89e3\u6790\u4e0e\u963f\u91cc\u4e91\u670d\u52a1\u5668cpu\u6027\u80fd\u8be6\u89e3<\/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":[99,105,223,96],"topic":[],"class_list":["post-39578","post","type-post","status-publish","format-standard","hentry","category-server","tag-java","tag-redis","tag-tomcat","tag-96"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u963f\u91cc\u4e91ecs 8\u6838 16G \u5185\u5b58 \u88c5\u6709redis6 \u5206\u914d\u4e863G\u5185\u5b58\uff0c\u548c2\u4e2atomcat \u6bcf\u4e2atomcat 4G \u670d\u52a1\u5668\u53cd\u5e94\u8fdf\u949d\uff0c\u5982\u4f55\u786e\u8ba4\u4e0d\u662fredis\u7684\u95ee\u9898 - \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\/39578.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u963f\u91cc\u4e91ecs 8\u6838 16G \u5185\u5b58 \u88c5\u6709redis6 \u5206\u914d\u4e863G\u5185\u5b58\uff0c\u548c2\u4e2atomcat \u6bcf\u4e2atomcat 4G \u670d\u52a1\u5668\u53cd\u5e94\u8fdf\u949d\uff0c\u5982\u4f55\u786e\u8ba4\u4e0d\u662fredis\u7684\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e19\u6b21\uff0c\u6536\u85cf22\u6b21\u3002\u6211\u4eec\u7ecf\u5e38\u7528redis \u4f46\u9047\u5230tomcat timeout\u7684\u65f6\u5019\uff0c\u5982\u4f55\u786e\u8ba4\u4e0d\u662fredis\u7684\u95ee\u9898\u3002\u4e0d\u80fd\u56e0\u4e3a\u8fd9\u4e2a\u518d\u53bb\u641e\u4e2aredis \u538b\u529b\u6d4b\u8bd5\u3002\u6709\u6ca1\u6709\u66f4\u7701\u52b2\u7684\u65b9\u6cd5\u6765\u786e\u8ba4\u4e0d\u662fredis\u7684\u95ee\u9898_\u963f\u91cc\u4e91\u670d\u52a1\u5668ecs\u5168\u65b9\u4f4d\u89e3\u6790\u4e0e\u963f\u91cc\u4e91\u670d\u52a1\u5668cpu\u6027\u80fd\u8be6\u89e3\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/39578.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-23T23:46:11+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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/39578.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/39578.html\",\"name\":\"\u963f\u91cc\u4e91ecs 8\u6838 16G \u5185\u5b58 \u88c5\u6709redis6 \u5206\u914d\u4e863G\u5185\u5b58\uff0c\u548c2\u4e2atomcat \u6bcf\u4e2atomcat 4G \u670d\u52a1\u5668\u53cd\u5e94\u8fdf\u949d\uff0c\u5982\u4f55\u786e\u8ba4\u4e0d\u662fredis\u7684\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-23T23:46:11+00:00\",\"dateModified\":\"2025-05-23T23:46:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/39578.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/39578.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/39578.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u963f\u91cc\u4e91ecs 8\u6838 16G \u5185\u5b58 \u88c5\u6709redis6 \u5206\u914d\u4e863G\u5185\u5b58\uff0c\u548c2\u4e2atomcat \u6bcf\u4e2atomcat 4G \u670d\u52a1\u5668\u53cd\u5e94\u8fdf\u949d\uff0c\u5982\u4f55\u786e\u8ba4\u4e0d\u662fredis\u7684\u95ee\u9898\"}]},{\"@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":"\u963f\u91cc\u4e91ecs 8\u6838 16G \u5185\u5b58 \u88c5\u6709redis6 \u5206\u914d\u4e863G\u5185\u5b58\uff0c\u548c2\u4e2atomcat \u6bcf\u4e2atomcat 4G \u670d\u52a1\u5668\u53cd\u5e94\u8fdf\u949d\uff0c\u5982\u4f55\u786e\u8ba4\u4e0d\u662fredis\u7684\u95ee\u9898 - \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\/39578.html","og_locale":"zh_CN","og_type":"article","og_title":"\u963f\u91cc\u4e91ecs 8\u6838 16G \u5185\u5b58 \u88c5\u6709redis6 \u5206\u914d\u4e863G\u5185\u5b58\uff0c\u548c2\u4e2atomcat \u6bcf\u4e2atomcat 4G \u670d\u52a1\u5668\u53cd\u5e94\u8fdf\u949d\uff0c\u5982\u4f55\u786e\u8ba4\u4e0d\u662fredis\u7684\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e19\u6b21\uff0c\u6536\u85cf22\u6b21\u3002\u6211\u4eec\u7ecf\u5e38\u7528redis \u4f46\u9047\u5230tomcat timeout\u7684\u65f6\u5019\uff0c\u5982\u4f55\u786e\u8ba4\u4e0d\u662fredis\u7684\u95ee\u9898\u3002\u4e0d\u80fd\u56e0\u4e3a\u8fd9\u4e2a\u518d\u53bb\u641e\u4e2aredis \u538b\u529b\u6d4b\u8bd5\u3002\u6709\u6ca1\u6709\u66f4\u7701\u52b2\u7684\u65b9\u6cd5\u6765\u786e\u8ba4\u4e0d\u662fredis\u7684\u95ee\u9898_\u963f\u91cc\u4e91\u670d\u52a1\u5668ecs\u5168\u65b9\u4f4d\u89e3\u6790\u4e0e\u963f\u91cc\u4e91\u670d\u52a1\u5668cpu\u6027\u80fd\u8be6\u89e3","og_url":"https:\/\/www.wsisp.com\/helps\/39578.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-23T23:46:11+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/39578.html","url":"https:\/\/www.wsisp.com\/helps\/39578.html","name":"\u963f\u91cc\u4e91ecs 8\u6838 16G \u5185\u5b58 \u88c5\u6709redis6 \u5206\u914d\u4e863G\u5185\u5b58\uff0c\u548c2\u4e2atomcat \u6bcf\u4e2atomcat 4G \u670d\u52a1\u5668\u53cd\u5e94\u8fdf\u949d\uff0c\u5982\u4f55\u786e\u8ba4\u4e0d\u662fredis\u7684\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-23T23:46:11+00:00","dateModified":"2025-05-23T23:46:11+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/39578.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/39578.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/39578.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u963f\u91cc\u4e91ecs 8\u6838 16G \u5185\u5b58 \u88c5\u6709redis6 \u5206\u914d\u4e863G\u5185\u5b58\uff0c\u548c2\u4e2atomcat \u6bcf\u4e2atomcat 4G \u670d\u52a1\u5668\u53cd\u5e94\u8fdf\u949d\uff0c\u5982\u4f55\u786e\u8ba4\u4e0d\u662fredis\u7684\u95ee\u9898"}]},{"@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\/39578","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=39578"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/39578\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=39578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=39578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=39578"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=39578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}