{"id":36696,"date":"2025-05-11T21:56:06","date_gmt":"2025-05-11T13:56:06","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/36696.html"},"modified":"2025-05-11T21:56:06","modified_gmt":"2025-05-11T13:56:06","slug":"o2oa%e7%bf%b1%e9%80%94%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%95%85%e9%9a%9c%e6%8e%92%e6%9f%a5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/36696.html","title":{"rendered":"O2OA(\u7ff1\u9014)\u670d\u52a1\u5668\u6545\u969c\u6392\u67e5"},"content":{"rendered":"<p>O2OA&#xff08;\u7ff1\u9014&#xff09;\u5f00\u53d1\u5e73\u53f0\u9488\u5bf9o2server\u670d\u52a1\u5668\u5728\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684\u65e0\u54cd\u5e94\u6216\u54cd\u5e94\u7f13\u6162\u7684\u95ee\u9898&#xff0c;\u6211\u4eec\u53ef\u4ee5\u4ece\u591a\u4e2a\u4e0d\u540c\u65b9\u5411\u8fdb\u884c\u6df1\u5165\u800c\u7cfb\u7edf\u7684\u6392\u67e5&#xff0c;\u4ee5\u786e\u4fdd\u80fd\u591f\u51c6\u786e\u8bc6\u522b\u5e76\u89e3\u51b3\u6839\u672c\u539f\u56e0\u3002<\/p>\n<h2><\/h2>\n<h3>\u5e94\u7528\u670d\u52a1\u5668\u65e5\u5fd7<\/h3>\n<p>\u5bf9\u4e8eo2server\u670d\u52a1\u5668\u6211\u4eec\u9996\u8981\u6392\u67e5\u7684\u662f\u670d\u52a1\u5668\u65e5\u5fd7\u3002<\/p>\n<p>\u670d\u52a1\u5668\u65e5\u5fd7\u5b58\u653e\u5728 o2server\u76ee\u5f55\u4e0b<\/p>\n<p>o2server\/logs\/out.log<\/p>\n<p>\u9996\u5148\u4ece\u8be5\u6587\u4ef6\u5b9a\u4f4d\u95ee\u9898\u3002\u8fd9\u91cc\u4f1a\u6eda\u52a8\u8bb0\u5f55\u6240\u6709\u670d\u52a1\u5668\u7684\u6d88\u606f&#xff0c;\u5305\u62ec\u9519\u8bef\u65e5\u5fd7\u4ee5\u53ca\u9519\u8bef\u5806\u6808\u3002\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u6211\u4eec\u4ece\u8fd9\u91cc\u5165\u624b\u6392\u67e5\u6545\u969c\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"out.log.png\" height=\"842\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511135603-6820ac73623f0.png\" width=\"1373\" \/><\/p>\n<p>\u6bd4\u5982\u8fd9\u91cc\u65e5\u5fd7\u663e\u793a\u5728\u5b9e\u73b0\u5355\u70b9\u767b\u9646\u8fc7\u7a0b\u4e2d\u8bbf\u95ee\u8fdc\u7a0b\u8ba4\u8bc1\u670d\u52a1\u5668\u8fd4\u56de400\u9519\u8bef&#xff0c;\u5bfc\u81f4\u5355\u70b9\u767b\u9646\u5931\u8d25\u3002<\/p>\n<h3>\u670d\u52a1\u5668\u78c1\u76d8\u7e41\u5fd9<\/h3>\n<p>iostat -dx 10 5<\/p>\n<p>iostat \u662f\u4e00\u4e2a\u7528\u4e8e\u76d1\u63a7\u7cfb\u7edf\u8f93\u5165\/\u8f93\u51fa\u8bbe\u5907\u548c CPU \u4f7f\u7528\u60c5\u51b5\u7684 Linux \u547d\u4ee4\u3002\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u5206\u6790\u78c1\u76d8\u6027\u80fd\u3001\u8bc6\u522b\u74f6\u9888\u5e76\u4f18\u5316\u7cfb\u7edf\u6027\u80fd\u3002<\/p>\n<p>\u5c24\u5176\u662f\u6570\u636e\u5e93\u670d\u52a1\u5668\u53ef\u80fd\u4f1a\u6709io\u7684\u95ee\u9898\u3002<\/p>\n<p>\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u6bcf 2 \u79d2\u663e\u793a\u4e00\u6b21\u6269\u5c55 I\/O \u7edf\u8ba1\u4fe1\u606f&#xff0c;\u5171\u663e\u793a 10 \u6b21\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"iostat.png\" height=\"476\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511135603-6820ac73c536a.png\" width=\"1433\" \/><\/p>\n<p>\u547d\u4ee4\u8f93\u51fa\u4e2d\u7684\u6700\u540e\u4e00\u5217 %util \u8868\u793a\u8bbe\u5907\u7684\u5229\u7528\u7387\u767e\u5206\u6bd4\u3002\u5b83\u6307\u7684\u662f\u5728\u62a5\u544a\u671f\u95f4\u8bbe\u5907\u5904\u4e8e\u5fd9\u788c\u72b6\u6001\u7684\u65f6\u95f4\u6bd4\u4f8b\u3002<\/p>\n<p>%util \u503c\u8303\u56f4\u4ece 0 \u5230 100\u3002 \u8fd9\u4e2a\u503c\u8d8a\u9ad8&#xff0c;\u8868\u793a\u8bbe\u5907\u5728\u62a5\u544a\u671f\u95f4\u8d8a\u9891\u7e41\u5730\u5904\u7406 I\/O \u8bf7\u6c42\u3002\u5982\u679c\u8be5\u503c\u63a5\u8fd1 100%&#xff0c;\u8bf4\u660e\u8bbe\u5907\u51e0\u4e4e\u4e00\u76f4\u5728\u5fd9\u4e8e\u5904\u7406\u8bfb\u5199\u8bf7\u6c42&#xff0c;\u53ef\u80fd\u5b58\u5728 I\/O \u74f6\u9888\u3002 \u5982\u679c %util \u503c\u8f83\u4f4e&#xff08;\u4f8b\u5982\u4f4e\u4e8e 50%&#xff09;&#xff0c;\u5219\u8868\u793a\u8bbe\u5907\u7684\u4f7f\u7528\u7387\u8f83\u4f4e&#xff0c;\u53ef\u80fd\u672a\u5145\u5206\u5229\u7528\u3002<\/p>\n<h3>\u68c0\u67e5\u7cfb\u7edf\u8d1f\u8f7d<\/h3>\n<p>\u4f7f\u7528 top \u547d\u4ee4\u67e5\u770b CPU\u3001\u5185\u5b58\u548c\u8fdb\u7a0b\u7684\u4f7f\u7528\u60c5\u51b5&#xff0c;\u68c0\u67e5\u662f\u5426\u6709\u9ad8\u8d1f\u8f7d\u7684\u8fdb\u7a0b\u3002<\/p>\n<p>top<\/p>\n<p>top \u547d\u4ee4\u662f\u7528\u4e8e\u5b9e\u65f6\u76d1\u63a7 Linux \u7cfb\u7edf\u6027\u80fd\u7684\u5de5\u5177&#xff0c;\u663e\u793a\u7cfb\u7edf\u7684 CPU \u4f7f\u7528\u7387\u3001\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\u548c\u8fd0\u884c\u4e2d\u7684\u8fdb\u7a0b\u3002\u4ee5\u4e0b\u662f top \u547d\u4ee4\u8f93\u51fa\u4e2d\u5404\u90e8\u5206\u7684\u8be6\u7ec6\u89e3\u91ca&#xff1a;<\/p>\n<p>top \u547d\u4ee4\u8f93\u51fa\u4e2d\u7684 load average \u8868\u793a\u7cfb\u7edf\u5728\u7279\u5b9a\u65f6\u95f4\u6bb5\u5185\u7684\u5e73\u5747\u8d1f\u8f7d&#xff0c;\u5b83\u901a\u5e38\u5305\u62ec\u4e09\u4e2a\u6570\u503c&#xff0c;\u5206\u522b\u8868\u793a\u8fc7\u53bb 1 \u5206\u949f\u30015 \u5206\u949f\u548c 15 \u5206\u949f\u7684\u5e73\u5747\u8d1f\u8f7d\u3002<\/p>\n<p>\u8868\u793a\u5728\u8fc7\u53bb\u7684\u65f6\u95f4\u6bb5\u5185&#xff0c;\u5e73\u5747\u6709\u591a\u5c11\u4e2a\u8fdb\u7a0b\u6b63\u5728\u7b49\u5f85 CPU \u5904\u7406\u6216\u6b63\u5728\u4f7f\u7528 CPU\u3002\u8fd9\u4e2a\u503c\u8d8a\u9ad8&#xff0c;\u8868\u793a\u7cfb\u7edf\u7684\u8d1f\u8f7d\u8d8a\u91cd\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"top.png\" height=\"758\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511135604-6820ac7404376.png\" width=\"960\" \/><\/p>\n<p>\u5982\u679c load average \u9ad8\u4f46 CPU \u4f7f\u7528\u7387\u76f8\u5bf9\u4f4e&#xff0c;\u53ef\u80fd\u8868\u793a I\/O \u963b\u585e&#xff0c;\u8fdb\u7a0b\u5728\u7b49\u5f85 I\/O \u64cd\u4f5c\u5b8c\u6210\u3002<\/p>\n<p>\u5982\u679c load average \u7684\u503c\u8d85\u8fc7 CPU \u6838\u5fc3\u6570\u91cf&#xff0c;\u8bf4\u660e\u7cfb\u7edf\u53ef\u80fd\u5904\u4e8e\u9ad8\u8d1f\u8f7d\u72b6\u6001&#xff0c;\u53ef\u80fd\u5b58\u5728\u6027\u80fd\u95ee\u9898\u3002<\/p>\n<h3>\u67e5\u770b\u7cfb\u7edf\u65e5\u5fd7&#xff1a;<\/h3>\n<p>\u68c0\u67e5 \/var\/log\/syslog \u6216 \/var\/log\/messages \u4e2d\u7684\u9519\u8bef\u4fe1\u606f&#xff0c;\u67e5\u770b\u662f\u5426\u6709\u5f02\u5e38\u8bb0\u5f55\u3002<\/p>\n<p>sudo less \/var\/log\/syslog<\/p>\n<p>\u6216\u8005&#xff1a;<\/p>\n<p>sudo less \/var\/log\/messages<\/p>\n<p>\u5728 less \u4e2d&#xff0c;\u6309 \/ \u952e&#xff0c;\u7136\u540e\u8f93\u5165 error \u6216 fail&#xff0c;\u6309 Enter \u641c\u7d22\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"less.png\" height=\"748\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511135604-6820ac74340e4.png\" width=\"947\" \/><\/p>\n<h3>\u68c0\u67e5\u78c1\u76d8\u7a7a\u95f4<\/h3>\n<p>\u4f7f\u7528 df -h \u547d\u4ee4\u67e5\u770b\u78c1\u76d8\u4f7f\u7528\u60c5\u51b5&#xff0c;\u786e\u4fdd\u6ca1\u6709\u78c1\u76d8\u5df2\u6ee1\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"df.png\" height=\"310\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511135604-6820ac74694f3.png\" width=\"561\" \/><\/p>\n<h3>\u68c0\u67e5\u670d\u52a1\u5668\u542f\u52a8\u811a\u672c<\/h3>\n<p>o2server\u7684\u542f\u52a8\u811a\u672c\u4f4d\u4e8eo2server\u76ee\u5f55\u4e0b<\/p>\n<p>o2server\/start_linux.sh<\/p>\n<p>setsid ${current_dir}\/jvm\/linux_java11\/bin\/java -javaagent:${current_dir}\/console.jar -server -Djava.awt.headless&#061;true -Xms2g -Xmx4g -Duser.timezone&#061;GMT&#043;08 -XX:&#043;HeapDumpOnOutOfMemoryError -XX:&#043;UnlockExperimentalVMOptions -XX:&#043;EnableJVMCI &#8211;module-path&#061;${current_dir}\/commons\/module_java11 &#8211;upgrade-module-path&#061;${current_dir}\/commons\/module_java11\/compiler.jar:${current_dir}\/commons\/module_java11\/compiler-management.jar -jar ${current_dir}\/console.jar<\/p>\n<p>\u9ed8\u8ba4\u7684\u542f\u52a8\u811a\u672c\u8bbe\u7f6e\u542f\u52a8\u811a\u672c\u8bbe\u7f6e\u4e3a-Xms2g -Xmx4g \u8bf7\u68c0\u67e5\u662f\u5426\u6709\u5176\u4ed6\u53c2\u6570\u5f71\u54cd\u4e86\u670d\u52a1\u5668\u3002<\/p>\n<h3>jvm\u5b9e\u9645\u5185\u5b58\u5360\u7528<\/h3>\n<p>\u5982\u679c\u6000\u7591\u670d\u52a1\u5668\u5185\u5b58\u6709\u6cc4\u6f0f\u9996\u5148\u786e\u8ba4jvm\u5185\u5b58\u8ddf\u8e2a\u60c5\u51b5\u3002<\/p>\n<p>\u5728top\u4e2d\u663e\u793a\u5217&#034;RES&#034;\u5e76\u975e\u5b9e\u9645\u4f7f\u7528\u7684\u5185\u5b58&#xff0c;\u662fjvm\u7533\u8bf7\u7684\u5185\u5b58\u3002<\/p>\n<p>\u542f\u7528\u5185\u5b58\u8ddf\u8e2a\u9700\u8981\u5728\u670d\u52a1\u5668\u542f\u52a8\u811a\u672c\u4e2d\u624b\u5de5\u589e\u52a0\u53c2\u6570:<\/p>\n<p>-XX:NativeMemoryTracking&#061;summary<\/p>\n<p>\u6bd4\u5982\u6dfb\u52a0\u540e\u5982\u4e0b:<\/p>\n<p>setsid ${current_dir}\/jvm\/linux_java11\/bin\/java -javaagent:${current_dir}\/console.jar -XX:NativeMemoryTracking&#061;summary -server -Djava.awt.headless&#061;true -Xms2g -Xmx4g -Duser.timezone&#061;GMT&#043;08 -XX:&#043;HeapDumpOnOutOfMemoryError -XX:&#043;UnlockExperimentalVMOptions -XX:&#043;EnableJVMCI &#8211;module-path&#061;${current_dir}\/commons\/module_java11 &#8211;upgrade-module-path&#061;${current_dir}\/commons\/module_java11\/compiler.jar:${current_dir}\/commons\/module_java11\/compiler-management.jar -jar ${current_dir}\/console.jar<\/p>\n<p>\u91cd\u542f\u540e\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4:<\/p>\n<p>jcmd &lt;pid&gt; VM.native_memory summary<\/p>\n<p>\u663e\u793a\u5185\u5b58\u5360\u7528\u60c5\u51b5&#xff0c;\u5982\u679c\u6ca1\u6709\u5b89\u88c5jvm&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528o2server\u81ea\u5e26jvm\u6267\u884c\u3002<\/p>\n<p>\u4e3a\u5f53\u524do2server\u670d\u52a1\u5668\u8fdb\u7a0b\u53f7&#xff0c;\u53ef\u4ee5\u901a\u8fc7top\u8fdb\u884c\u5b9a\u4f4d&#xff0c;\u670d\u52a1\u5668\u76ee\u5f55\u4e0b\u7684pid.log\u6587\u4ef6\u4e5f\u8bb0\u5f55\u4e86\u5f53\u524d\u670d\u52a1\u5668\u7684\u8fdb\u7a0b\u53f7\u3002<\/p>\n<p>jcmd &lt;pid&gt; VM.native_memory summary<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"native_memory.png\" height=\"939\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511135604-6820ac7479225.png\" width=\"758\" \/><\/p>\n<p>reserved \u663e\u793a\u7684\u662f\u7533\u8bf7\u7684\u5185\u5b58&#xff0c;\u4e5f\u5c31\u662ftop\u547d\u4ee4\u4e2d\u770b\u5230\u7684&#034;RES&#034; committed \u662fjvm\u5f53\u524d\u5b9e\u9645\u4f7f\u7528\u7684\u5185\u5b58\u3002<\/p>\n<p>\u56fe\u4e2d\u7684Java Heap \u5373\u5bf9\u5185\u5b58&#xff0c;\u4e00\u822c\u5c31\u662f\u6700\u5927\u7684\u5185\u5b58\u5f00\u9500\u90e8\u5206\u3002<\/p>\n<h3>\u5806\u5185\u5b58\u5206\u6790<\/h3>\n<p>\u5982\u679c\u6000\u7591\u5806\u5185\u5b58\u6cc4\u6f0f&#xff0c;\u90a3\u4e48\u5c31\u8981\u8fdb\u884c\u5806\u5185\u5b58\u5206\u6790\u3002 \u9996\u5148\u8981\u751f\u6210 heap Profiling(hprof)\u6587\u4ef6\u3002<\/p>\n<p>ctl -hd<\/p>\n<p>o2server\u670d\u52a1\u5668\u63d0\u4f9b\u4e86\u4e00\u4e2a\u63a7\u5236\u53f0\u547d\u4ee4\u53ef\u4ee5\u5feb\u901f\u751f\u6210hprof\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"ctl_hd.png\" height=\"466\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511135604-6820ac7492df8.png\" width=\"836\" \/><\/p>\n<p>\u4e5f\u53ef\u4ee5\u901a\u8fc7jvm\u63d0\u4f9b\u7684jmap\u6765\u751f\u6210 heap Profiling \u6587\u4ef6\u3002<\/p>\n<p>jmap -dump:format&#061;b&#xff0c;file&#061;heap.hprof &lt;pid&gt; <\/p>\n<p>\u5982\u679c\u6ca1\u6709\u5b89\u88c5jvm\u53ef\u4ee5\u4f7f\u7528o2server\u81ea\u5e26\u7684jvm\u8fd0\u884cjmap<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"jmap.png\" height=\"68\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511135604-6820ac74b63ea.png\" width=\"641\" \/><\/p>\n<p>\u751f\u6210hprof\u6587\u4ef6\u540e\u53ef\u4ee5\u901a\u8fc7\u5206\u6790\u5de5\u5177\u8fdb\u884c\u5206\u6790<\/p>\n<p>Memory Analyzer (MAT)<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"mat.png\" height=\"779\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511135604-6820ac74bf993.png\" width=\"1289\" \/><\/p>\n<p>\u8bf7\u6ce8\u610f\u8fd9\u91cc\u4ec5\u4ec5\u662f&#034;\u6000\u7591&#034;\u786e\u8ba4\u8fd8\u9700\u8981\u8fdb\u4e00\u6b65\u5206\u6790\u3002<\/p>\n<h3>\u7ebf\u7a0b\u5206\u6790<\/h3>\n<p>\u5982\u679c\u6000\u7591\u7ebf\u7a0b\u6267\u884c\u65f6\u95f4\u8fc7\u957f&#xff0c;\u6216\u8005\u53d1\u751f\u6b7b\u9501&#xff0c;\u90a3\u4e48\u5c31\u8981\u8fdb\u884c\u7ebf\u7a0b\u5206\u6790\u3002 \u9996\u5148\u8981\u751f\u6210\u7ebf\u7a0b\u8f6c\u50a8\u6587\u4ef6\u3002<\/p>\n<p>ctl -td<\/p>\n<p>o2server\u670d\u52a1\u5668\u63d0\u4f9b\u4e86\u4e00\u4e2a\u63a7\u5236\u53f0\u547d\u4ee4\u53ef\u4ee5\u5feb\u901f\u751f\u6210\u7ebf\u7a0b\u8f6c\u50a8\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"ctl_td.png\" height=\"487\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511135605-6820ac7518bff.png\" width=\"872\" \/><\/p>\n<p>\u4e5f\u53ef\u4ee5\u901a\u8fc7jvm\u81ea\u5e26\u7684jstack\u6765\u751f\u6210\u8f6c\u50a8\u6587\u4ef6<\/p>\n<p>jstack &lt;pid&gt; &gt; \/tmp\/threaddump.txt<\/p>\n<p>\u5982\u679c\u6ca1\u6709\u5b89\u88c5jvm\u53ef\u4ee5\u4f7f\u7528o2server\u81ea\u5e26\u7684jvm\u8fd0\u884cjstack<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"jstack.png\" height=\"64\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511135605-6820ac753d18f.png\" width=\"565\" \/><\/p>\n<p>\u60a8\u9700\u8981\u95f4\u9694\u51e0\u79d2\u53cd\u590d\u6267\u884c\u591a\u6b21&#xff0c;\u8fd9\u6837\u4f1a\u751f\u6210\u591a\u4e2a\u7ebf\u7a0b\u8f6c\u50a8\u6587\u4ef6&#xff0c;\u76ee\u7684\u662f\u5728\u540e\u7eed\u6b65\u9aa4\u53ef\u4ee5\u5bf9\u6bd4\u51e0\u4e2a\u8f6c\u50a8\u6587\u4ef6\u4e2d\u7684\u7ebf\u7a0b\u4fe1\u606f&#xff0c;\u5224\u65ad\u662f\u5426\u6709\u957f\u65f6\u95f4\u8fd0\u884c\u7684\u7ebf\u7a0b\u3002<\/p>\n<p>\u751f\u6210\u540e\u7684\u591a\u4e2a\u6587\u4ef6\u53ef\u4ee5\u7edf\u4e00\u7531\u5206\u6790\u5de5\u5177\u6253\u5f00\u8fdb\u884c\u5206\u6790.<\/p>\n<p>IBM Thread and Monitor Dump Analyzer for Java (TMDA)<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"tmda.png\" height=\"953\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511135605-6820ac75467a1.png\" width=\"1867\" \/><\/p>\n<p>\u5bf9\u4e8e\u6b7b\u9501\u6709\u76f4\u63a5\u7684DeadLock\u663e\u793a\u3002\u5176\u4ed6\u5219\u9700\u8981\u6839\u636e\u4e1a\u52a1\u8fdb\u4e00\u6b65\u5206\u6790\u3002<\/p>\n<h3>nginx\u6545\u969c\u6392\u67e5<\/h3>\n<p>nginx\u8bbf\u95ee\u65e5\u5fd7<\/p>\n<p>\/var\/log\/nginx\/access.log<\/p>\n<p>nginx\u9519\u8bef\u65e5\u5fd7<\/p>\n<p>\/var\/log\/nginx\/error.log<\/p>\n<p>\u901a\u8fc7\u4ece\u4ee5\u4e0a\u591a\u4e2a\u65b9\u5411\u8fdb\u884c\u7ec6\u81f4\u7684\u6392\u67e5\u548c\u4f18\u5316&#xff0c;\u6211\u4eec\u53ef\u4ee5\u6709\u6548\u5730\u89e3\u51b3o2server\u670d\u52a1\u5668\u5728\u8fd0\u884c\u4e2d\u51fa\u73b0\u7684\u65e0\u54cd\u5e94\u6216\u54cd\u5e94\u7f13\u6162\u7684\u95ee\u9898&#xff0c;\u63d0\u9ad8\u5176\u7a33\u5b9a\u6027\u548c\u6027\u80fd\u8868\u73b0\u3002<\/p>\n<p>\u611f\u5174\u8da3\u7684\u8bfb\u8005\u8bf7\u5173\u6ce8&#xff1a;http:\/\/www.o2oa.net<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb729\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf6\u6b21\u3002O2OA\uff08\u7ff1\u9014\uff09\u5f00\u53d1\u5e73\u53f0\u9488\u5bf9o2server\u670d\u52a1\u5668\u5728\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684\u65e0\u54cd\u5e94\u6216\u54cd\u5e94\u7f13\u6162\u95ee\u9898\uff0c\u63d0\u4f9b\u4e86\u5168\u9762\u7684\u6392\u67e5\u548c\u4f18\u5316\u65b9\u6848\u3002\u9996\u5148\uff0c\u901a\u8fc7\u68c0\u67e5\u670d\u52a1\u5668\u65e5\u5fd7\uff08\u5982o2server\/logs\/out.log\uff09\u6765\u5b9a\u4f4d\u95ee\u9898\uff0c\u4f8b\u5982\u5355\u70b9\u767b\u5f55\u5931\u8d25\u7b49\u3002\u5176\u6b21\uff0c\u4f7f\u7528iostat\u547d\u4ee4\u76d1\u63a7\u78c1\u76d8I\/O\u6027\u80fd\uff0c\u8bc6\u522b\u53ef\u80fd\u7684I\/O\u74f6\u9888\u3002\u6b64\u5916\uff0c\u5229\u7528top\u547d\u4ee4\u67e5\u770b\u7cfb\u7edf\u8d1f\u8f7d\uff0c\u68c0\u67e5\u9ad8\u8d1f\u8f7d\u8fdb\u7a0b\uff0c\u5e76\u901a\u8fc7\u7cfb\u7edf\u65e5\u5fd7\uff08\u5982\/var\/log\/syslog\uff09\u67e5\u627e\u5f02\u5e38\u8bb0\u5f55\u3002\u78c1\u76d8\u7a7a\u95f4\u4f7f\u7528\u60c5\u51b5\u53ef\u901a\u8fc7df -h\u547d\u4ee4\u68c0\u67e5\uff0c\u786e\u4fdd\u6ca1\u6709\u78c1\u76d8\u6ee1\u7684\u60c5\u51b5\u3002<\/p>\n","protected":false},"author":2,"featured_media":36684,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,43,44],"topic":[],"class_list":["post-36696","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>O2OA(\u7ff1\u9014)\u670d\u52a1\u5668\u6545\u969c\u6392\u67e5 - \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\/36696.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"O2OA(\u7ff1\u9014)\u670d\u52a1\u5668\u6545\u969c\u6392\u67e5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb729\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf6\u6b21\u3002O2OA\uff08\u7ff1\u9014\uff09\u5f00\u53d1\u5e73\u53f0\u9488\u5bf9o2server\u670d\u52a1\u5668\u5728\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684\u65e0\u54cd\u5e94\u6216\u54cd\u5e94\u7f13\u6162\u95ee\u9898\uff0c\u63d0\u4f9b\u4e86\u5168\u9762\u7684\u6392\u67e5\u548c\u4f18\u5316\u65b9\u6848\u3002\u9996\u5148\uff0c\u901a\u8fc7\u68c0\u67e5\u670d\u52a1\u5668\u65e5\u5fd7\uff08\u5982o2server\/logs\/out.log\uff09\u6765\u5b9a\u4f4d\u95ee\u9898\uff0c\u4f8b\u5982\u5355\u70b9\u767b\u5f55\u5931\u8d25\u7b49\u3002\u5176\u6b21\uff0c\u4f7f\u7528iostat\u547d\u4ee4\u76d1\u63a7\u78c1\u76d8I\/O\u6027\u80fd\uff0c\u8bc6\u522b\u53ef\u80fd\u7684I\/O\u74f6\u9888\u3002\u6b64\u5916\uff0c\u5229\u7528top\u547d\u4ee4\u67e5\u770b\u7cfb\u7edf\u8d1f\u8f7d\uff0c\u68c0\u67e5\u9ad8\u8d1f\u8f7d\u8fdb\u7a0b\uff0c\u5e76\u901a\u8fc7\u7cfb\u7edf\u65e5\u5fd7\uff08\u5982\/var\/log\/syslog\uff09\u67e5\u627e\u5f02\u5e38\u8bb0\u5f55\u3002\u78c1\u76d8\u7a7a\u95f4\u4f7f\u7528\u60c5\u51b5\u53ef\u901a\u8fc7df -h\u547d\u4ee4\u68c0\u67e5\uff0c\u786e\u4fdd\u6ca1\u6709\u78c1\u76d8\u6ee1\u7684\u60c5\u51b5\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/36696.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-11T13:56:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511135603-6820ac73623f0.png\" \/>\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\/36696.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/36696.html\",\"name\":\"O2OA(\u7ff1\u9014)\u670d\u52a1\u5668\u6545\u969c\u6392\u67e5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-11T13:56:06+00:00\",\"dateModified\":\"2025-05-11T13:56:06+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/36696.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/36696.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36696.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"O2OA(\u7ff1\u9014)\u670d\u52a1\u5668\u6545\u969c\u6392\u67e5\"}]},{\"@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":"O2OA(\u7ff1\u9014)\u670d\u52a1\u5668\u6545\u969c\u6392\u67e5 - \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\/36696.html","og_locale":"zh_CN","og_type":"article","og_title":"O2OA(\u7ff1\u9014)\u670d\u52a1\u5668\u6545\u969c\u6392\u67e5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb729\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf6\u6b21\u3002O2OA\uff08\u7ff1\u9014\uff09\u5f00\u53d1\u5e73\u53f0\u9488\u5bf9o2server\u670d\u52a1\u5668\u5728\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684\u65e0\u54cd\u5e94\u6216\u54cd\u5e94\u7f13\u6162\u95ee\u9898\uff0c\u63d0\u4f9b\u4e86\u5168\u9762\u7684\u6392\u67e5\u548c\u4f18\u5316\u65b9\u6848\u3002\u9996\u5148\uff0c\u901a\u8fc7\u68c0\u67e5\u670d\u52a1\u5668\u65e5\u5fd7\uff08\u5982o2server\/logs\/out.log\uff09\u6765\u5b9a\u4f4d\u95ee\u9898\uff0c\u4f8b\u5982\u5355\u70b9\u767b\u5f55\u5931\u8d25\u7b49\u3002\u5176\u6b21\uff0c\u4f7f\u7528iostat\u547d\u4ee4\u76d1\u63a7\u78c1\u76d8I\/O\u6027\u80fd\uff0c\u8bc6\u522b\u53ef\u80fd\u7684I\/O\u74f6\u9888\u3002\u6b64\u5916\uff0c\u5229\u7528top\u547d\u4ee4\u67e5\u770b\u7cfb\u7edf\u8d1f\u8f7d\uff0c\u68c0\u67e5\u9ad8\u8d1f\u8f7d\u8fdb\u7a0b\uff0c\u5e76\u901a\u8fc7\u7cfb\u7edf\u65e5\u5fd7\uff08\u5982\/var\/log\/syslog\uff09\u67e5\u627e\u5f02\u5e38\u8bb0\u5f55\u3002\u78c1\u76d8\u7a7a\u95f4\u4f7f\u7528\u60c5\u51b5\u53ef\u901a\u8fc7df -h\u547d\u4ee4\u68c0\u67e5\uff0c\u786e\u4fdd\u6ca1\u6709\u78c1\u76d8\u6ee1\u7684\u60c5\u51b5\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/36696.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-11T13:56:06+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250511135603-6820ac73623f0.png"}],"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\/36696.html","url":"https:\/\/www.wsisp.com\/helps\/36696.html","name":"O2OA(\u7ff1\u9014)\u670d\u52a1\u5668\u6545\u969c\u6392\u67e5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-11T13:56:06+00:00","dateModified":"2025-05-11T13:56:06+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/36696.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/36696.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/36696.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"O2OA(\u7ff1\u9014)\u670d\u52a1\u5668\u6545\u969c\u6392\u67e5"}]},{"@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\/36696","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=36696"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/36696\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/36684"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=36696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=36696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=36696"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=36696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}