{"id":72659,"date":"2024-06-11T07:07:43","date_gmt":"2024-06-11T07:07:43","guid":{"rendered":"https:\/\/www.azul.com\/?p=72659"},"modified":"2024-07-18T19:00:26","modified_gmt":"2024-07-18T19:00:26","slug":"does-java-garbage-collection-logging-impact-application-performance","status":"publish","type":"post","link":"https:\/\/www.azul.com\/zh-hans\/blog\/does-java-garbage-collection-logging-impact-application-performance\/","title":{"rendered":"Java \u5783\u573e\u6536\u96c6\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u4f1a\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\uff1f"},"content":{"rendered":"\n<p><em>\u6211\u4eec\u6709\u65f6\u4f1a\u9047\u5230\u4e00\u4e9b Java \u7528\u6237\uff0c\u4ed6\u4eec\u8ba4\u4e3a\u542f\u7528\u5783\u573e\u6536\u96c6\u65e5\u5fd7\u8bb0\u5f55\u4f1a\u4e25\u91cd\u5f71\u54cd\u6027\u80fd\u6307\u6807\u3002\u8ba9\u6211\u4eec\u6765\u770b\u770b\u4e8b\u5b9e\u548c\u8c2c\u89c1\u2026\u2026<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-\u5173\u4e8e\u5783\u573e\u6536\u96c6\u5668\"><strong>\u5173\u4e8e\u5783\u573e\u6536\u96c6\u5668<\/strong><\/h2>\n\n\n\n<p>Java \u5783\u573e\u6536\u96c6\u5668\u662f Java \u865a\u62df\u673a (JVM) \u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\uff0c\u80fd\u591f\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002\u5982\u679c\u60a8\u60f3\u6df1\u5165\u4e86\u89e3 Java \u8fd0\u884c\u65f6\u4e2d\u4e0d\u540c\u7c7b\u578b\u7684\u5783\u573e\u6536\u96c6\u5668\u53ca\u5176\u5de5\u4f5c\u539f\u7406\uff0c\u8bf7\u67e5\u770b\u4e4b\u524d\u7684\u8fd9\u7bc7\u535a\u5ba2\u6587\u7ae0\uff1a\u300a<a href=\"https:\/\/www.azul.com\/blog\/what-should-i-know-about-garbage-collection-as-a-java-developer\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u4f5c\u4e3a Java \u5f00\u53d1\u4eba\u5458\uff0c\u6211\u5e94\u8be5\u4e86\u89e3\u5783\u573e\u6536\u96c6\u7684\u54ea\u4e9b\u77e5\u8bc6\uff1f<\/a>\u300b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-gc-\u65e5\u5fd7\u8bb0\u5f55\u662f\u4ec0\u4e48\"><strong>GC \u65e5\u5fd7\u8bb0\u5f55\u662f\u4ec0\u4e48\uff1f<\/strong><\/h2>\n\n\n\n<p>\u5783\u573e\u6536\u96c6 (GC) \u65e5\u5fd7\u8bb0\u5f55\u662f JVM \u7684\u4e00\u9879\u529f\u80fd\uff0c\u53ef\u63d0\u4f9b\u5173\u4e8e\u5783\u573e\u6536\u96c6\u8fc7\u7a0b\u7684\u4fe1\u606f\u3002\u901a\u8fc7\u751f\u6210\u7684\u65e5\u5fd7\u6587\u4ef6\uff0c\u60a8\u53ef\u4ee5\u6df1\u5165\u4e86\u89e3 JVM \u5982\u4f55\u6536\u96c6\u548c\u5904\u7406\u7a0b\u5e8f\u4e0d\u518d\u9700\u8981\u7684\u5bf9\u8c61\uff0c\u4ece\u800c\u5728\u8fd0\u884c\u65f6\u5bf9\u5185\u5b58\u8fdb\u884c\u52a8\u6001\u7ba1\u7406\u3002\u5f53\u60a8\u60f3\u8981\u76d1\u89c6 Java \u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3001\u8bca\u65ad\u5185\u5b58\u6cc4\u6f0f\uff0c\u4ee5\u53ca\u8c03\u6574 JVM \u7684\u5783\u573e\u6536\u96c6\u914d\u7f6e\u65f6\uff0c\u8fd9\u975e\u5e38\u6709\u7528\u3002<\/p>\n\n\n\n<p>\u201c\u6211\u4eec\u7684\u4e00\u4e9b\u5ba2\u6237\u5bf9\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\u63d0\u5347\u7684\u8ffd\u6c42\u8fbe\u5230\u4e86\u5fae\u79d2\u5fc5\u4e89\u7684\u5730\u6b65\uff0c\u201dAzul \u9500\u552e\u5de5\u7a0b\u5e08 Daniel Witkowki \u8bf4\uff0c\u201c\u4f46\u4ed6\u4eec\u4ecd\u7136\u4f1a\u542f\u7528 GC \u65e5\u5fd7\u8bb0\u5f55\uff01\u56e0\u4e3a\u5b83\u5bf9\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\u7684\u5f71\u54cd\u5fae\u4e4e\u5176\u5fae\uff0c\u5e76\u4e14\u4e3a\u591a\u79cd\u4e0d\u540c\u95ee\u9898\u7684\u8c03\u8bd5\u63d0\u4f9b\u4e86\u652f\u6301\uff0c\u5bf9\u4e8e\u8fd9\u4e9b\u516c\u53f8\u6765\u8bf4\uff0c\u5728\u95ee\u9898\u53d1\u751f\u540e\uff0c\u786e\u4fdd\u59cb\u7ec8\u80fd\u591f\u68c0\u7d22 GC \u65e5\u5fd7\u81f3\u5173\u91cd\u8981\u3002\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"341\" src=\"https:\/\/azul.imgix.net\/wp-content\/uploads\/Witkowski-quote-June-2024-1024x341.jpg?auto=format&crop=faces,entropy&fit=max&q=80&s=84ac9869d84d30c1834e0ad887185c0d\" alt=\"\" class=\"wp-image-72032\"\/><\/figure>\n\n\n\n<p>\u542f\u7528\u5783\u573e\u6536\u96c6\u65e5\u5fd7\u8bb0\u5f55\u540e\uff0c\u6bcf\u5f53 JVM \u6267\u884c\u5783\u573e\u6536\u96c6\u65f6\uff0c\u90fd\u4f1a\u5728\u65e5\u5fd7\u6587\u4ef6\u4e2d\u5b58\u50a8\u4ee5\u4e0b\u4fe1\u606f\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GC \u4e8b\u4ef6\u7684<strong>\u7c7b\u578b<\/strong>\n<ul class=\"wp-block-list\">\n<li>\u5c0f\u578b GC\uff1a\u6e05\u7406\u5e74\u8f7b\u4ee3\u7a7a\u95f4<\/li>\n\n\n\n<li>\u5927\u578b GC\uff1a\u6e05\u7406\u8001\u5e74\u4ee3\u7a7a\u95f4<\/li>\n\n\n\n<li>\u5168\u91cf GC\uff1a\u6e05\u7406\u6574\u4e2a\u5806\u7a7a\u95f4<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>GC \u4e8b\u4ef6\u5f00\u59cb\u7684<strong>\u65f6\u95f4<\/strong>\u3002<\/li>\n\n\n\n<li>GC \u4e8b\u4ef6\u7684<strong>\u6301\u7eed\u65f6\u95f4<\/strong>\u3002<\/li>\n\n\n\n<li>\u6bcf\u4e2a\u5185\u5b58\u6c60\u5728 GC \u4e8b\u4ef6\u524d\u540e\u7684<strong>\u5185\u5b58\u91cf<\/strong>\u3002<\/li>\n\n\n\n<li>\u6bcf\u4e2a\u5185\u5b58\u6c60\u7684<strong>\u53ef\u7528\u5185\u5b58\u603b\u91cf<\/strong>\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u65e5\u5fd7\u6587\u4ef6\u662f\u4eba\u7c7b\u53ef\u8bfb\u7684\uff0c\u5185\u5bb9\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;0.005s]&#91;info]&#91;gc] Using G1\n&#91;0.110s]&#91;info]&#91;safepoint] Safepoint \"ICBufferFull\", Time since last: 98355917 ns, Reaching safepoint: 2000 ns, Cleanup: 53416 ns, At safepoint: 7167 ns, Total: 62583 ns\n&#91;0.186s]&#91;info]&#91;safepoint] Safepoint \"ICBufferFull\", Time since last: 75998125 ns, Reaching safepoint: 1792 ns, Cleanup: 56000 ns, At safepoint: 4458 ns, Total: 62250 ns\n&#91;0.235s]&#91;info]&#91;safepoint] Safepoint \"ICBufferFull\", Time since last: 48961667 ns, Reaching safepoint: 2125 ns, Cleanup: 45208 ns, At safepoint: 4042 ns, Total: 51375 ns\n&#91;0.259s]&#91;info]&#91;gc       ] GC(0) Pause Young (Normal) (G1 Evacuation Pause) 49M-&gt;4M(1032M) 1.472ms\n...\n&#91;2.290s]&#91;info]&#91;gc       ] GC(13) Pause Young (Concurrent Start) (Metadata GC Threshold) 120M-&gt;23M(560M) 2.647ms\n&#91;2.290s]&#91;info]&#91;gc       ] GC(14) Concurrent Mark Cycle\n&#91;2.290s]&#91;info]&#91;safepoint] Safepoint \"CollectForMetadataAllocation\", Time since last: 31224333 ns, Reaching safepoint: 1542 ns, Cleanup: 45042 ns, At safepoint: 2700833 ns, Total: 2747417 ns\n&#91;2.302s]&#91;info]&#91;gc       ] GC(14) Pause Remark 28M-&gt;28M(112M) 1.986ms\n&#91;2.302s]&#91;info]&#91;safepoint] Safepoint \"G1PauseRemark\", Time since last: 10354500 ns, Reaching safepoint: 1917 ns, Cleanup: 14125 ns, At safepoint: 2028625 ns, Total: 2044667 ns\n&#91;2.306s]&#91;info]&#91;gc       ] GC(14) Pause Cleanup 28M-&gt;28M(112M) 0.048ms\n&#91;2.306s]&#91;info]&#91;safepoint] Safepoint \"G1PauseCleanup\", Time since last: 3311666 ns, Reaching safepoint: 169500 ns, Cleanup: 11084 ns, At safepoint: 79583 ns, Total: 260167 ns\n&#91;2.306s]&#91;info]&#91;gc       ] GC(14) Concurrent Mark Cycle 16.086ms\n...<\/code><\/pre>\n\n\n\n<p>\u5b58\u50a8\u7684\u4fe1\u606f\u548c\u683c\u5f0f\u53ef\u80fd\u56e0\u4f7f\u7528\u7684 JVM \u548c GC \u7b97\u6cd5\u800c\u5f02\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-\u542f\u7528-gc-\u65e5\u5fd7\u8bb0\u5f55\">\u542f\u7528 GC \u65e5\u5fd7\u8bb0\u5f55<\/h2>\n\n\n\n<p>GC \u65e5\u5fd7\u8bb0\u5f55\u901a\u8fc7 <code>java<\/code> \u547d\u4ee4\u884c\u53c2\u6570 <code>-Xlog<\/code>. \u542f\u7528\u3002\u5f97\u76ca\u4e8e <a href=\"https:\/\/openjdk.org\/jeps\/158\" target=\"_blank\" rel=\"noreferrer noopener\">JEP 158\u201c\u7edf\u4e00\u7684 JVM \u65e5\u5fd7\u8bb0\u5f55\u201d<\/a>\uff0c\u6b64\u529f\u80fd\u4ece Java 9 \u7248\u672c\u5f00\u59cb\u63d0\u4f9b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>-Xlog:gc,safepoint:gc.log<\/code> \u7528\u4e8e\u542f\u7528\u91cd\u8981\u5783\u573e\u6536\u96c6\u4e8b\u4ef6\uff08\u5305\u62ec\u6240\u6709\u5b89\u5168\u70b9\u6682\u505c\uff09\u7684\u9ed8\u8ba4\u65e5\u5fd7\u8bb0\u5f55\u3002<\/li>\n\n\n\n<li><code>-Xlog:gc*,safepoint:gc.log<\/code> \u7528\u4e8e\u542f\u7528\u66f4\u8be6\u7ec6\u7684\u65e5\u5fd7\u8bb0\u5f55\uff0c\u5305\u62ec\u6240\u6709\u5b89\u5168\u70b9\u6682\u505c\uff0c\u4ee5\u53ca\u901a\u5e38\u4e0d\u8bb0\u5f55\u7684\u8f83\u5c0f\u5783\u573e\u6536\u96c6\u5668\u4e8b\u4ef6\u548c\u9636\u6bb5\u3002\u00a0 \u5bf9\u4e8e OpenJDK\uff0c\u8fd9\u901a\u5e38\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684\uff0c\u5426\u5219\u67d0\u4e9b Java \u5806\u5185\u5b58\u6307\u6807\u5c06\u4e0d\u4f1a\u88ab\u8bb0\u5f55\uff0c\u800c\u4e14\u5e76\u975e\u6240\u6709\u6682\u505c\u90fd\u4f1a\u88ab\u8ddf\u8e2a\u3002\u5728 Zing \u4e0a\uff0c\u5b83\u4e0d\u662f\u5fc5\u9700\u7684\uff0c\u56e0\u4e3a\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u4ec5\u4f7f\u7528 gc \u5c31\u80fd\u591f\u8bb0\u5f55\u6240\u6709\u5fc5\u8981\u7684\u6570\u636e\u3002 <code>gc<\/code> \u548c <code>gc*<\/code> \u4e4b\u95f4\u7684\u6743\u8861\u901a\u5e38\u610f\u5473\u7740\u65e5\u5fd7\u6570\u636e\u91cf\u5c06\u589e\u52a0 10 \u500d\uff0c\u800c\u8fd9\u4f1a\u7f29\u51cf\u60a8\u7684\u65e5\u5fd7\u8986\u76d6\u7684\u65f6\u95f4\u8de8\u5ea6\u3002<\/li>\n\n\n\n<li><code>-Xlog:gc,safepoint<\/code> \u7528\u4e8e\u5c06\u65e5\u5fd7\u6570\u636e\u5199\u5165\u6807\u51c6\u8f93\u51fa\uff0c\u5728\u5bb9\u5668\u4e2d\u6709\u52a9\u4e8e\u907f\u514d\u5b58\u50a8\u672c\u5730\u65e5\u5fd7\u6587\u4ef6\u3002<\/li>\n\n\n\n<li><code>-Xlog:gc,safepoint:gc.log::filecount=10,filesize=100M <\/code>\u7528\u4e8e\u5c06\u9ed8\u8ba4\u65e5\u5fd7\u8f6e\u8f6c\u8bbe\u7f6e\u4ece 5 \u4e2a 20 MB \u7684\u6587\u4ef6\u66f4\u6539\u4e3a 10 \u4e2a 100 MB \u7684\u6587\u4ef6\u3002<\/li>\n\n\n\n<li><code>-Xlog:gc,safepoint:gc.log::filecount=0\u00a0<\/code>\u7528\u4e8e\u7981\u7528\u65e5\u5fd7\u6587\u4ef6\u8f6e\u8f6c\uff0c\u8fd9\u5bf9\u4e8e\u5feb\u901f\u6d4b\u8bd5\u8fd0\u884c\u6216\u7ecf\u5e38\u91cd\u542f\u7684\u8fdb\u7a0b\u5f88\u6709\u7528\u5904\u3002\u6ce8\u610f\u8fde\u7528\u4e24\u4e2a\u5192\u53f7\u7684\u5730\u65b9\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u60a8\u751a\u81f3\u53ef\u4ee5\u91cd\u590d\u4f7f\u7528 <code>-Xlog<\/code> \u540c\u65f6\u6307\u5b9a\u4e0d\u540c\u7684\u8f93\u51fa\uff0c\u4f8b\u5982\uff0c\u4e0b\u9762\u7684\u547d\u4ee4\u4f1a\u5c06\u65e5\u5fd7\u540c\u65f6\u5199\u5165\u6807\u51c6\u8f93\u51fa\u548c\u672c\u5730\u6587\u4ef6\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ java -Xlog:gc,safepoint -Xlog:gc,safepoint:\/opt\/log\/gc.log -jar myApp.jar<\/code><\/pre>\n\n\n\n<p>\u7edf\u4e00\u65e5\u5fd7\u8bb0\u5f55\u7cfb\u7edf\u8fd8\u63d0\u4f9b\u4e86\u5176\u4ed6\u9009\u9879\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u60a8\u5c31\u53ef\u4ee5\u770b\u5230\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ java -Xlog:logging=debug -version\n \n&#91;0.017s]&#91;info]&#91;logging] Log configuration fully initialized.\n&#91;0.017s]&#91;info]&#91;logging] Available log levels: off, trace, debug, info, warning, error\n&#91;0.017s]&#91;info]&#91;logging] Available log decorators: time (t), utctime (utc), uptime (u), timemillis (tm), uptimemillis (um),...\n&#91;0.017s]&#91;info]&#91;logging] Available log tags: add, age,... gc,...\n&#91;0.017s]&#91;info]&#91;logging] Described tag sets:\n&#91;0.017s]&#91;info]&#91;logging]  logging: Logging for the log framework itself\n&#91;0.019s]&#91;debug]&#91;logging] Available tag sets: , arguments, attach, cds, cds+class, cds+dynamic, cds+hashtables, cds+heap,...\n&#91;0.023s]&#91;info ]&#91;logging] Log output configuration:\n&#91;0.023s]&#91;info ]&#91;logging]  #0: stdout all=warning,logging=debug uptime,level,tags foldmultilines=false\n&#91;0.023s]&#91;info ]&#91;logging]  #1: stderr all=off uptime,level,tags foldmultilines=false\nopenjdk version \"22\" 2024-03-19\nOpenJDK Runtime Environment Zulu22.28+91-CA (build 22+36)\nOpenJDK 64-Bit Server VM Zulu22.28+91-CA (build 22+36, mixed mode, sharing)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-gc-\u65e5\u5fd7\u8bb0\u5f55\u7684\u5f71\u54cd\">GC \u65e5\u5fd7\u8bb0\u5f55\u7684\u5f71\u54cd<\/h2>\n\n\n\n<p>\u5728 Java \u5e94\u7528\u7a0b\u5e8f\u4e2d\u542f\u7528 GC \u65e5\u5fd7\u8bb0\u5f55\u5bf9\u6027\u80fd\u7684\u5f71\u54cd\u901a\u5e38\u5fae\u4e4e\u5176\u5fae\uff0c\u5728\u73b0\u4ee3 JVM \u4e2d\u66f4\u662f\u5982\u6b64\u3002\u4f46\u662f\uff0c\u5177\u4f53\u5f71\u54cd\u53ef\u80fd\u4f1a\u56e0 JVM \u7248\u672c\u3001\u4f7f\u7528\u7684 GC \u7b97\u6cd5\u3001GC \u65e5\u5fd7\u8bb0\u5f55\u7684\u8bbe\u7f6e\uff0c\u4ee5\u53ca\u65e5\u5fd7\u5199\u5165\u76ee\u6807\u7cfb\u7edf\u7684 I\/O \u6027\u80fd\u800c\u5f02\u3002\u4ee5\u4e0b\u662f\u60a8\u9700\u8981\u8003\u8651\u7684\u4e00\u4e9b\u4e8b\u5b9e\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u586b\u6ee1\u6587\u4ef6\u7cfb\u7edf\u7684\u98ce\u9669\uff1a<\/strong>\u65e5\u5fd7\u8bb0\u5f55\u5bf9\u6027\u80fd\u7684\u6700\u5e38\u89c1\u5b9e\u9645\u5f71\u54cd\u662f\u586b\u6ee1\uff08\u6216\u51e0\u4e4e\u586b\u6ee1\uff09\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf\uff0c\u9700\u8981\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\u3002Java 9 \u53ca\u66f4\u9ad8\u7248\u672c\u9ed8\u8ba4\u542f\u7528\u65e5\u5fd7\u6587\u4ef6\u8f6e\u8f6c\u529f\u80fd\uff0c\u5e76\u4e14\u53ea\u4f1a\u5199\u5165 5 \u4e2a\u65e5\u5fd7\u7247\u6bb5\uff0c\u6bcf\u4e2a\u7247\u6bb5\u7684\u5927\u5c0f\u4e3a 20 MB\u3002<\/li>\n\n\n\n<li><strong>I\/O <\/strong><strong>\u64cd\u4f5c<\/strong>\uff1aGC \u65e5\u5fd7\u76f4\u63a5\u5199\u5165\u78c1\u76d8\u3002\u8fd9\u4f1a\u4ea7\u751f I\/O \u64cd\u4f5c\uff0c\u56e0\u6b64\uff0c\u5982\u679c\u78c1\u76d8\u901f\u5ea6\u8f83\u6162\u6216\u78c1\u76d8\u4f7f\u7528\u7387\u8f83\u9ad8\uff0c\u5c31\u4f1a\u62d6\u6162\u5e94\u7528\u7a0b\u5e8f\u7684\u8fd0\u884c\u901f\u5ea6\u3002<\/li>\n\n\n\n<li><strong>\u5185\u5b58\u7f13\u51b2<\/strong>\uff1a\u73b0\u4ee3 JVM \u901a\u5e38\u4f1a\u4f7f\u7528\u5185\u5b58\u7f13\u51b2\u533a\u5b58\u653e GC \u65e5\u5fd7\u3002\u5f53\u7f13\u51b2\u533a\u6ee1\u65f6\uff0c\u65e5\u5fd7\u4f1a\u4e00\u6b21\u6027\u5199\u5165\u78c1\u76d8\uff0c\u4ee5\u964d\u4f4e\u5bf9 I\/O \u7684\u5f71\u54cd\u3002\u4f46\u662f\uff0c\u7f13\u51b2\u533a\u4f1a\u5360\u7528\u5e94\u7528\u7a0b\u5e8f\u672c\u6765\u53ef\u4ee5\u4f7f\u7528\u7684\u5185\u5b58\u3002<\/li>\n\n\n\n<li><strong>\u8be6\u7ec6<\/strong><strong> GC <\/strong><strong>\u65e5\u5fd7<\/strong>\uff1a\u5982\u679c\u542f\u7528\u8be6\u7ec6 GC \u65e5\u5fd7\uff08\u4f8b\u5982\uff0c\u8bb0\u5f55\u5404\u7ebf\u7a0b\u7684\u8017\u65f6\uff0c\u6216\u5bf9\u8c61\u7684\u7edf\u8ba1\u4fe1\u606f\uff09\uff0c\u5bf9\u6027\u80fd\u7684\u5f71\u54cd\u53ef\u80fd\u4f1a\u53d8\u5f97\u660e\u663e\uff0c\u56e0\u4e3a\u9700\u8981\u5bf9\u8fd9\u4e9b\u6570\u636e\u8fdb\u884c\u8bb0\u5f55\u548c\u5904\u7406\uff0c\u8fd9\u53ef\u80fd\u4f1a\u6d88\u8017 CPU \u8d44\u6e90\u3002<\/li>\n\n\n\n<li><strong>\u5b89\u5168\u70b9<\/strong>\uff1a\u6240\u6709 GC \u65e5\u5fd7\u8bb0\u5f55\u6d3b\u52a8\u90fd\u5728\u5e94\u7528\u7a0b\u5e8f\u6267\u884c\u8fc7\u7a0b\u4e2d\u7684\u201c\u5b89\u5168\u70b9\u201d\u4e0a\u8fdb\u884c\uff0c\u56e0\u6b64\uff0c\u4e0e GC \u6d3b\u52a8\u672c\u8eab\u81ea\u7136\u5f15\u53d1\u7684\u201c\u5168\u5c40\u6682\u505c\u201d\u6b21\u6570\u76f8\u6bd4\uff0c\u65e5\u5fd7\u8bb0\u5f55\u6d3b\u52a8\u4e0d\u4f1a\u5bfc\u81f4\u201c\u5168\u5c40\u6682\u505c\u201d\u6b21\u6570\u7684\u589e\u591a\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u52a1\u5fc5\u8003\u8651\u6587\u4ef6\u7cfb\u7edf\u4e2d\u7684\u6570\u636e\u91cf\u3002\u6587\u4ef6\u7cfb\u7edf\u6ee1\u8f7d\u6240\u5bfc\u81f4\u7684\u7cfb\u7edf\u505c\u987f\u4f1a\u5e26\u6765\u4e25\u91cd\u7684\u6027\u80fd\u95ee\u9898\u3002\u5f53 Zing \u4ec5\u4f7f\u7528 <code>-Xlog:gc:gc.log<\/code>\u00a0 \u65f6\uff0c\u6216 OpenJDK \u4ec5\u4f7f\u7528 <code>-Xlog:gc,safepoint:gc.log<\/code> \u65f6\uff0c\u60a8\u5c31\u80fd\u6ee1\u8db3\u6240\u6709\u5fc5\u8981\u7684\u6027\u80fd\u6307\u6807\uff0c\u540c\u65f6\u4e0d\u4f1a\u6d6a\u8d39\u592a\u591a\u7a7a\u95f4\u3002\u5c24\u5176\u662f\u5728 Zing \u4e0a <code>-XX:+PrintGCDetails<\/code>, <code>gc*<\/code>, \u548c <code>safepoint<\/code> \u5e76\u4e0d\u662f\u5fc5\u9700\u7684\uff0c\u56e0\u4e3a\u5b83\u4eec\u4e0d\u4f1a\u5728 GCLogAnalyzer \u4e2d\u6dfb\u52a0\u66f4\u591a\u56fe\u8868\u3002<\/p>\n\n\n\n<p>\u201cGC \u65e5\u5fd7\u4efb\u52a1\u4e3b\u8981\u662f\u5c06\u6570\u636e\u4fdd\u5b58\u5230\u65e5\u5fd7\u6587\u4ef6\u4e2d\uff0c\u201dAzul \u9996\u5e2d\u8f6f\u4ef6\u5de5\u7a0b\u5e08 Deepak Sreedhar \u6307\u51fa\uff0c\u201c\u7528\u4e8e\u5b58\u50a8\u8fd9\u4e9b\u6587\u4ef6\u7684 I\/O \u7c7b\u578b\u53ef\u80fd\u4f1a\u5f71\u54cd\u65e5\u5fd7\u8bb0\u5f55\u7684\u6027\u80fd\uff0c\u4f46\u4e0d\u4f1a\u76f4\u63a5\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u672c\u8eab\u3002\u56e0\u6b64\uff0c\u53ef\u80fd\u51fa\u73b0\u7684\u4e00\u4e9b\u95ee\u9898\u4e0e GC \u65e5\u5fd7\u8bb0\u5f55\u7684\u6027\u80fd\u65e0\u5173\uff0c\u800c\u662f\u4e0e I\/O \u901f\u5ea6\u6709\u5173\u3002\u5982\u679c\u65e0\u6cd5\u8db3\u591f\u5feb\u901f\u5730\u5b9e\u65f6\u4fdd\u5b58\u65e5\u5fd7\uff0cOpenJDK \u53ef\u4ee5\u9009\u62e9\u901a\u8fc7 <code>Xlog:async<\/code> \u5f02\u6b65\u7edf\u4e00\u65e5\u5fd7\u8bb0\u5f55\u3002\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"341\" src=\"https:\/\/azul.imgix.net\/wp-content\/uploads\/Sreedhar-quote-June-2024-1024x341.jpg?auto=format&crop=faces,entropy&fit=max&q=80&s=e5937ecb57fdb0ff1ffd354643965c29\" alt=\"\" class=\"wp-image-72044\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-azul-zing-\u7684-gc-\u65e5\u5fd7\u8bb0\u5f55\"><strong>Azul Zing \u7684 GC \u65e5\u5fd7\u8bb0\u5f55<\/strong><\/h2>\n\n\n\n<p>\u4f7f\u7528 Azul Zing \u65f6\uff0c\u60a8\u53ea\u9700\u6dfb\u52a0 <code>-Xlog:gc:gc.log<\/code>\u00a0\u5373\u53ef\u6307\u793a Zing \u5b58\u50a8\u5783\u573e\u6536\u96c6\u5668\u65e5\u5fd7\u6587\u4ef6\u3002 \u4e0d\u9700\u8981\u4f7f\u7528e <code>gc*<\/code> \u6216 <code>safepoint<\/code> \u7b49\u989d\u5916\u53c2\u6570\u6765\u63d0\u9ad8\u8be6\u7ec6\u7a0b\u5ea6\uff0c\u56e0\u4e3a Zing \u59cb\u7ec8\u4f1a\u8bb0\u5f55\u5b89\u5168\u70b9\u6682\u505c\uff0c\u751a\u81f3\u8fd8\u4f1a\u8bb0\u5f55 OpenJDK GC \u65e5\u5fd7\u4e2d\u9ed8\u8ba4\u4e0d\u663e\u793a\u7684\u5176\u4ed6\u4fe1\u606f\uff0c\u5982 JIT \u7f16\u8bd1\u5668\u6d3b\u52a8\u3001CPU \u548c\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\u3001Linux \u9875\u9762\u7f13\u5b58\u6307\u6807\uff0c\u4ee5\u53ca\u5176\u4ed6\u4e00\u4e9b\u5e38\u7528\u4e8e\u7cfb\u7edf\u6027\u80fd\u5206\u6790\u7684\u6307\u6807\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-\u5206\u6790-gc-\u65e5\u5fd7\"><strong>\u5206\u6790 GC \u65e5\u5fd7<\/strong><\/h2>\n\n\n\n<p>\u6709\u591a\u79cd\u5de5\u5177\u53ef\u7528\u4e8e\u5206\u6790 GC \u65e5\u5fd7\u6587\u4ef6\u7684\u5185\u5bb9\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>JVM <\/strong><strong>\u5185\u7f6e\u7684<\/strong><strong> jstat <\/strong><strong>\u547d\u4ee4\uff1a<\/strong>\u6b64\u5b9e\u7528\u7a0b\u5e8f\u53ef\u663e\u793a\u6027\u80fd\u7edf\u8ba1\u6570\u636e\uff0c\u4e5f\u53ef\u7528\u4e8e\u8f93\u51fa\u5783\u573e\u6536\u96c6\u5668\u7edf\u8ba1\u6570\u636e\u3002<\/li>\n\n\n\n<li><strong>VisualVM<\/strong>\uff1a\u6b64\u5de5\u5177\u63d0\u4f9b\u4e86 JVM \u4e0d\u540c\u65b9\u9762\u7684\u591a\u79cd\u89c6\u56fe\uff0c\u5305\u62ec\u5783\u573e\u6536\u96c6\u3002\u5b83\u8fd8\u63d0\u4f9b\u5b9e\u65f6\u6307\u6807\uff0c\u6709\u52a9\u4e8e\u5b9e\u65f6\u5206\u6790\u95ee\u9898\u3002\u60a8\u53ef\u4ee5\u4ece <a href=\"https:\/\/visualvm.github.io\/\">GitHub<\/a> \u4e0b\u8f7d\u6b64\u5de5\u5177\u3002<\/li>\n\n\n\n<li><strong>Azul GC <\/strong><strong>\u65e5\u5fd7\u5206\u6790\u5668<\/strong>\uff1a\u8bfb\u53d6 GC \u65e5\u5fd7\u5e76\u5c06\u5176\u53ef\u89c6\u5316\u4e3a\u4e00\u7ec4\u968f\u65f6\u95f4\uff08\u5b9e\u9645\u65f6\u95f4\u548c\u6b63\u5e38\u8fd0\u884c\u65f6\u95f4\uff09\u53d8\u5316\u7684\u56fe\u8868\u3002\u5b83\u663e\u793a\u6709\u5173\u5783\u573e\u6536\u96c6\u5668\u3001JIT \u7f16\u8bd1\u5668\u3001\u7cfb\u7edf\u6307\u6807\u548c ReadyNow \u7edf\u8ba1\u6570\u636e\u7684\u4fe1\u606f\u3002\u6b64\u56fe\u5f62\u684c\u9762\u5e94\u7528\u7a0b\u5e8f<a href=\"https:\/\/docs.azul.com\/prime\/GC-Log-Analyzer\" target=\"_blank\" rel=\"noreferrer noopener\">\u5728\u6b64\u5904\u6709\u6587\u6863\u8bf4\u660e<\/a>\uff0c<a href=\"https:\/\/www.azul.com\/tutorial\/garbage-collection-log-analyzer\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u5728\u6b64\u5904\u63d0\u4f9b<\/a>\u89c6\u9891\u6f14\u793a\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-\u7ed3\u8bed\"><strong>\u7ed3\u8bed<\/strong><\/h2>\n\n\n\n<p>\u5c3d\u7ba1\u4f7f\u7528\u5783\u573e\u6536\u96c6\u65e5\u5fd7\u4f1a\u4ea7\u751f\u6781\u4f4e\u7684\u6027\u80fd\u6210\u672c\uff0c\u4f46\u8fd9\u79cd\u4ea4\u6362\u901a\u5e38\u662f\u503c\u5f97\u7684\uff0c\u56e0\u4e3a\u5728\u8c03\u6574\u5783\u573e\u6536\u96c6\u548c\u8bca\u65ad\u5185\u5b58\u95ee\u9898\u65f6\uff0c\u65e5\u5fd7\u5f80\u5f80\u4e0d\u53ef\u6216\u7f3a\u3002\u5982\u679c\u4e0d\u542f\u7528 GC \u65e5\u5fd7\uff0c\u60a8\u53ef\u80fd\u65e0\u6cd5\u6df1\u5165\u4e86\u89e3 JVM \u5982\u4f55\u5728\u8fd0\u884c\u65f6\u52a8\u6001\u7ba1\u7406\u5185\u5b58\u3002\u8fd9\u4e9b\u4fe1\u606f\u5bf9\u4e8e\u76d1\u89c6 Java \u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3001\u8bca\u65ad\u5185\u5b58\u6cc4\u6f0f\u548c\u8c03\u6574 JVM \u7684\u5783\u573e\u6536\u96c6\u914d\u7f6e\u975e\u5e38\u6709\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u4eec\u6709\u65f6\u4f1a\u9047\u5230\u4e00\u4e9b Java \u7528\u6237\uff0c\u4ed6\u4eec\u8ba4\u4e3a\u542f\u7528\u5783\u573e\u6536\u96c6\u65e5\u5fd7\u8bb0\u5f55\u4f1a\u4e25\u91cd\u5f71\u54cd\u6027\u80fd\u6307\u6807\u3002\u8ba9\u6211\u4eec\u6765\u770b\u770b\u4e8b\u5b9e\u548c\u8c2c\u89c1\u2026\u2026 [&hellip;]<\/p>\n","protected":false},"author":50,"featured_media":72051,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[212,443,447,266],"tags":[],"resource_categories":[],"industry":[],"product":[],"role":[],"resource_topic":[],"class_list":["post-72659","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-212","category-java-zh-hans","category-performance-zh-hans","category-java-news-updates"],"acf":{"article_smart_summary":null,"article_sidebar_nav_items":null,"article_cta":null,"block_background_image":null,"block_background_image_sizing":null,"block_background_overflow":null,"block_background_color":null,"inline_link":null,"text_color":null,"block_margin_top":null,"block_padding_top":null,"block_padding_bottom":null,"block_margin_bottom":null,"link":[""],"appearance":null,"color":null,"show_arrow":null,"style":null,"image":null,"background_color":null,"background_image":null,"overline":null,"overline_options":null,"headline":null,"headline_options":null,"description":null,"description_options":null,"cta":null,"text_align":null,"chart_type":null,"chart_options":null,"chart_labels":null,"chart_datasets":null,"countdown_date_time":null,"countdown_clock_color":null,"countdown_label_color":null,"size":null,"use_gradient_text":null,"start_color":null,"end_color":null,"name":null,"iconify":null,"logos":null,"form_headline":null,"form_number":null,"form_redirect_enabled":null,"redirect":null,"form_translation_disable":null,"zi_id":null,"zi_fields":null,"zi_lookup_field":null,"cookie_name":null,"cookie_redirect":null,"drift_playbook_campaign_id":null,"input":null,"button":null,"logo":null,"ctas":null,"alignment":null,"cta_alignment":null,"grid_layout":null,"show_featured_images":null,"show_excerpts":null,"featured_image_size":null,"cards":null,"thank_you_page_enable":null,"banner_image":null,"subheadline":null,"download_button":null,"featured_video":null,"additional_videos":null,"smart_content":null,"animation":null,"video_type":null,"vimeo_video_id":null,"youtube_video_id":null,"upload":null},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Java \u5783\u573e\u6536\u96c6\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u4f1a\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\uff1f - Azul | Better Java Performance, Superior Java Support<\/title>\n<meta name=\"description\" content=\"Java \u5783\u573e\u6536\u96c6\u5668\u662f Java \u865a\u62df\u673a (JVM) \u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\uff0c\u80fd\u591f\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002\" \/>\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.azul.com\/blog\/does-java-garbage-collection-logging-impact-application-performance\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java \u5783\u573e\u6536\u96c6\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u4f1a\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\uff1f\" \/>\n<meta property=\"og:description\" content=\"\u6211\u4eec\u6709\u65f6\u4f1a\u9047\u5230\u4e00\u4e9b Java \u7528\u6237\uff0c\u4ed6\u4eec\u8ba4\u4e3a\u542f\u7528\u5783\u573e\u6536\u96c6\u65e5\u5fd7\u8bb0\u5f55\u4f1a\u4e25\u91cd\u5f71\u54cd\u6027\u80fd\u6307\u6807\u3002\u8ba9\u6211\u4eec\u6765\u770b\u770b\u4e8b\u5b9e\u548c\u8c2c\u89c1\u2026\u2026 \u5173\u4e8e\u5783\u573e\u6536\u96c6\u5668 Java \u5783\u573e\u6536\u96c6\u5668\u662f Java \u865a\u62df\u673a (JVM) \u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\uff0c\u80fd\u591f\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002\u5982\u679c\u60a8\u60f3\u6df1\u5165\u4e86\u89e3 Java\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.azul.com\/blog\/does-java-garbage-collection-logging-impact-application-performance\/\" \/>\n<meta property=\"og:site_name\" content=\"Azul | Better Java Performance, Superior Java Support\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/AzulSystemsInc\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-11T07:07:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-18T19:00:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.azul.com\/wp-content\/uploads\/2024-06-11-garbage-collection.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Frank Delporte\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@azulsystems\" \/>\n<meta name=\"twitter:site\" content=\"@azulsystems\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Frank Delporte\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/does-java-garbage-collection-logging-impact-application-performance\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/does-java-garbage-collection-logging-impact-application-performance\\\/\"},\"author\":{\"name\":\"Frank Delporte\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/#\\\/schema\\\/person\\\/33f8c56c1520a3aa656ad7a2c143b6cc\"},\"headline\":\"Java \u5783\u573e\u6536\u96c6\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u4f1a\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\uff1f\",\"datePublished\":\"2024-06-11T07:07:43+00:00\",\"dateModified\":\"2024-07-18T19:00:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/does-java-garbage-collection-logging-impact-application-performance\\\/\"},\"wordCount\":107,\"publisher\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/does-java-garbage-collection-logging-impact-application-performance\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.azul.com\\\/wp-content\\\/uploads\\\/2024-06-11-garbage-collection.jpg\",\"articleSection\":{\"1\":\"Java\",\"2\":\"Performance\",\"3\":\"Java News &amp; Updates\"},\"inLanguage\":\"zh-CN\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/does-java-garbage-collection-logging-impact-application-performance\\\/\",\"url\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/does-java-garbage-collection-logging-impact-application-performance\\\/\",\"name\":\"Java \u5783\u573e\u6536\u96c6\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u4f1a\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\uff1f - Azul | Better Java Performance, Superior Java Support\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/does-java-garbage-collection-logging-impact-application-performance\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/does-java-garbage-collection-logging-impact-application-performance\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.azul.com\\\/wp-content\\\/uploads\\\/2024-06-11-garbage-collection.jpg\",\"datePublished\":\"2024-06-11T07:07:43+00:00\",\"dateModified\":\"2024-07-18T19:00:26+00:00\",\"description\":\"Java \u5783\u573e\u6536\u96c6\u5668\u662f Java \u865a\u62df\u673a (JVM) \u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\uff0c\u80fd\u591f\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/does-java-garbage-collection-logging-impact-application-performance\\\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.azul.com\\\/blog\\\/does-java-garbage-collection-logging-impact-application-performance\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/does-java-garbage-collection-logging-impact-application-performance\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.azul.com\\\/wp-content\\\/uploads\\\/2024-06-11-garbage-collection.jpg\",\"contentUrl\":\"https:\\\/\\\/www.azul.com\\\/wp-content\\\/uploads\\\/2024-06-11-garbage-collection.jpg\",\"width\":1280,\"height\":500,\"caption\":\"Does Garbage Collection Logging Impact Application Performance?\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/does-java-garbage-collection-logging-impact-application-performance\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.azul.com\\\/zh-hans\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java \u5783\u573e\u6536\u96c6\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u4f1a\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/#website\",\"url\":\"https:\\\/\\\/www.azul.com\\\/\",\"name\":\"Azul | Better Java Performance, Superior Java Support\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.azul.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/#organization\",\"name\":\"Azul\",\"alternateName\":\"Azul Systems\",\"url\":\"https:\\\/\\\/www.azul.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.azul.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/logo.svg\",\"contentUrl\":\"https:\\\/\\\/www.azul.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/logo.svg\",\"width\":112,\"height\":48,\"caption\":\"Azul\"},\"image\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/AzulSystemsInc\",\"https:\\\/\\\/x.com\\\/azulsystems\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCSoJZa--HhjV9iXtbHUmm8A\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/azul-systems\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/#\\\/schema\\\/person\\\/33f8c56c1520a3aa656ad7a2c143b6cc\",\"name\":\"Frank Delporte\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/49bc68b710662ce7112adc936bb9144274a2408234cb42fe4457fa12235e03e1?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/49bc68b710662ce7112adc936bb9144274a2408234cb42fe4457fa12235e03e1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/49bc68b710662ce7112adc936bb9144274a2408234cb42fe4457fa12235e03e1?s=96&d=mm&r=g\",\"caption\":\"Frank Delporte\"},\"description\":\"Senior Technical Writer and Java Champion, Azul\",\"jobTitle\":\"Java Champion\",\"url\":\"https:\\\/\\\/www.azul.com\\\/zh-hans\\\/blog\\\/author\\\/fdelporte\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Java \u5783\u573e\u6536\u96c6\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u4f1a\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\uff1f - Azul | Better Java Performance, Superior Java Support","description":"Java \u5783\u573e\u6536\u96c6\u5668\u662f Java \u865a\u62df\u673a (JVM) \u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\uff0c\u80fd\u591f\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002","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.azul.com\/blog\/does-java-garbage-collection-logging-impact-application-performance\/","og_locale":"zh_CN","og_type":"article","og_title":"Java \u5783\u573e\u6536\u96c6\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u4f1a\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\uff1f","og_description":"\u6211\u4eec\u6709\u65f6\u4f1a\u9047\u5230\u4e00\u4e9b Java \u7528\u6237\uff0c\u4ed6\u4eec\u8ba4\u4e3a\u542f\u7528\u5783\u573e\u6536\u96c6\u65e5\u5fd7\u8bb0\u5f55\u4f1a\u4e25\u91cd\u5f71\u54cd\u6027\u80fd\u6307\u6807\u3002\u8ba9\u6211\u4eec\u6765\u770b\u770b\u4e8b\u5b9e\u548c\u8c2c\u89c1\u2026\u2026 \u5173\u4e8e\u5783\u573e\u6536\u96c6\u5668 Java \u5783\u573e\u6536\u96c6\u5668\u662f Java \u865a\u62df\u673a (JVM) \u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\uff0c\u80fd\u591f\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002\u5982\u679c\u60a8\u60f3\u6df1\u5165\u4e86\u89e3 Java","og_url":"https:\/\/www.azul.com\/blog\/does-java-garbage-collection-logging-impact-application-performance\/","og_site_name":"Azul | Better Java Performance, Superior Java Support","article_publisher":"https:\/\/www.facebook.com\/AzulSystemsInc","article_published_time":"2024-06-11T07:07:43+00:00","article_modified_time":"2024-07-18T19:00:26+00:00","og_image":[{"width":1280,"height":500,"url":"https:\/\/www.azul.com\/wp-content\/uploads\/2024-06-11-garbage-collection.jpg","type":"image\/jpeg"}],"author":"Frank Delporte","twitter_card":"summary_large_image","twitter_creator":"@azulsystems","twitter_site":"@azulsystems","twitter_misc":{"\u4f5c\u8005":"Frank Delporte","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.azul.com\/blog\/does-java-garbage-collection-logging-impact-application-performance\/#article","isPartOf":{"@id":"https:\/\/www.azul.com\/blog\/does-java-garbage-collection-logging-impact-application-performance\/"},"author":{"name":"Frank Delporte","@id":"https:\/\/www.azul.com\/#\/schema\/person\/33f8c56c1520a3aa656ad7a2c143b6cc"},"headline":"Java \u5783\u573e\u6536\u96c6\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u4f1a\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\uff1f","datePublished":"2024-06-11T07:07:43+00:00","dateModified":"2024-07-18T19:00:26+00:00","mainEntityOfPage":{"@id":"https:\/\/www.azul.com\/blog\/does-java-garbage-collection-logging-impact-application-performance\/"},"wordCount":107,"publisher":{"@id":"https:\/\/www.azul.com\/#organization"},"image":{"@id":"https:\/\/www.azul.com\/blog\/does-java-garbage-collection-logging-impact-application-performance\/#primaryimage"},"thumbnailUrl":"https:\/\/www.azul.com\/wp-content\/uploads\/2024-06-11-garbage-collection.jpg","articleSection":{"1":"Java","2":"Performance","3":"Java News &amp; Updates"},"inLanguage":"zh-CN"},{"@type":"WebPage","@id":"https:\/\/www.azul.com\/blog\/does-java-garbage-collection-logging-impact-application-performance\/","url":"https:\/\/www.azul.com\/blog\/does-java-garbage-collection-logging-impact-application-performance\/","name":"Java \u5783\u573e\u6536\u96c6\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u4f1a\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\uff1f - Azul | Better Java Performance, Superior Java Support","isPartOf":{"@id":"https:\/\/www.azul.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.azul.com\/blog\/does-java-garbage-collection-logging-impact-application-performance\/#primaryimage"},"image":{"@id":"https:\/\/www.azul.com\/blog\/does-java-garbage-collection-logging-impact-application-performance\/#primaryimage"},"thumbnailUrl":"https:\/\/www.azul.com\/wp-content\/uploads\/2024-06-11-garbage-collection.jpg","datePublished":"2024-06-11T07:07:43+00:00","dateModified":"2024-07-18T19:00:26+00:00","description":"Java \u5783\u573e\u6536\u96c6\u5668\u662f Java \u865a\u62df\u673a (JVM) \u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\uff0c\u80fd\u591f\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002","breadcrumb":{"@id":"https:\/\/www.azul.com\/blog\/does-java-garbage-collection-logging-impact-application-performance\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.azul.com\/blog\/does-java-garbage-collection-logging-impact-application-performance\/"]}]},{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/www.azul.com\/blog\/does-java-garbage-collection-logging-impact-application-performance\/#primaryimage","url":"https:\/\/www.azul.com\/wp-content\/uploads\/2024-06-11-garbage-collection.jpg","contentUrl":"https:\/\/www.azul.com\/wp-content\/uploads\/2024-06-11-garbage-collection.jpg","width":1280,"height":500,"caption":"Does Garbage Collection Logging Impact Application Performance?"},{"@type":"BreadcrumbList","@id":"https:\/\/www.azul.com\/blog\/does-java-garbage-collection-logging-impact-application-performance\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.azul.com\/zh-hans\/"},{"@type":"ListItem","position":2,"name":"Java \u5783\u573e\u6536\u96c6\u65e5\u5fd7\u8bb0\u5f55\u662f\u5426\u4f1a\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/www.azul.com\/#website","url":"https:\/\/www.azul.com\/","name":"Azul | Better Java Performance, Superior Java Support","description":"","publisher":{"@id":"https:\/\/www.azul.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.azul.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-CN"},{"@type":"Organization","@id":"https:\/\/www.azul.com\/#organization","name":"Azul","alternateName":"Azul Systems","url":"https:\/\/www.azul.com\/","logo":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/www.azul.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.azul.com\/wp-content\/uploads\/2021\/01\/logo.svg","contentUrl":"https:\/\/www.azul.com\/wp-content\/uploads\/2021\/01\/logo.svg","width":112,"height":48,"caption":"Azul"},"image":{"@id":"https:\/\/www.azul.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/AzulSystemsInc","https:\/\/x.com\/azulsystems","https:\/\/www.youtube.com\/channel\/UCSoJZa--HhjV9iXtbHUmm8A","https:\/\/www.linkedin.com\/company\/azul-systems"]},{"@type":"Person","@id":"https:\/\/www.azul.com\/#\/schema\/person\/33f8c56c1520a3aa656ad7a2c143b6cc","name":"Frank Delporte","image":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/secure.gravatar.com\/avatar\/49bc68b710662ce7112adc936bb9144274a2408234cb42fe4457fa12235e03e1?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/49bc68b710662ce7112adc936bb9144274a2408234cb42fe4457fa12235e03e1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/49bc68b710662ce7112adc936bb9144274a2408234cb42fe4457fa12235e03e1?s=96&d=mm&r=g","caption":"Frank Delporte"},"description":"Senior Technical Writer and Java Champion, Azul","jobTitle":"Java Champion","url":"https:\/\/www.azul.com\/zh-hans\/blog\/author\/fdelporte\/"}]}},"_links":{"self":[{"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/posts\/72659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=72659"}],"version-history":[{"count":0,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/posts\/72659\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/media\/72051"}],"wp:attachment":[{"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=72659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=72659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=72659"},{"taxonomy":"resource_categories","embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/resource_categories?post=72659"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/industry?post=72659"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/product?post=72659"},{"taxonomy":"role","embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/role?post=72659"},{"taxonomy":"resource_topic","embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/resource_topic?post=72659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}