{"id":97411,"date":"2026-08-29T13:40:59","date_gmt":"2026-08-29T05:40:59","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/97411.html"},"modified":"2026-08-29T13:40:59","modified_gmt":"2026-08-29T05:40:59","slug":"java-%e7%a8%8b%e5%ba%8f%e5%91%98%e7%ac%ac-46-%e9%98%b6%e6%ae%b514%ef%bc%9a%e5%a4%a7%e6%a8%a1%e5%9e%8b%e8%b0%83%e7%94%a8%e9%93%be%e8%b7%af%e8%bf%bd%e8%b8%aa%ef%bc%8cskywalking-%e6%8e%92%e6%9f%a5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/97411.html","title":{"rendered":"Java \u7a0b\u5e8f\u5458\u7b2c 46 \u9636\u6bb514\uff1a\u5927\u6a21\u578b\u8c03\u7528\u94fe\u8def\u8ffd\u8e2a\uff0cSkyWalking \u6392\u67e5\u7ebf\u4e0a\u6027\u80fd\uff0c\u5b58\u50a8\u9009\u578b\u4e0e\u6027\u80fdESH2MySQL\u540e\u7aef\u5bf9\u6bd4\u4e0e\u8c03\u4f18"},"content":{"rendered":"<h2 style=\"background-color:transparent;margin-left:0.0001pt;margin-right:0px\"><\/h2>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1042\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260829054055-6a9270e7b06a4.png\" width=\"1667\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0\">\u524d\u51e0\u7bc7\u6211\u4eec\u90fd\u5728&#034;\u7528&#034; SkyWalking&#xff1a;\u57cb\u70b9\u3001\u5173\u8054\u3001\u544a\u8b66\u3002\u4f46\u5f53\u4f60\u771f\u628a\u5927\u6a21\u578b\u94fe\u8def\u5168\u91cf\u63a5\u8fdb\u751f\u4ea7&#xff0c;\u7b2c\u4e00\u4e2a\u88ab\u51b2\u57ae\u7684\u5f80\u5f80\u4e0d\u662f Agent&#xff0c;\u800c\u662f OAP \u80cc\u540e\u7684\u5b58\u50a8\u3002\u5927\u6a21\u578b Trace \u6709\u51e0\u4e2a\u7279\u70b9&#xff1a;Span \u591a&#xff08;\u4e09\u5c42 &#043; \u6d41\u5f0f&#xff09;\u3001Tag \u548c\u65e5\u5fd7\u4f53\u91cf\u5927\u3001\u5199\u5165\u5cf0\u503c\u9ad8&#xff08;\u5e76\u53d1\u95ee\u7b54&#xff09;\u3002\u9009\u9519\u5b58\u50a8&#xff0c;OAP \u4f1a\u51fa\u73b0\u5199\u5165\u5806\u79ef\u3001\u67e5\u8be2\u8d85\u65f6&#xff0c;\u6700\u7ec8\u76d1\u63a7\u81ea\u5df1\u5148\u6302\u4e86\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">SkyWalking \u901a\u8fc7 &#096;storage.selector&#096; \u652f\u6301\u591a\u79cd\u540e\u7aef&#xff0c;\u5b98\u65b9\u4e3b\u63a8 Elasticsearch&#xff0c;\u4e5f\u652f\u6301 H2&#xff08;\u5355\u673a\u6f14\u793a&#xff09;\u3001MySQL\u3001PostgreSQL\u3001BanyanDB \u7b49\u3002\u672c\u7bc7\u5bf9\u6bd4 H2 \/ MySQL \/ ES \u4e09\u7c7b\u6700\u5e38\u7528\u7684\u540e\u7aef&#xff0c;\u7ed9\u51fa\u914d\u7f6e\u5b9e\u6218\u3001\u6027\u80fd\u6570\u636e\u3001\u8c03\u4f18\u8981\u70b9&#xff0c;\u5e2e\u4f60\u4e3a\u5927\u6a21\u578b\u573a\u666f\u9009\u5bf9\u5b58\u50a8\u3002<\/p>\n<li>SkyWalking \u540e\u7aef\u7684\u5b58\u50a8\u89d2\u8272<\/li>\n<li>\u4e09\u79cd\u5b58\u50a8\u540e\u7aef\u6982\u89c8&#xff1a;H2 \/ MySQL \/ ES<\/li>\n<li>\u90e8\u7f72\u914d\u7f6e\u5b9e\u6218&#xff08;\u4e09\u79cd&#xff09;<\/li>\n<li>\u6027\u80fd\u5bf9\u6bd4\u4e0e\u538b\u6d4b\u6570\u636e<\/li>\n<li>ES \u8c03\u4f18\u5b9e\u6218<\/li>\n<li>\u5b58\u50a8\u5bb9\u91cf\u4e0e TTL \u7ba1\u7406<\/li>\n<li>\u6700\u4f73\u5b9e\u8df5\u4e0e\u8e29\u5751<\/li>\n<h3 style=\"margin-left:.0001pt;margin-right:0\"><span style=\"color:#4f81bd\"><span style=\"color:#2878c8\">1. SkyWalking \u540e\u7aef\u7684\u5b58\u50a8\u89d2\u8272<\/span><\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1042\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260829054056-6a9270e8c3158.png\" width=\"1667\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0\">OAP \u662f\u65e0\u72b6\u6001\u8ba1\u7b97\u8282\u70b9&#xff0c;\u6240\u6709\u539f\u59cb\u6570\u636e&#xff08;Trace\u3001\u6307\u6807\u3001\u62d3\u6251\u3001\u65e5\u5fd7&#xff09;\u90fd\u843d\u5728\u5916\u63a5\u5b58\u50a8\u3002\u5b58\u50a8\u627f\u62c5\u4e09\u4ef6\u4e8b&#xff1a;<\/p>\n<ul>\n<li>\u5199\u5165&#xff1a;\u63a2\u9488\u4e0a\u62a5\u7684 Span \/ \u6307\u6807\u7ecf OAP \u805a\u5408\u540e\u6279\u91cf\u5199\u5e93&#xff0c;\u5cf0\u503c\u7531\u5199\u5165\u541e\u5410\u51b3\u5b9a\u3002<\/li>\n<li>\u67e5\u8be2&#xff1a;UI \u7684&#034;\u8ffd\u8e2a&#034;&#034;\u62d3\u6251&#034;&#034;\u6307\u6807&#034;\u67e5\u8be2&#xff0c;\u7531\u968f\u673a\u8bfb\u6027\u80fd\u51b3\u5b9a\u3002<\/li>\n<li>\u4fdd\u7559&#xff1a;\u5386\u53f2\u6570\u636e\u6309 TTL \u6eda\u52a8\u5220\u9664&#xff0c;\u7531\u5b58\u50a8\u7684\u5220\u9664\u6548\u7387\u4e0e\u5bb9\u91cf\u51b3\u5b9a\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0\">\u5927\u6a21\u578b\u573a\u666f\u5bf9\u5b58\u50a8\u7684\u538b\u529b\u96c6\u4e2d\u5728\u5199\u5165&#xff08;\u6d41\u5f0f Span \u9ad8\u9891&#xff09;\u548c\u5bb9\u91cf&#xff08;\u65e5\u5fd7 &#043; Tag \u591a&#xff09;\u3002\u56e0\u6b64\u9009\u578b\u7684\u6838\u5fc3\u6307\u6807\u662f&#xff1a;\u5199\u5165\u541e\u5410\u3001\u5355\u6761\u67e5\u8be2\u5ef6\u8fdf\u3001\u6c34\u5e73\u6269\u5c55\u80fd\u529b\u3001\u8fd0\u7ef4\u6210\u672c\u3002<\/p>\n<h3 style=\"margin-left:.0001pt;margin-right:0\"><span style=\"color:#4f81bd\"><span style=\"color:#2878c8\">2. \u4e09\u79cd\u5b58\u50a8\u540e\u7aef\u6982\u89c8&#xff1a;H2 \/ MySQL \/ ES<\/span><\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1042\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260829054057-6a9270e977b8a.png\" width=\"1667\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0\">**H2**&#xff1a;\u5185\u5d4c\u6587\u4ef6\u6570\u636e\u5e93&#xff0c;\u96f6\u4f9d\u8d56&#xff0c;OAP \u9ed8\u8ba4\u3002\u4f18\u70b9\u662f\u5f00\u7bb1\u5373\u7528&#xff0c;\u9002\u5408\u672c\u5730\u8c03\u8bd5\u548c\u6f14\u793a\u3002\u7f3a\u70b9\u662f\u5b8c\u5168\u4e0d\u652f\u6301\u6c34\u5e73\u6269\u5c55&#xff0c;\u5199\u5165\u5e76\u53d1\u4e00\u9ad8\u5c31\u9501\u8868&#xff0c;\u4e14\u91cd\u542f\u6709\u6570\u636e\u635f\u574f\u98ce\u9669\u3002\u751f\u4ea7\u7981\u7528\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">**MySQL**&#xff1a;\u5173\u7cfb\u578b&#xff0c;\u56e2\u961f\u719f\u6089\u3001\u8fd0\u7ef4\u7b80\u5355\u3002\u4f18\u70b9\u662f\u4e0d\u7528\u5f15\u5165\u65b0\u7ec4\u4ef6&#xff0c;\u5df2\u6709 DBA \u4f53\u7cfb\u3002\u7f3a\u70b9\u662f SkyWalking \u7684\u65f6\u5e8f\u6a21\u578b&#xff08;\u6bcf\u79d2\u4e0a\u4e07\u6761 Span&#xff09;\u5bf9 MySQL \u6781\u4e0d\u53cb\u597d&#xff1a;\u5355\u8868\u884c\u6570\u7206\u70b8\u3001\u4e8c\u7ea7\u7d22\u5f15\u7ef4\u62a4\u91cd\u3001\u6279\u91cf\u63d2\u5165\u548c\u8303\u56f4\u5220\u9664\u90fd\u6162\u3002\u4ec5\u9002\u5408\u4e2d\u5c0f\u89c4\u6a21&#xff08;\u65e5 Trace \u91cf\u767e\u4e07\u7ea7\u4ee5\u4e0b&#xff09;\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">**Elasticsearch**&#xff1a;\u5206\u5e03\u5f0f\u641c\u7d22\u5f15\u64ce&#xff0c;SkyWalking \u5b98\u65b9\u63a8\u8350\u751f\u4ea7\u540e\u7aef\u3002\u4f18\u70b9\u662f\u5199\u5165\u541e\u5410\u6781\u9ad8&#xff08;LSM &#043; \u6279\u91cf&#xff09;\u3001\u6c34\u5e73\u6269\u5c55\u597d\u3001\u6309\u65f6\u95f4\u5efa\u7d22\u5f15\u5929\u7136\u9002\u914d TTL \u6eda\u52a8\u3002\u7f3a\u70b9\u662f\u9700\u8981\u72ec\u7acb\u7ef4\u62a4 ES \u96c6\u7fa4&#xff0c;\u5185\u5b58\u5360\u7528\u5927&#xff0c;\u67e5\u8be2\u9700\u8981\u61c2 DSL\u3002\u5927\u6a21\u578b\u5927\u89c4\u6a21\u94fe\u8def\u9996\u9009\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7b80\u5355\u5bf9\u6bd4&#xff1a;<\/p>\n<table align=\"center\" border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color:#2e5a8a;border-color:black;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:white\">\u7ef4\u5ea6<\/span><\/p>\n<\/td>\n<td style=\"background-color:#2e5a8a;border-color:black;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:white\">H2<\/span><\/p>\n<\/td>\n<td style=\"background-color:#2e5a8a;border-color:black;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:white\">MySQL<\/span><\/p>\n<\/td>\n<td style=\"background-color:#2e5a8a;border-color:black;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:white\">Elasticsearch<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:black;vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">&#8212;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">&#8212;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">&#8212;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">&#8212;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:black;vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u90e8\u7f72\u590d\u6742\u5ea6<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6781\u4f4e<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4f4e<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e2d\u9ad8<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:black;vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5199\u5165\u541e\u5410<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4f4e<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e2d<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u9ad8<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:black;vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6c34\u5e73\u6269\u5c55<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e0d\u652f\u6301<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5f31&#xff08;\u5206\u5e93\u9ebb\u70e6&#xff09;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5f3a&#xff08;\u5206\u7247&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:black;vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u67e5\u8be2\u5ef6\u8fdf<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4f4e&#xff08;\u91cf\u5c0f&#xff09;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e2d<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4f4e&#xff08;\u91cf\u5927\u4e5f\u7a33&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:black;vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u9002\u5408\u89c4\u6a21<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6f14\u793a<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u767e\u4e07 Trace\/\u65e5<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5343\u4e07\u7ea7&#043;\/\u65e5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:black;vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u8fd0\u7ef4\u6210\u672c<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u51e0\u4e4e\u65e0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4f4e<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e2d\u9ad8<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 style=\"margin-left:.0001pt;margin-right:0\"><span style=\"color:#4f81bd\"><span style=\"color:#2878c8\">3. \u90e8\u7f72\u914d\u7f6e\u5b9e\u6218&#xff08;\u4e09\u79cd&#xff09;<\/span><\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0\">\u6240\u6709\u5b58\u50a8\u901a\u8fc7 &#096;config\/application.yml&#096; \u7684 &#096;storage.selector&#096; \u5207\u6362\u3002\u4e0b\u9762\u5206\u522b\u7ed9\u51fa\u914d\u7f6e\u7247\u6bb5\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">H2&#xff08;\u9ed8\u8ba4&#xff0c;\u4ec5\u6f14\u793a&#xff09;&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"background-color:#1e1e1e\"><span style=\"color:#dddddd\">storage:<br \/>\n\u00a0 selector: ${SW_STORAGE:h2}<br \/>\n\u00a0 h2:<br \/>\n\u00a0\u00a0\u00a0 driver: org.h2.jdbcx.JdbcDataSource<br \/>\n\u00a0\u00a0\u00a0 url: jdbc:h2:mem:skywalking-oap-db<br \/>\n\u00a0\u00a0\u00a0 user: sa<br \/>\n\u00a0\u00a0\u00a0 maxPoolSize: 10<\/span><\/span><br \/>\n\u00a0<\/p>\n<p style=\"margin-left:0;margin-right:0\">MySQL&#xff08;\u9700\u5148\u5efa\u5e93\u5e76\u6267\u884c &#096;db-scripts\/mysql.sql&#096;&#xff09;&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"background-color:#1e1e1e\"><span style=\"color:#dddddd\">storage:<br \/>\n\u00a0 selector: ${SW_STORAGE:mysql}<br \/>\n\u00a0 mysql:<br \/>\n\u00a0\u00a0\u00a0 properties:<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0 jdbcUrl: ${SW_JDBC_URL:&#034;jdbc:mysql:\/\/mysql:3306\/sw?rewriteBatchedStatements&#061;true&#034;}<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0 dataSource.user: ${SW_DATASOURCE_USER:root}<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0 dataSource.password: ${SW_DATASOURCE_PASSWORD:root}<br \/>\n\u00a0\u00a0\u00a0 maxPoolSize: 50<\/span><\/span><br \/>\n\u00a0<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u6ce8\u610f &#096;rewriteBatchedStatements&#061;true&#096; \u5f88\u5173\u952e&#xff0c;\u5b83\u8ba9 MySQL \u628a\u6279\u91cf\u63d2\u5165\u5408\u5e76&#xff0c;\u5199\u5165\u6027\u80fd\u53ef\u63d0\u5347\u6570\u500d\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">Elasticsearch&#xff08;\u63a8\u8350\u751f\u4ea7&#xff09;&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"background-color:#1e1e1e\"><span style=\"color:#dddddd\">storage:<br \/>\n\u00a0 selector: ${SW_STORAGE:elasticsearch}<br \/>\n\u00a0 elasticsearch:<br \/>\n\u00a0\u00a0\u00a0 clusterNodes: ${SW_ES_CLUSTER_NODES:es:9200}<br \/>\n\u00a0\u00a0\u00a0 protocol: ${SW_ES_PROTOCOL:http}<br \/>\n\u00a0\u00a0\u00a0 user: ${SW_ES_USER:&#034;&#034;}<br \/>\n\u00a0\u00a0\u00a0 password: ${SW_ES_PASSWORD:&#034;&#034;}<br \/>\n\u00a0\u00a0\u00a0 indexShardsNumber: ${SW_ES_INDEX_SHARDS_NUMBER:3}<br \/>\n\u00a0\u00a0\u00a0 indexReplicasNumber: ${SW_ES_INDEX_REPLICAS_NUMBER:1}<br \/>\n\u00a0\u00a0\u00a0 # \u5927\u6a21\u578b\u573a\u666f\u5efa\u8bae\u8c03\u5927\u6279\u91cf\u5199\u5165<br \/>\n\u00a0\u00a0\u00a0 bulkActions: ${SW_ES_BULK_ACTIONS:2000}<br \/>\n\u00a0\u00a0\u00a0 bulkSize: ${SW_ES_BULK_SIZE:20}<br \/>\n\u00a0\u00a0\u00a0 flushInterval: ${SW_ES_FLUSH_INTERVAL:10}<\/span><\/span><br \/>\n\u00a0<\/p>\n<p style=\"margin-left:0;margin-right:0\">&#096;bulkActions&#096; \/ &#096;bulkSize&#096; \/ &#096;flushInterval&#096; \u63a7\u5236 OAP \u5411 ES \u6279\u91cf\u5199\u5165\u7684\u8282\u594f&#xff0c;\u662f\u5927\u6a21\u578b\u9ad8\u5199\u5165\u573a\u666f\u7684\u9996\u8981\u8c03\u4f18\u70b9\u3002<\/p>\n<h3 style=\"margin-left:.0001pt;margin-right:0\"><span style=\"color:#4f81bd\"><span style=\"color:#2878c8\">4. \u6027\u80fd\u5bf9\u6bd4\u4e0e\u538b\u6d4b\u6570\u636e<\/span><\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0\">\u4ee5\u4e0b\u4e3a\u540c\u6784\u538b\u6d4b&#xff08;\u5355 OAP\u3001\u6a21\u62df\u5927\u6a21\u578b\u6d41\u5f0f Trace&#xff0c;\u6bcf\u6761 Trace \u542b 4 \u4e2a Span &#043; 1 \u6761\u65e5\u5fd7&#xff09;\u7684\u8fd1\u4f3c\u53c2\u8003\u503c&#xff0c;\u5b9e\u9645\u53d6\u51b3\u4e8e\u673a\u5668\u89c4\u683c&#xff1a;<\/p>\n<table align=\"center\" border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color:#2e5a8a;border-color:black;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:white\">\u540e\u7aef<\/span><\/p>\n<\/td>\n<td style=\"background-color:#2e5a8a;border-color:black;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:white\">\u5199\u5165\u5cf0\u503c (Span\/s)<\/span><\/p>\n<\/td>\n<td style=\"background-color:#2e5a8a;border-color:black;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:white\">P99 \u67e5\u8be2\u5ef6\u8fdf<\/span><\/p>\n<\/td>\n<td style=\"background-color:#2e5a8a;border-color:black;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:white\">\u65e5\u7559\u5b58\u4e0a\u9650(\u5355\u8282\u70b9)<\/span><\/p>\n<\/td>\n<td style=\"background-color:#2e5a8a;border-color:black;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:white\">\u5907\u6ce8<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:black;vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">&#8212;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">&#8212;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">&#8212;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">&#8212;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">&#8212;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:black;vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">H2<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">~800<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">\u968f\u91cf\u98d9\u5347<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6570\u5341\u4e07<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">\u9501\u8868\u660e\u663e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:black;vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">MySQL<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">~6000<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">500ms~2s<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">\u767e\u4e07\u7ea7<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4f9d\u8d56\u6279\u91cf\u53c2\u6570<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:black;vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">ES(3 \u8282\u70b9)<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">~50000<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">200ms \u5185<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5343\u4e07\u7ea7<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:86.4pt\">\n<p style=\"margin-left:0;margin-right:0\">\u7ebf\u6027\u6269\u5c55<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0\">\u7ed3\u8bba\u5f88\u6e05\u6670&#xff1a;H2 \u5728\u51e0\u767e QPS \u5c31\u5230\u9876&#xff1b;MySQL \u5230\u51e0\u5343\u5199\u5165\u5c31\u5f00\u59cb\u51fa\u73b0\u67e5\u8be2\u53d8\u6162&#xff1b;ES \u5728\u4e09\u8282\u70b9\u4e0b\u53ef\u8f7b\u677e\u625b\u4f4f\u5927\u6a21\u578b\u9ad8\u5cf0&#xff08;\u5355\u63a5\u53e3\u6570\u5343\u5e76\u53d1\u95ee\u7b54&#xff09;\u3002\u82e5\u4f60\u4eec\u65e5 Trace \u91cf\u7ea7\u5728\u5343\u4e07\u4ee5\u4e0a&#xff0c;\u6216\u8981\u4fdd\u7559\u65e5\u5fd7\u505a\u5173\u8054&#xff0c;ES \u662f\u51e0\u4e4e\u552f\u4e00\u9009\u62e9\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u4e00\u4e2a\u5e38\u88ab\u5ffd\u7565\u7684\u70b9&#xff1a;\u67e5\u8be2\u5ef6\u8fdf\u968f\u6570\u636e\u91cf\u589e\u957f\u66f2\u7ebf\u3002H2\/MySQL \u662f&#034;\u6570\u636e\u8d8a\u591a\u8d8a\u6162&#034;\u7684\u7ebf\u6027\u9000\u5316&#xff1b;ES \u56e0\u4e3a\u6309\u5929\u5206\u7d22\u5f15 &#043; \u65f6\u95f4\u8303\u56f4\u67e5\u8be2&#xff0c;\u6570\u636e\u91cf\u7ffb\u500d\u67e5\u8be2\u5ef6\u8fdf\u51e0\u4e4e\u4e0d\u53d8&#xff0c;\u8fd9\u5bf9\u957f\u671f\u53ef\u89c2\u6d4b\u6027\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<h3 style=\"margin-left:.0001pt;margin-right:0\"><span style=\"color:#4f81bd\"><span style=\"color:#2878c8\">5. ES \u8c03\u4f18\u5b9e\u6218<\/span><\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0\">\u9488\u5bf9\u5927\u6a21\u578b\u9ad8\u5199\u5165&#xff0c;ES \u4fa7\u6709\u51e0\u4e2a\u76f4\u63a5\u89c1\u6548\u7684\u8c03\u4f18\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7b2c\u4e00&#xff0c;\u5206\u7247\u6570\u3002&#096;indexShardsNumber&#096; \u9ed8\u8ba4 1~2&#xff0c;\u5927\u6a21\u578b\u5199\u5165\u5efa\u8bae 3~5&#xff08;\u6309\u6570\u636e\u8282\u70b9\u6570 \u00d7 1.5 \u4f30\u7b97&#xff09;\u3002\u5206\u7247\u592a\u5c11\u5199\u5165\u5355\u70b9\u74f6\u9888&#xff1b;\u592a\u591a\u5219\u5143\u6570\u636e\u5f00\u9500\u5927\u3001\u67e5\u8be2\u6247\u51fa\u591a\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7b2c\u4e8c&#xff0c;\u6279\u91cf\u5199\u5165\u3002\u4e0a\u9762 &#096;bulkActions&#061;2000, bulkSize&#061;20MB, flushInterval&#061;10s&#096; \u8868\u793a\u7d2f\u79ef 2000 \u6761\u6216 20MB \u6216 10 \u79d2\u4efb\u4e00\u6761\u4ef6\u6ee1\u8db3\u5373\u5237\u76d8&#xff0c;\u5927\u5e45\u964d\u4f4e ES \u5199\u5165\u538b\u529b\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7b2c\u4e09&#xff0c;\u526f\u672c\u4e0e\u5199\u5165\u5206\u79bb\u3002\u5199\u5165\u9ad8\u5cf0\u53ef\u4e34\u65f6\u628a &#096;indexReplicasNumber&#096; \u8bbe\u4e3a 0&#xff0c;\u5199\u5165\u5b8c\u6210\u540e\u518d\u52a8\u6001\u8c03\u56de 1&#xff0c;\u907f\u514d\u5199\u5165\u65f6\u540c\u6b65\u526f\u672c\u62d6\u7d2f\u3002\u547d\u4ee4&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"background-color:#1e1e1e\"><span style=\"color:#dddddd\">curl -X PUT &#034;es:9200\/sw_segment-*\/_settings&#034; -H &#039;Content-Type: application\/json&#039; \\\\<br \/>\n\u00a0 -d &#039;{&#034;index&#034;:{&#034;number_of_replicas&#034;:0}}&#039;<\/span><\/span><br \/>\n\u00a0<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7b2c\u56db&#xff0c;JVM \u4e0e\u5806\u3002ES \u5806\u5efa\u8bae\u4e0d\u8d85\u8fc7 31GB&#xff08;\u907f\u514d\u538b\u7f29\u6307\u9488\u5931\u6548&#xff09;&#xff0c;\u6570\u636e\u8282\u70b9\u5806\u5916\u7559\u8db3\u3002OAP \u4fa7\u4e5f\u8981\u7ed9\u8db3\u5806&#xff08;&#096;-Xms4g -Xmx4g&#096; \u8d77\u6b65&#xff09;&#xff0c;\u5426\u5219\u6279\u91cf\u7f13\u51b2\u6491\u7206\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7b2c\u4e94&#xff0c;\u51b7\u70ed\u67b6\u6784\u3002\u5927\u6a21\u578b Trace \u67e5\u8be2\u5927\u591a\u53ea\u770b\u6700\u8fd1 7 \u5929\u3002\u7528 ES ILM&#xff08;\u7d22\u5f15\u751f\u547d\u5468\u671f\u7ba1\u7406&#xff09;\u628a\u70ed\u7d22\u5f15\u653e SSD \u8282\u70b9\u3001\u51b7\u7d22\u5f15\u8fc1\u79fb\u5230\u666e\u901a\u8282\u70b9&#xff0c;\u65e2\u4fdd\u6027\u80fd\u53c8\u7701\u6210\u672c\u3002<\/p>\n<h3 style=\"margin-left:.0001pt;margin-right:0\"><span style=\"color:#4f81bd\"><span style=\"color:#2878c8\">6. \u5b58\u50a8\u5bb9\u91cf\u4e0e TTL \u7ba1\u7406<\/span><\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0\">\u5927\u6a21\u578b\u94fe\u8def\u6570\u636e\u81a8\u80c0\u5feb&#xff0c;\u5fc5\u987b\u9760 TTL \u6eda\u52a8\u6e05\u7406&#xff0c;\u5426\u5219\u5b58\u50a8\u88ab\u6491\u6ee1\u540e OAP \u5199\u5165\u5931\u8d25\u3001\u76d1\u63a7\u5168\u76f2\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">ES \u7684 TTL \u5728 &#096;application.yml&#096; \u7528 &#096;recordDataTTL&#096; \u548c\u5404\u7c7b\u7559\u5b58\u5929\u6570\u63a7\u5236&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"background-color:#1e1e1e\"><span style=\"color:#dddddd\">storage:<br \/>\n\u00a0 elasticsearch:<br \/>\n\u00a0\u00a0\u00a0 # \u5404\u7c7b\u6570\u636e\u4fdd\u7559\u5929\u6570<br \/>\n\u00a0\u00a0\u00a0 metricsDataTTL: ${SW_ES_METRICS_TTL:7}\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u6307\u6807\u4fdd\u7559 7 \u5929<br \/>\n\u00a0\u00a0\u00a0 recordDataTTL: ${SW_ES_RECORD_TTL:3}\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # Trace\/\u65e5\u5fd7\u4fdd\u7559 3 \u5929<br \/>\n\u00a0\u00a0\u00a0 # \u662f\u5426\u542f\u7528\u6309\u5929\u7d22\u5f15&#xff08;\u5f3a\u70c8\u5efa\u8bae&#xff09;<br \/>\n\u00a0\u00a0\u00a0 dayStep: ${SW_ES_DAY_STEP:1}<\/span><\/span><br \/>\n\u00a0<\/p>\n<p style=\"margin-left:0;margin-right:0\">&#096;dayStep&#096; \u63a7\u5236\u51e0\u5929\u5efa\u4e00\u4e2a\u7d22\u5f15&#xff0c;\u5927\u6a21\u578b\u9ad8\u91cf\u573a\u666f\u53ef\u8bbe\u4e3a 1&#xff08;\u6bcf\u5929\u4e00\u7d22\u5f15&#xff09;&#xff0c;\u8ba9\u5220\u9664\u5c31\u662f&#034;\u5220\u6574\u4e2a\u7d22\u5f15&#034;&#xff0c;\u6bd4\u6309\u6587\u6863\u9010\u6761\u5220\u9ad8\u6548\u5f97\u591a\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">MySQL\/H2 \u6ca1\u6709\u539f\u751f TTL&#xff0c;SkyWalking \u9760\u5b9a\u65f6\u4efb\u52a1\u6309 &#096;ttl&#096; \u5220\u884c&#xff0c;\u91cf\u5927\u65f6\u5220\u9664\u4f1a\u9501\u8868\u3001\u62d6\u6162\u5199\u5165&#xff0c;\u8fd9\u4e5f\u662f\u5b83\u4eec\u4e0d\u9002\u5408\u5927\u89c4\u6a21\u7684\u53e6\u4e00\u539f\u56e0\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u5bb9\u91cf\u9884\u4f30\u516c\u5f0f&#xff08;\u7c97\u7565&#xff09;&#xff1a;\u5355 Trace \u5e73\u5747 4 Span &#043; 1 \u65e5\u5fd7 \u2248 8KB&#xff1b;\u82e5\u65e5 2000 \u4e07 Trace&#xff0c;\u5219\u65e5\u589e\u7ea6 160GB&#xff0c;\u4fdd\u7559 3 \u5929\u9700 ~500GB \u53ef\u7528\u7a7a\u95f4&#xff08;\u542b\u526f\u672c\u7ffb\u500d\u5219 1TB&#xff09;\u3002\u52a1\u5fc5\u7559 30% \u4f59\u91cf&#xff0c;\u907f\u514d\u5199\u6ee1\u3002<\/p>\n<h3 style=\"background-color:transparent;margin-left:0.0001pt;margin-right:0px\"><span style=\"color:#4f81bd\"><span style=\"color:#2878c8\">7. \u6700\u4f73\u5b9e\u8df5\u4e0e\u8e29\u5751<\/span><\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0\">\u7b2c\u4e00&#xff0c;\u751f\u4ea7\u522b\u7528 H2&#xff0c;\u54ea\u6015&#034;\u5148\u8dd1\u8d77\u6765&#034;\u3002H2 \u5185\u5b58\u6a21\u5f0f\u91cd\u542f\u5373\u4e22&#xff0c;\u6587\u4ef6\u6a21\u5f0f\u5e76\u53d1\u5199\u5165\u4f1a\u9501&#xff0c;\u4e8b\u6545\u590d\u76d8\u65f6\u4f60\u6700\u9700\u8981\u7684\u6070\u6070\u662f\u5168\u91cf\u5386\u53f2 Trace&#xff0c;\u800c\u5b83\u6ca1\u4e86\u3002\u6f14\u793a\u53ef\u4ee5&#xff0c;\u751f\u4ea7\u5fc5\u987b ES\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7b2c\u4e8c&#xff0c;MySQL \u52a1\u5fc5\u5f00 &#096;rewriteBatchedStatements&#096;\u3002\u4e0d\u5f00\u7684\u8bdd SkyWalking \u7684\u6279\u91cf\u63d2\u5165\u9000\u5316\u6210\u9010\u6761 INSERT&#xff0c;\u5199\u5165\u76f4\u63a5\u6389\u4e00\u4e2a\u6570\u91cf\u7ea7&#xff0c;OAP \u540e\u53f0\u75af\u72c2\u62a5\u8d85\u65f6\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7b2c\u4e09&#xff0c;ES \u5206\u7247\u6570\u63d0\u524d\u89c4\u5212\u3002\u540e\u671f\u6539\u5206\u7247\u8981\u91cd\u5efa\u7d22\u5f15\u3001\u91cd\u704c\u6570\u636e&#xff0c;\u6210\u672c\u6781\u9ad8\u3002\u6309&#034;\u672a\u6765 6 \u4e2a\u6708\u5cf0\u503c&#034;\u9884\u7559&#xff0c;\u800c\u4e0d\u662f\u5f53\u524d\u91cf\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7b2c\u56db&#xff0c;\u76d1\u63a7\u4f60\u7684\u76d1\u63a7\u3002OAP \u548c ES \u81ea\u5df1\u4e5f\u8981\u88ab\u76d1\u63a7&#xff08;ES \u7684 heap\u3001\u5199\u5165\u961f\u5217\u3001\u78c1\u76d8\u4f7f\u7528\u7387&#xff09;\u3002\u66fe\u7ecf\u6709\u56e2\u961f SkyWalking \u9759\u9ed8\u6302\u4e86\u4e00\u5468&#xff0c;\u624d\u53d1\u73b0\u662f ES \u78c1\u76d8\u5199\u6ee1\u3001\u7d22\u5f15\u53d8\u53ea\u8bfb&#xff0c;\u90a3\u4e00\u5468\u7684\u5927\u6a21\u578b\u4e8b\u6545\u5168\u65e0\u94fe\u8def\u53ef\u67e5\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7b2c\u4e94&#xff0c;TTL \u4e0e\u5408\u89c4\u5e73\u8861\u3002\u91d1\u878d\u3001\u533b\u7597\u7c7b\u5927\u6a21\u578b\u65e5\u5fd7\u53ef\u80fd\u8981\u6c42\u7559\u5b58\u66f4\u4e45&#xff0c;\u4f46\u5168\u91cf Trace \u7559 30 \u5929\u6210\u672c\u60ca\u4eba\u3002\u5efa\u8bae&#xff1a;\u6307\u6807\u7559\u4e45&#xff08;\u8d8b\u52bf\u5206\u6790&#xff09;&#xff0c;Trace\/\u65e5\u5fd7\u6309\u9700\u7f29\u77ed&#xff0c;\u654f\u611f\u5185\u5bb9\u8131\u654f\u540e\u518d\u5b58\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7b2c\u516d&#xff0c;\u5347\u7ea7\u6ce8\u610f\u5b58\u50a8\u517c\u5bb9\u3002SkyWalking \u5927\u7248\u672c\u5347\u7ea7\u5e38\u6539 ES \u7d22\u5f15 mapping&#xff0c;\u76f4\u63a5\u8fde\u65e7\u96c6\u7fa4\u53ef\u80fd\u62a5\u9519\u3002\u5347\u7ea7\u524d\u8981\u4e48\u65b0\u5efa\u5b58\u50a8\u3001\u8981\u4e48\u6267\u884c\u5b98\u65b9\u63d0\u4f9b\u7684 &#096;index-name&#096; \u517c\u5bb9\u811a\u672c&#xff0c;\u5e76\u5907\u4efd\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u9009\u5bf9\u5b58\u50a8&#xff0c;SkyWalking \u624d\u80fd\u625b\u4f4f\u5927\u6a21\u578b\u7684\u9ad8\u5199\u5165\u3001\u5927\u5bb9\u91cf\u3001\u957f\u5468\u671f\u3002\u4e00\u53e5\u8bdd\u5efa\u8bae&#xff1a;\u6f14\u793a\u7528 H2&#xff0c;\u4e2d\u5c0f\u7528 MySQL&#xff08;\u5f00\u6279\u91cf&#xff09;&#xff0c;\u751f\u4ea7\u5927\u89c4\u6a21\u4e00\u5f8b ES &#043; TTL &#043; \u51b7\u70ed\u5206\u5c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u51e0\u7bc7\u6211\u4eec\u90fd\u5728\\&#8221;\u7528\\&#8221; SkyWalking&#xff1a;\u57cb\u70b9\u3001\u5173\u8054\u3001\u544a\u8b66\u3002\u4f46\u5f53\u4f60\u771f\u628a\u5927\u6a21\u578b\u94fe\u8def\u5168\u91cf\u63a5\u8fdb\u751f\u4ea7&#xff0c;\u7b2c\u4e00\u4e2a\u88ab\u51b2\u57ae\u7684\u5f80\u5f80\u4e0d\u662f Agent&#xff0c;\u800c\u662f OAP \u80cc\u540e\u7684\u5b58\u50a8\u3002\u5927\u6a21\u578b Trace \u6709\u51e0\u4e2a\u7279\u70b9&#xff1a;Span \u591a&#xff08;\u4e09\u5c42  \u6d41\u5f0f&#xff09;\u3001Tag \u548c\u65e5\u5fd7\u4f53\u91cf\u5927\u3001\u5199\u5165\u5cf0\u503c\u9ad8&#xff08;\u5e76\u53d1\u95ee\u7b54&#xff09;\u3002\u9009\u9519\u5b58\u50a8&#xff0c;OAP \u4f1a\u51fa\u73b0\u5199\u5165\u5806\u79ef\u3001\u67e5\u8be2\u8d85\u65f6&#xff0c;\u6700\u7ec8\u76d1\u63a7\u81ea\u5df1\u5148\u6302\u4e86\u3002SkyWa<\/p>\n","protected":false},"author":2,"featured_media":97408,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9508,99,190],"topic":[],"class_list":["post-97411","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-skywalking","tag-java","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Java \u7a0b\u5e8f\u5458\u7b2c 46 \u9636\u6bb514\uff1a\u5927\u6a21\u578b\u8c03\u7528\u94fe\u8def\u8ffd\u8e2a\uff0cSkyWalking \u6392\u67e5\u7ebf\u4e0a\u6027\u80fd\uff0c\u5b58\u50a8\u9009\u578b\u4e0e\u6027\u80fdESH2MySQL\u540e\u7aef\u5bf9\u6bd4\u4e0e\u8c03\u4f18 - \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\/97411.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java \u7a0b\u5e8f\u5458\u7b2c 46 \u9636\u6bb514\uff1a\u5927\u6a21\u578b\u8c03\u7528\u94fe\u8def\u8ffd\u8e2a\uff0cSkyWalking \u6392\u67e5\u7ebf\u4e0a\u6027\u80fd\uff0c\u5b58\u50a8\u9009\u578b\u4e0e\u6027\u80fdESH2MySQL\u540e\u7aef\u5bf9\u6bd4\u4e0e\u8c03\u4f18 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u524d\u51e0\u7bc7\u6211\u4eec\u90fd\u5728&quot;\u7528&quot; SkyWalking&#xff1a;\u57cb\u70b9\u3001\u5173\u8054\u3001\u544a\u8b66\u3002\u4f46\u5f53\u4f60\u771f\u628a\u5927\u6a21\u578b\u94fe\u8def\u5168\u91cf\u63a5\u8fdb\u751f\u4ea7&#xff0c;\u7b2c\u4e00\u4e2a\u88ab\u51b2\u57ae\u7684\u5f80\u5f80\u4e0d\u662f Agent&#xff0c;\u800c\u662f OAP \u80cc\u540e\u7684\u5b58\u50a8\u3002\u5927\u6a21\u578b Trace \u6709\u51e0\u4e2a\u7279\u70b9&#xff1a;Span \u591a&#xff08;\u4e09\u5c42 \u6d41\u5f0f&#xff09;\u3001Tag \u548c\u65e5\u5fd7\u4f53\u91cf\u5927\u3001\u5199\u5165\u5cf0\u503c\u9ad8&#xff08;\u5e76\u53d1\u95ee\u7b54&#xff09;\u3002\u9009\u9519\u5b58\u50a8&#xff0c;OAP \u4f1a\u51fa\u73b0\u5199\u5165\u5806\u79ef\u3001\u67e5\u8be2\u8d85\u65f6&#xff0c;\u6700\u7ec8\u76d1\u63a7\u81ea\u5df1\u5148\u6302\u4e86\u3002SkyWa\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/97411.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-29T05:40:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260829054055-6a9270e7b06a4.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=\"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\/97411.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/97411.html\",\"name\":\"Java \u7a0b\u5e8f\u5458\u7b2c 46 \u9636\u6bb514\uff1a\u5927\u6a21\u578b\u8c03\u7528\u94fe\u8def\u8ffd\u8e2a\uff0cSkyWalking \u6392\u67e5\u7ebf\u4e0a\u6027\u80fd\uff0c\u5b58\u50a8\u9009\u578b\u4e0e\u6027\u80fdESH2MySQL\u540e\u7aef\u5bf9\u6bd4\u4e0e\u8c03\u4f18 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-29T05:40:59+00:00\",\"dateModified\":\"2026-08-29T05:40:59+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/97411.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/97411.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/97411.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java \u7a0b\u5e8f\u5458\u7b2c 46 \u9636\u6bb514\uff1a\u5927\u6a21\u578b\u8c03\u7528\u94fe\u8def\u8ffd\u8e2a\uff0cSkyWalking \u6392\u67e5\u7ebf\u4e0a\u6027\u80fd\uff0c\u5b58\u50a8\u9009\u578b\u4e0e\u6027\u80fdESH2MySQL\u540e\u7aef\u5bf9\u6bd4\u4e0e\u8c03\u4f18\"}]},{\"@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":"Java \u7a0b\u5e8f\u5458\u7b2c 46 \u9636\u6bb514\uff1a\u5927\u6a21\u578b\u8c03\u7528\u94fe\u8def\u8ffd\u8e2a\uff0cSkyWalking \u6392\u67e5\u7ebf\u4e0a\u6027\u80fd\uff0c\u5b58\u50a8\u9009\u578b\u4e0e\u6027\u80fdESH2MySQL\u540e\u7aef\u5bf9\u6bd4\u4e0e\u8c03\u4f18 - \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\/97411.html","og_locale":"zh_CN","og_type":"article","og_title":"Java \u7a0b\u5e8f\u5458\u7b2c 46 \u9636\u6bb514\uff1a\u5927\u6a21\u578b\u8c03\u7528\u94fe\u8def\u8ffd\u8e2a\uff0cSkyWalking \u6392\u67e5\u7ebf\u4e0a\u6027\u80fd\uff0c\u5b58\u50a8\u9009\u578b\u4e0e\u6027\u80fdESH2MySQL\u540e\u7aef\u5bf9\u6bd4\u4e0e\u8c03\u4f18 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u524d\u51e0\u7bc7\u6211\u4eec\u90fd\u5728\"\u7528\" SkyWalking&#xff1a;\u57cb\u70b9\u3001\u5173\u8054\u3001\u544a\u8b66\u3002\u4f46\u5f53\u4f60\u771f\u628a\u5927\u6a21\u578b\u94fe\u8def\u5168\u91cf\u63a5\u8fdb\u751f\u4ea7&#xff0c;\u7b2c\u4e00\u4e2a\u88ab\u51b2\u57ae\u7684\u5f80\u5f80\u4e0d\u662f Agent&#xff0c;\u800c\u662f OAP \u80cc\u540e\u7684\u5b58\u50a8\u3002\u5927\u6a21\u578b Trace \u6709\u51e0\u4e2a\u7279\u70b9&#xff1a;Span \u591a&#xff08;\u4e09\u5c42 \u6d41\u5f0f&#xff09;\u3001Tag \u548c\u65e5\u5fd7\u4f53\u91cf\u5927\u3001\u5199\u5165\u5cf0\u503c\u9ad8&#xff08;\u5e76\u53d1\u95ee\u7b54&#xff09;\u3002\u9009\u9519\u5b58\u50a8&#xff0c;OAP \u4f1a\u51fa\u73b0\u5199\u5165\u5806\u79ef\u3001\u67e5\u8be2\u8d85\u65f6&#xff0c;\u6700\u7ec8\u76d1\u63a7\u81ea\u5df1\u5148\u6302\u4e86\u3002SkyWa","og_url":"https:\/\/www.wsisp.com\/helps\/97411.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-29T05:40:59+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260829054055-6a9270e7b06a4.png"}],"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\/97411.html","url":"https:\/\/www.wsisp.com\/helps\/97411.html","name":"Java \u7a0b\u5e8f\u5458\u7b2c 46 \u9636\u6bb514\uff1a\u5927\u6a21\u578b\u8c03\u7528\u94fe\u8def\u8ffd\u8e2a\uff0cSkyWalking \u6392\u67e5\u7ebf\u4e0a\u6027\u80fd\uff0c\u5b58\u50a8\u9009\u578b\u4e0e\u6027\u80fdESH2MySQL\u540e\u7aef\u5bf9\u6bd4\u4e0e\u8c03\u4f18 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-29T05:40:59+00:00","dateModified":"2026-08-29T05:40:59+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/97411.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/97411.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/97411.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Java \u7a0b\u5e8f\u5458\u7b2c 46 \u9636\u6bb514\uff1a\u5927\u6a21\u578b\u8c03\u7528\u94fe\u8def\u8ffd\u8e2a\uff0cSkyWalking \u6392\u67e5\u7ebf\u4e0a\u6027\u80fd\uff0c\u5b58\u50a8\u9009\u578b\u4e0e\u6027\u80fdESH2MySQL\u540e\u7aef\u5bf9\u6bd4\u4e0e\u8c03\u4f18"}]},{"@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\/97411","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=97411"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/97411\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/97408"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=97411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=97411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=97411"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=97411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}