{"id":33780,"date":"2025-04-28T15:49:29","date_gmt":"2025-04-28T07:49:29","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/33780.html"},"modified":"2025-04-28T15:49:29","modified_gmt":"2025-04-28T07:49:29","slug":"java-gc-%e5%9f%ba%e7%a1%80%e7%9f%a5%e8%af%86%e5%bf%ab%e9%80%9f%e5%9b%9e%e9%a1%be","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/33780.html","title":{"rendered":"Java GC \u57fa\u7840\u77e5\u8bc6\u5feb\u901f\u56de\u987e"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E4%B8%80%E3%80%81Java%20%E5%9E%83%E5%9C%BE%E5%9B%9E%E6%94%B6%EF%BC%88GC%EF%BC%89%E5%9F%BA%E6%9C%AC%E6%A6%82%E5%BF%B5%E5%92%8C%E9%87%8D%E8%A6%81%E6%80%A7%E5%88%86%E6%9E%90-toc\" style=\"margin-left:0px\">\u4e00\u3001Java \u5783\u573e\u56de\u6536\uff08GC\uff09\u57fa\u672c\u6982\u5ff5\u548c\u91cd\u8981\u6027\u5206\u6790<\/p>\n<p id=\"%EF%BC%88%E4%B8%80%EF%BC%89%20Java%20%E5%9E%83%E5%9C%BE%E5%9B%9E%E6%94%B6%EF%BC%88GC%EF%BC%89%E5%9F%BA%E6%9C%AC%E6%A6%82%E5%BF%B5%E5%9B%9E%E9%A1%BE-toc\" style=\"margin-left:40px\">\uff08\u4e00\uff09 Java \u5783\u573e\u56de\u6536\uff08GC\uff09\u57fa\u672c\u6982\u5ff5\u56de\u987e<\/p>\n<p id=\"1.GC%20%E4%B8%89%E7%A7%8D%E5%B8%B8%E8%A7%81%E8%AF%AD%E4%B9%89-toc\" style=\"margin-left:80px\">1.GC \u4e09\u79cd\u5e38\u89c1\u8bed\u4e49<\/p>\n<p id=\"2.Mutator%EF%BC%9A%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E7%9A%84%E5%86%85%E5%AD%98%E7%AE%A1%E7%90%86%E8%A7%92%E8%89%B2-toc\" style=\"margin-left:80px\">2.Mutator\uff1a\u5e94\u7528\u7a0b\u5e8f\u7684\u5185\u5b58\u7ba1\u7406\u89d2\u8272<\/p>\n<p id=\"3.TLAB%EF%BC%88%E7%BA%BF%E7%A8%8B%E6%9C%AC%E5%9C%B0%E5%88%86%E9%85%8D%E7%BC%93%E5%AD%98%EF%BC%89-toc\" style=\"margin-left:80px\">3.TLAB\uff08\u7ebf\u7a0b\u672c\u5730\u5206\u914d\u7f13\u5b58\uff09<\/p>\n<p id=\"4.Card%20Table%EF%BC%88%E5%8D%A1%E8%A1%A8%EF%BC%89-toc\" style=\"margin-left:80px\">4.Card Table\uff08\u5361\u8868\uff09<\/p>\n<p id=\"%EF%BC%88%E4%BA%8C%EF%BC%89%E4%B8%BA%E4%BB%80%E4%B9%88%E4%BA%86%E8%A7%A3%20GC%20%E5%AF%B9%E5%BC%80%E5%8F%91%E8%80%85%E5%B0%A4%E4%B8%BA%E9%87%8D%E8%A6%81%EF%BC%8C%E7%89%B9%E5%88%AB%E6%98%AF%E5%AF%B9%E4%BA%8E%E6%80%A7%E8%83%BD%E8%B0%83%E4%BC%98%E5%92%8C%E5%86%85%E5%AD%98%E7%AE%A1%E7%90%86-toc\" style=\"margin-left:40px\">\uff08\u4e8c\uff09\u4e3a\u4ec0\u4e48\u4e86\u89e3 GC \u5bf9\u5f00\u53d1\u8005\u5c24\u4e3a\u91cd\u8981\uff0c\u7279\u522b\u662f\u5bf9\u4e8e\u6027\u80fd\u8c03\u4f18\u548c\u5185\u5b58\u7ba1\u7406<\/p>\n<p id=\"1.%20%E5%BA%94%E7%94%A8%E6%80%A7%E8%83%BD%E5%BD%B1%E5%93%8D%E5%88%86%E6%9E%90-toc\" style=\"margin-left:80px\">1. \u5e94\u7528\u6027\u80fd\u5f71\u54cd\u5206\u6790<\/p>\n<p id=\"2.%20%E5%86%85%E5%AD%98%E7%AE%A1%E7%90%86%E4%B8%8E%E6%B3%84%E6%BC%8F%E9%98%B2%E6%AD%A2-toc\" style=\"margin-left:80px\">2. \u5185\u5b58\u7ba1\u7406\u4e0e\u6cc4\u6f0f\u9632\u6b62<\/p>\n<p id=\"3.%20%E4%BC%98%E5%8C%96%E5%BA%94%E7%94%A8%E7%9A%84%E8%B5%84%E6%BA%90%E5%88%A9%E7%94%A8-toc\" style=\"margin-left:80px\">3. \u4f18\u5316\u5e94\u7528\u7684\u8d44\u6e90\u5229\u7528<\/p>\n<p id=\"4.%20%E5%87%8F%E5%B0%91%E6%80%A7%E8%83%BD%E7%93%B6%E9%A2%88-toc\" style=\"margin-left:80px\">4. \u51cf\u5c11\u6027\u80fd\u74f6\u9888<\/p>\n<p id=\"5.%20%E5%AE%9E%E6%97%B6%E7%9B%91%E6%8E%A7%E4%B8%8E%E4%BC%98%E5%8C%96-toc\" style=\"margin-left:80px\">5. \u5b9e\u65f6\u76d1\u63a7\u4e0e\u4f18\u5316<\/p>\n<p id=\"6.%20%E6%94%AF%E6%8C%81%E5%A4%A7%E8%A7%84%E6%A8%A1%E5%BA%94%E7%94%A8%E4%B8%8E%E9%AB%98%E5%B9%B6%E5%8F%91-toc\" style=\"margin-left:80px\">6. \u652f\u6301\u5927\u89c4\u6a21\u5e94\u7528\u4e0e\u9ad8\u5e76\u53d1<\/p>\n<p id=\"%E4%BA%8C%E3%80%81GC%20%E7%9A%84%E5%9F%BA%E6%9C%AC%E5%8E%9F%E7%90%86-toc\" style=\"margin-left:0px\">\u4e8c\u3001GC \u7684\u57fa\u672c\u539f\u7406<\/p>\n<p id=\"%EF%BC%88%E4%B8%80%EF%BC%89%E5%A0%86%EF%BC%88Heap%EF%BC%89%E5%92%8C%E6%A0%88%EF%BC%88Stack%EF%BC%89-toc\" style=\"margin-left:40px\">\uff08\u4e00\uff09\u5806\uff08Heap\uff09\u548c\u6808\uff08Stack\uff09<\/p>\n<p id=\"1.%E9%87%8D%E7%82%B9%E5%85%B3%E6%B3%A8%20%E5%A0%86%20%E5%92%8C%20%E6%A0%88-toc\" style=\"margin-left:80px\">1.\u91cd\u70b9\u5173\u6ce8 \u5806 \u548c \u6808<\/p>\n<p id=\"2.GC%E6%A0%B8%E5%BF%83%E5%A0%86%E7%AE%80%E8%A6%81-toc\" style=\"margin-left:80px\">2.GC\u6838\u5fc3\u5806\u7b80\u8981<\/p>\n<p id=\"%E2%80%8B%E7%BC%96%E8%BE%91-toc\" style=\"margin-left:120px\">\u200b\u7f16\u8f91<\/p>\n<p id=\"%E5%A0%86%E7%9A%84%E6%A0%B8%E5%BF%83%E4%BD%9C%E7%94%A8-toc\" style=\"margin-left:120px\">\u5806\u7684\u6838\u5fc3\u4f5c\u7528<\/p>\n<p id=\"3.%20%E5%A0%86%E7%9A%84%E5%86%85%E5%AD%98%E7%AE%A1%E7%90%86%E4%B8%8E%20GC%20%E7%9A%84%E9%85%8D%E5%90%88-toc\" style=\"margin-left:80px\">3. \u5806\u7684\u5185\u5b58\u7ba1\u7406\u4e0e GC \u7684\u914d\u5408<\/p>\n<p id=\"%EF%BC%88%E4%BA%8C%EF%BC%89%E5%9E%83%E5%9C%BE%E5%9B%9E%E6%94%B6%E7%9A%84%E7%9B%AE%E6%A0%87-toc\" style=\"margin-left:40px\">\uff08\u4e8c\uff09\u5783\u573e\u56de\u6536\u7684\u76ee\u6807<\/p>\n<p id=\"%EF%BC%88%E4%B8%89%EF%BC%89GC%20%E8%A7%A6%E5%8F%91%E6%9C%BA%E5%88%B6-toc\" style=\"margin-left:40px\">\uff08\u4e09\uff09GC \u89e6\u53d1\u673a\u5236<\/p>\n<p id=\"1.%20GC%20%E8%A7%A6%E5%8F%91%E7%9A%84%E5%8E%9F%E5%9B%A0-toc\" style=\"margin-left:80px\">1. GC \u89e6\u53d1\u7684\u539f\u56e0<\/p>\n<p id=\"2.%20GC%20%E8%A7%A6%E5%8F%91%E7%9A%84%E6%97%B6%E6%9C%BA-toc\" style=\"margin-left:80px\">2. GC \u89e6\u53d1\u7684\u65f6\u673a<\/p>\n<p id=\"a.%20Young%20Generation%EF%BC%88%E5%B9%B4%E8%BD%BB%E4%BB%A3%EF%BC%89%20GC-toc\" style=\"margin-left:120px\">a. Young Generation\uff08\u5e74\u8f7b\u4ee3\uff09 GC<\/p>\n<p id=\"b.%20Old%20Generation%EF%BC%88%E8%80%81%E5%B9%B4%E4%BB%A3%EF%BC%89%20GC-toc\" style=\"margin-left:120px\">b. Old Generation\uff08\u8001\u5e74\u4ee3\uff09 GC<\/p>\n<p id=\"c.%20%E5%86%85%E5%AD%98%E5%88%86%E9%85%8D%E5%A4%B1%E8%B4%A5-toc\" style=\"margin-left:120px\">c. \u5185\u5b58\u5206\u914d\u5931\u8d25<\/p>\n<p id=\"3.%20%E5%A6%82%E4%BD%95%E4%BC%98%E5%8C%96%20GC%20%E8%A7%A6%E5%8F%91%E6%9C%BA%E5%88%B6%EF%BC%9F-toc\" style=\"margin-left:80px\">3. \u5982\u4f55\u4f18\u5316 GC \u89e6\u53d1\u673a\u5236\uff1f<\/p>\n<p id=\"%E4%B8%89%E3%80%81Java%E5%9B%9E%E6%94%B6%E5%9E%83%E5%9C%BE%E7%9A%84%E5%9F%BA%E6%9C%AC%E8%BF%87%E7%A8%8B%E4%B8%8E%E5%B8%B8%E7%94%A8%E7%AE%97%E6%B3%95-toc\" style=\"margin-left:0px\">\u4e09\u3001Java\u56de\u6536\u5783\u573e\u7684\u57fa\u672c\u8fc7\u7a0b\u4e0e\u5e38\u7528\u7b97\u6cd5<\/p>\n<p id=\"%E4%BA%8C%E3%80%81%E5%9E%83%E5%9C%BE%E5%88%86%E7%B1%BB-toc\" style=\"margin-left:40px\">\uff08\u4e00\uff09\u5783\u573e\u5206\u7c7b<\/p>\n<p id=\"%E4%B8%89%E3%80%81%E5%9E%83%E5%9C%BE%E6%9F%A5%E6%89%BE-toc\" style=\"margin-left:40px\">\uff08\u4e8c\uff09\u5783\u573e\u67e5\u627e<\/p>\n<p id=\"%E6%9F%A5%E6%89%BE%E5%9E%83%E5%9C%BE%E6%97%B6%E6%9C%BA-toc\" style=\"margin-left:80px\">1.\u67e5\u627e\u5783\u573e\u65f6\u673a<\/p>\n<p id=\"%E6%9F%A5%E6%89%BE%E5%9E%83%E5%9C%BE%E6%93%8D%E4%BD%9C-toc\" style=\"margin-left:80px\">2.\u67e5\u627e\u5783\u573e\u64cd\u4f5c<\/p>\n<p id=\"gc-roots-toc\" style=\"margin-left:80px\">3.GC Roots<\/p>\n<p id=\"%E5%9B%9B%E3%80%81%E5%9E%83%E5%9C%BE%E6%B8%85%E7%90%86-toc\" style=\"margin-left:40px\">\uff08\u4e09\uff09\u5783\u573e\u6e05\u7406<\/p>\n<p id=\"%E6%A0%87%E8%AE%B0-%E6%B8%85%E9%99%A4%EF%BC%88Mark-Sweep%EF%BC%89-toc\" style=\"margin-left:80px\">1.\u6807\u8bb0-\u6e05\u9664\uff08Mark-Sweep\uff09<\/p>\n<p id=\"%E6%A0%87%E8%AE%B0-%E5%A4%8D%E5%88%B6%EF%BC%88Mark-Copy%EF%BC%89-toc\" style=\"margin-left:80px\">2.\u6807\u8bb0-\u590d\u5236\uff08Mark-Copy\uff09<\/p>\n<p id=\"43-\u6807\u8bb0-\u6574\u7406mark-compact-toc\" style=\"margin-left:80px\">3.\u6807\u8bb0-\u6574\u7406\uff08Mark-Compact\uff09<\/p>\n<p id=\"%E5%88%86%E4%BB%A3%E6%94%B6%E9%9B%86%E7%AE%97%E6%B3%95-toc\" style=\"margin-left:40px\">\uff08\u56db\uff09\u5206\u4ee3\u6536\u96c6\u7b97\u6cd5<\/p>\n<p id=\"%E5%88%86%E4%BB%A3%E5%8C%BA%E5%9F%9F%E6%8F%8F%E8%BF%B0-toc\" style=\"margin-left:80px\">1.\u5206\u4ee3\u533a\u57df\u63cf\u8ff0<\/p>\n<p id=\"id-3\uff09\u5206\u4ee3\u5783\u573e\u56de\u6536\u7b97\u6cd5\u6267\u884c\u8fc7\u7a0b-toc\" style=\"margin-left:80px\">2.\u5206\u4ee3\u5783\u573e\u56de\u6536\u7b97\u6cd5\u6267\u884c\u8fc7\u7a0b<\/p>\n<p id=\"%E5%9B%9B%E3%80%81%E5%B8%B8%E8%A7%81%E7%9A%84%E5%9E%83%E5%9C%BE%E5%9B%9E%E6%94%B6%E5%99%A8%E5%88%86%E6%9E%90-toc\" style=\"margin-left:0px\">\u56db\u3001\u5e38\u89c1\u7684\u5783\u573e\u56de\u6536\u5668\u5206\u6790<\/p>\n<p id=\"%EF%BC%88%E4%B8%80%EF%BC%89%E5%88%86%E4%BB%A3%E6%94%B6%E9%9B%86%EF%BC%88Generational%20Collection%EF%BC%89-toc\" style=\"margin-left:40px\">\uff08\u4e00\uff09\u5206\u4ee3\u6536\u96c6\uff08Generational Collection\uff09<\/p>\n<p id=\"%EF%BC%88%E4%BA%8C%EF%BC%89%E5%88%86%E5%8C%BA%E6%94%B6%E9%9B%86%EF%BC%88Region-based%20Collection%EF%BC%89-toc\" style=\"margin-left:40px\">\uff08\u4e8c\uff09\u5206\u533a\u6536\u96c6\uff08Region-based Collection\uff09<\/p>\n<p id=\"%EF%BC%88%E4%B8%89%EF%BC%89%E6%94%B6%E9%9B%86%E5%99%A8%E9%80%89%E6%8B%A9%E7%9A%84%E8%80%83%E8%99%91%E5%9B%A0%E7%B4%A0-toc\" style=\"margin-left:40px\">\uff08\u4e09\uff09\u6536\u96c6\u5668\u9009\u62e9\u7684\u8003\u8651\u56e0\u7d20<\/p>\n<p id=\"%E4%BA%94%E3%80%81GC%20%E6%80%A7%E8%83%BD%E8%B0%83%E4%BC%98-toc\" style=\"margin-left:0px\">\u4e94\u3001GC \u6027\u80fd\u8c03\u4f18<\/p>\n<p id=\"%E5%85%AD%E3%80%81%E6%80%BB%E7%BB%93-toc\" style=\"margin-left:0px\">\u516d\u3001\u603b\u7ed3<\/p>\n<hr id=\"hr-toc\">\n<p>\u5e72\u8d27\u5206\u4eab\uff0c\u611f\u8c22\u60a8\u7684\u9605\u8bfb\uff01<\/p>\n<p>\u5728 Java \u7684\u4e16\u754c\u91cc\uff0c\u5185\u5b58\u7ba1\u7406\u662f\u6bcf\u4e2a\u5f00\u53d1\u8005\u90fd\u65e0\u6cd5\u5ffd\u89c6\u7684\u5173\u952e\u73af\u8282\u3002\u800c\u5783\u573e\u56de\u6536\uff08GC\uff09\u4f5c\u4e3a Java \u5185\u5b58\u7ba1\u7406\u7684\u6838\u5fc3\uff0c\u867d\u7136\u5927\u591a\u6570\u65f6\u5019\u5728\u540e\u53f0\u9ed8\u9ed8\u5de5\u4f5c\uff0c\u5374\u76f4\u63a5\u5f71\u54cd\u7740\u5e94\u7528\u7684\u6027\u80fd\u4e0e\u7a33\u5b9a\u6027\u3002\u4f60\u662f\u5426\u66fe\u5728\u5e94\u7528\u6027\u80fd\u95ee\u9898\u4e2d\u8ff7\u832b\uff0c\u4e0d\u77e5\u9053\u662f\u5185\u5b58\u6cc4\u6f0f\u5bfc\u81f4\u7684\u5d29\u6e83\uff0c\u8fd8\u662f\u4e0d\u5408\u9002\u7684\u5783\u573e\u56de\u6536\u7b56\u7565\u62d6\u6162\u4e86\u54cd\u5e94\u901f\u5ea6\uff1f\u4f60\u662f\u5426\u89c9\u5f97 GC \u4f3c\u4e4e\u603b\u662f\u5728\u4e0d\u7ecf\u610f\u95f4\u62d6\u6162\u4e86\u5e94\u7528\u7684\u8fd0\u884c\u901f\u5ea6\uff1f<\/p>\n<p>\u8ba9\u6211\u4eec\u4e00\u8d77\u4ece\u5783\u573e\u56de\u6536\u7684\u57fa\u7840\u5f00\u59cb\uff0c\u63a2\u7d22\u4f18\u5316\u5185\u5b58\u7ba1\u7406\u7684\u65e0\u9650\u53ef\u80fd\uff01<\/p>\n<p>\u5386\u53f2\u4e3b\u8981\u57fa\u672c\u6587\u7ae0\u56de\u987e\uff1a<\/p>\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\">\n<tbody>\n<tr>\n<td style=\"width:174px\">\u6d89\u730e\u5185\u5bb9<\/td>\n<td style=\"width:514px\">\u5177\u4f53\u94fe\u63a5<\/td>\n<\/tr>\n<tr>\n<td style=\"width:174px\">\u5783\u573e\u56de\u6536\u57fa\u672c\u77e5\u8bc6\u5185\u5bb9<\/td>\n<td style=\"width:514px\">Java\u56de\u6536\u5783\u573e\u7684\u57fa\u672c\u8fc7\u7a0b\u4e0e\u5e38\u7528\u7b97\u6cd5_java\u5783\u573e\u56de\u6536\u8fc7\u7a0b-CSDN\u535a\u5ba2<\/td>\n<\/tr>\n<tr>\n<td style=\"width:174px\">CMS\u8c03\u4f18\u548c\u6848\u4f8b\u5206\u6790<\/td>\n<td style=\"width:514px\">CMS\u5783\u573e\u56de\u6536\u5668\u4ecb\u7ecd\u4e0e\u4f18\u5316\u5206\u6790\u6848\u5217\u6574\u7406\u603b\u7ed3_cms \u5bf9\u8001\u5e74\u4ee3\u7684\u56de\u6536\u505a\u4e86\u54ea\u4e9b\u4f18\u5316\u8bbe\u8ba1-CSDN\u535a\u5ba2<\/td>\n<\/tr>\n<tr>\n<td style=\"width:174px\">G1\u8c03\u4f18\u5206\u6790<\/td>\n<td style=\"width:514px\">Java Hotspot G1 GC\u7684\u7406\u89e3\u603b\u7ed3_java g1-CSDN\u535a\u5ba2<\/td>\n<\/tr>\n<tr>\n<td style=\"width:174px\">ZGC\u57fa\u7840\u548c\u8c03\u4f18\u6848\u4f8b\u5206\u6790<\/td>\n<td style=\"width:514px\">\u5783\u573e\u56de\u6536\u5668ZGC\u5e94\u7528\u5206\u6790\u603b\u7ed3-CSDN\u535a\u5ba2<\/td>\n<\/tr>\n<tr>\n<td style=\"width:174px\">\n<p>\u4eceES\u7684JVM\u914d\u7f6e\u8d77\u6b65\u601d\u8003JVM\u5e38\u89c1\u53c2\u6570\u4f18\u5316<\/p>\n<\/td>\n<td style=\"width:514px\">\u4eceES\u7684JVM\u914d\u7f6e\u8d77\u6b65\u601d\u8003JVM\u5e38\u89c1\u53c2\u6570\u4f18\u5316_es jvm\u914d\u7f6e-CSDN\u535a\u5ba2<\/td>\n<\/tr>\n<tr>\n<td style=\"width:174px\">\u9ad8\u9891\u9762\u8bd5\u9898\u6c47\u603b<\/td>\n<td style=\"width:514px\">JVM\u9ad8\u9891\u57fa\u672c\u9762\u8bd5\u95ee\u9898\u6574\u7406_jvm\u9762\u8bd5\u9898-CSDN\u535a\u5ba2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"%E4%B8%80%E3%80%81Java%20%E5%9E%83%E5%9C%BE%E5%9B%9E%E6%94%B6%EF%BC%88GC%EF%BC%89%E5%9F%BA%E6%9C%AC%E6%A6%82%E5%BF%B5%E5%92%8C%E9%87%8D%E8%A6%81%E6%80%A7%E5%88%86%E6%9E%90\">\u4e00\u3001Java \u5783\u573e\u56de\u6536\uff08GC\uff09\u57fa\u672c\u6982\u5ff5\u548c\u91cd\u8981\u6027\u5206\u6790<\/h2>\n<h3 id=\"%EF%BC%88%E4%B8%80%EF%BC%89%20Java%20%E5%9E%83%E5%9C%BE%E5%9B%9E%E6%94%B6%EF%BC%88GC%EF%BC%89%E5%9F%BA%E6%9C%AC%E6%A6%82%E5%BF%B5%E5%9B%9E%E9%A1%BE\">\uff08\u4e00\uff09 Java \u5783\u573e\u56de\u6536\uff08GC\uff09\u57fa\u672c\u6982\u5ff5\u56de\u987e<\/h3>\n<p>Java \u5783\u573e\u56de\u6536\uff08Garbage Collection, GC\uff09\u662f Java \u8bed\u8a00\u5185\u5b58\u7ba1\u7406\u7684\u4e00\u9879\u91cd\u8981\u673a\u5236\uff0c\u5b83\u8d1f\u8d23\u81ea\u52a8\u56de\u6536\u4e0d\u518d\u4f7f\u7528\u7684\u5185\u5b58\u7a7a\u95f4\uff0c\u907f\u514d\u4e86\u624b\u52a8\u7ba1\u7406\u5185\u5b58\u7684\u590d\u6742\u6027\u548c\u6f5c\u5728\u7684\u5185\u5b58\u6cc4\u6f0f\u95ee\u9898\u3002<\/p>\n<p>\u5728 Java \u4e2d\uff0c\u5185\u5b58\u4e3b\u8981\u5206\u4e3a\u4e24\u90e8\u5206\uff1a<span style=\"color:#fe2c24\"><span style=\"background-color:#fff5e6\">\u5806\uff08Heap\uff09<\/span><span style=\"background-color:#fff5e6\">\u548c<\/span><span style=\"background-color:#fff5e6\">\u6808\uff08Stack\uff09<\/span><\/span>\u3002<span style=\"background-color:#f3f3f4\">\u6808\u7528\u4e8e\u5b58\u50a8\u5c40\u90e8\u53d8\u91cf\u548c\u65b9\u6cd5\u8c03\u7528\u4fe1\u606f\uff0c\u800c\u5806\u5219\u7528\u4e8e\u5b58\u50a8\u52a8\u6001\u5206\u914d\u7684\u5bf9\u8c61<\/span>\u3002\u6bcf\u5f53\u521b\u5efa\u4e00\u4e2a\u5bf9\u8c61\u65f6\uff0c\u5b83\u4f1a\u88ab\u5206\u914d\u5230\u5806\u4e2d\u3002\u5982\u679c\u8fd9\u4e2a\u5bf9\u8c61\u4e0d\u518d\u88ab\u5f15\u7528\uff0c\u90a3\u4e48\u5b83\u5c31\u6210\u4e3a\u4e86\u5783\u573e\u5bf9\u8c61\uff0c\u9700\u8981\u88ab\u5783\u573e\u56de\u6536\u673a\u5236\u56de\u6536\u3002<\/p>\n<p>\u5728\u4e86\u89e3\u5783\u573e\u56de\u6536\uff08GC\uff09\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u5148\u638c\u63e1\u4e00\u4e9b\u4e0e GC \u76f8\u5173\u7684\u57fa\u7840\u6982\u5ff5\u3002GC \u672c\u8eab\u53ef\u4ee5\u4ece\u4e0d\u540c\u7684\u89d2\u5ea6\u7406\u89e3\uff0c\u5177\u4f53\u8bed\u5883\u4e0b\u7684\u542b\u4e49\u4f1a\u6709\u6240\u4e0d\u540c\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u4ece\u51e0\u4e2a\u5173\u952e\u70b9\u6765\u8bb2\u89e3\u8fd9\u4e9b\u6982\u5ff5\u3002<\/p>\n<h4 id=\"1.GC%20%E4%B8%89%E7%A7%8D%E5%B8%B8%E8%A7%81%E8%AF%AD%E4%B9%89\">1.GC \u4e09\u79cd\u5e38\u89c1\u8bed\u4e49<\/h4>\n<ul>\n<li><span style=\"color:#ed7976\">Garbage Collection\uff08\u5783\u573e\u56de\u6536\uff09<\/span>\uff1a\u6307\u7684\u662f\u5783\u573e\u56de\u6536\u7684\u6280\u672f\u548c\u8fc7\u7a0b\uff0c\u662f\u6574\u4e2a\u5185\u5b58\u7ba1\u7406\u7684\u6838\u5fc3\u90e8\u5206\u3002\u7b80\u5355\u6765\u8bf4\uff0c\u5b83\u5c31\u662f\u201c\u81ea\u52a8\u6e05\u7406\u4e0d\u518d\u4f7f\u7528\u7684\u5185\u5b58\u201d\u3002<\/li>\n<li><span style=\"color:#ed7976\">Garbage Collector\uff08\u5783\u573e\u56de\u6536\u5668\uff09<\/span>\uff1a\u8fd9\u662f\u5b9e\u73b0\u5783\u573e\u56de\u6536\u6280\u672f\u7684\u5177\u4f53\u7ec4\u4ef6\uff0c\u4e5f\u5c31\u662f\u8d1f\u8d23\u6267\u884c\u5783\u573e\u56de\u6536\u4efb\u52a1\u7684\u201c\u5de5\u5177\u201d\u6216\u201c\u7a0b\u5e8f\u201d\u3002\u5b83\u786e\u4fdd JVM \u4f1a\u81ea\u52a8\u56de\u6536\u4e0d\u518d\u4f7f\u7528\u7684\u5185\u5b58\u7a7a\u95f4\u3002<\/li>\n<li><span style=\"color:#ed7976\">Garbage Collecting\uff08\u5783\u573e\u6536\u96c6\uff09<\/span>\uff1a\u8fd9\u662f\u6307\u5783\u573e\u56de\u6536\u7684\u5b9e\u9645\u64cd\u4f5c\u6216\u884c\u4e3a\uff0c\u4e5f\u5c31\u662f\u5783\u573e\u56de\u6536\u5668\u5177\u4f53\u6267\u884c\u56de\u6536\u7684\u8fc7\u7a0b\u3002<\/li>\n<\/ul>\n<h4 id=\"2.Mutator%EF%BC%9A%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E7%9A%84%E5%86%85%E5%AD%98%E7%AE%A1%E7%90%86%E8%A7%92%E8%89%B2\">2.Mutator\uff1a\u5e94\u7528\u7a0b\u5e8f\u7684\u5185\u5b58\u7ba1\u7406\u89d2\u8272<\/h4>\n<p>\u5728\u5783\u573e\u56de\u6536\uff08GC\uff09\u7684\u8fc7\u7a0b\u4e2d\uff0c<span style=\"color:#fe2c24\">Mutator<\/span> \u662f\u6307\u8d1f\u8d23\u521b\u5efa\u5bf9\u8c61\u7684\u90e8\u5206\uff0c\u901a\u5e38\u5c31\u662f\u6211\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u672c\u8eab\uff08Mutator<span style=\"color:#fef2f0\"> <\/span><span style=\"color:#fe2c24\"><span style=\"background-color:#fef2f0\">\u5b9e\u9645\u4e0a\u5c31\u662f\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7684\u5de5\u4f5c\u7ebf\u7a0b\u6216\u201c\u5e94\u7528\u7ebf\u7a0b\u201d<\/span><\/span>\uff09\u3002Mutator \u53ef\u4ee5\u88ab\u89c6\u4f5c\u201c\u5783\u573e\u5236\u9020\u8005\u201d\uff0c\u56e0\u4e3a\u5b83\u4e0d\u65ad\u5730\u5728\u5806\u5185\u5b58\u4e2d\u5206\u914d\u65b0\u7684\u5bf9\u8c61\uff0c\u8fd9\u4e9b\u5bf9\u8c61\u968f\u7740\u65f6\u95f4\u7684\u63a8\u79fb\u5c06\u6210\u4e3a\u201c\u5783\u573e\u201d\u2014\u2014\u5373\u4e0d\u518d\u88ab\u4f7f\u7528\u7684\u5bf9\u8c61\u3002<\/p>\n<p>\u53ef\u4ee5\u628a Mutator \u7406\u89e3\u4e3a\u4e00\u4e2a\u751f\u4ea7\u5de5\u5382\uff0c\u6bcf\u6b21\u5b83\u751f\u4ea7\u4e00\u4e2a\u5bf9\u8c61\u65f6\uff0c\u5c31\u4f1a\u5728\u5806\u5185\u5b58\u4e2d\u5360\u7528\u4e00\u5b9a\u7684\u7a7a\u95f4\u3002\u5783\u573e\u56de\u6536\u5668\u5219\u50cf\u662f\u4e00\u4e2a\u6e05\u7406\u5de5\u4eba\uff0c\u8d1f\u8d23\u5b9a\u671f\u56de\u6536\u90a3\u4e9b\u4e0d\u518d\u88ab\u9700\u8981\u7684\u5bf9\u8c61\uff0c\u4ee5\u4fdd\u6301\u5185\u5b58\u7a7a\u95f4\u7684\u6e05\u6d01\u548c\u9ad8\u6548\u3002<span style=\"background-color:#fefcd8\">Mutator \u901a\u8fc7\u751f\u4ea7\u65b0\u5bf9\u8c61\u4e0d\u65ad\u5411\u5185\u5b58\u4e2d\u6dfb\u52a0\u201c\u5783\u573e\u201d\uff0c\u800c\u5783\u573e\u56de\u6536\u5668\u901a\u8fc7\u6e05\u7406\u8fd9\u4e9b\u5783\u573e\u6765\u7ef4\u6301\u7cfb\u7edf\u7684\u6027\u80fd\u3002<\/span><\/p>\n<p>\u6bcf\u6b21 Mutator \u5206\u914d\u4e00\u4e2a\u5bf9\u8c61\u65f6\uff0c\u8fd9\u4e2a\u5bf9\u8c61\u901a\u5e38\u4f1a\u88ab\u653e\u5165\u5806\u5185\u5b58\u7684\u201c\u5e74\u8f7b\u4ee3\u201d\uff08Young Generation\uff09\u533a\u57df\u3002\u8fd9\u662f\u56e0\u4e3a\u5927\u591a\u6570\u5bf9\u8c61\u5728\u521b\u5efa\u540e\u5f88\u5feb\u5c31\u53d8\u5f97\u4e0d\u518d\u9700\u8981\uff0c\u56e0\u6b64\u5c06\u5bf9\u8c61\u653e\u5728\u5e74\u8f7b\u4ee3\u4e2d\u80fd\u591f\u63d0\u9ad8\u56de\u6536\u7684\u6548\u7387\u3002\u5783\u573e\u56de\u6536\u5668\u4f1a\u5b9a\u671f\u626b\u63cf\u5806\u5185\u5b58\uff0c\u67e5\u627e\u4e0d\u518d\u88ab\u4f7f\u7528\u7684\u5bf9\u8c61\uff0c\u5e76\u56de\u6536\u5b83\u4eec\u91ca\u653e\u5185\u5b58\u3002<\/p>\n<p>\u5728\u591a\u7ebf\u7a0b\u73af\u5883\u4e2d\uff0c<span style=\"color:#be191c\"><span style=\"background-color:#fff5e6\">\u6bcf\u4e2a\u7ebf\u7a0b\uff08Mutator \u7ebf\u7a0b\uff09<\/span><\/span><span style=\"background-color:#fff5e6\">\u901a\u5e38\u4f1a\u62e5\u6709\u4e00\u4e2a <\/span><span style=\"color:#fe2c24\"><span style=\"background-color:#fff5e6\">TLAB\uff08\u7ebf\u7a0b\u672c\u5730\u5206\u914d\u7f13\u51b2\u533a\uff09<\/span><\/span>\u3002TLAB \u662f\u4e3a\u6bcf\u4e2a\u7ebf\u7a0b\u5206\u914d\u7684\u4e13\u7528\u5185\u5b58\u533a\u57df\uff0c\u80fd\u591f\u51cf\u5c11\u5185\u5b58\u5206\u914d\u65f6\u7684\u9501\u7ade\u4e89\uff0c\u63d0\u9ad8\u5206\u914d\u6548\u7387\u3002\u8fd9\u6837\uff0c\u6bcf\u4e2a\u7ebf\u7a0b\u5c31\u80fd\u72ec\u7acb\u5730\u5feb\u901f\u5206\u914d\u5bf9\u8c61\uff0c\u800c\u4e0d\u5fc5\u548c\u5176\u4ed6\u7ebf\u7a0b\u4e89\u62a2\u5185\u5b58\u3002<\/p>\n<h4 id=\"3.TLAB%EF%BC%88%E7%BA%BF%E7%A8%8B%E6%9C%AC%E5%9C%B0%E5%88%86%E9%85%8D%E7%BC%93%E5%AD%98%EF%BC%89\">3.TLAB\uff08\u7ebf\u7a0b\u672c\u5730\u5206\u914d\u7f13\u5b58\uff09<\/h4>\n<p>TLAB\uff08Thread Local Allocation Buffer\uff09\u662f\u6307\u6bcf\u4e2a\u7ebf\u7a0b\u72ec\u4eab\u7684\u4e00\u5757\u5185\u5b58\u533a\u57df\u3002\u4e3a\u4ec0\u4e48\u9700\u8981 TLAB \u5462\uff1f\u56e0\u4e3a\u5b83\u53ef\u4ee5\u907f\u514d\u591a\u7ebf\u7a0b\u73af\u5883\u4e0b\u7684\u5185\u5b58\u5206\u914d\u7ade\u4e89\uff0c\u63d0\u5347\u5206\u914d\u6548\u7387\u3002\u5177\u4f53\u6765\u8bf4\uff0c<span style=\"background-color:#fefcd8\">\u5f53\u4e00\u4e2a\u7ebf\u7a0b\u9700\u8981\u5206\u914d\u5185\u5b58\u65f6\uff0c\u5b83\u4f1a\u9996\u5148\u68c0\u67e5\u81ea\u5df1\u7684 TLAB \u4e2d\u662f\u5426\u6709\u53ef\u7528\u7a7a\u95f4\u3002\u5982\u679c\u6709\uff0c\u5b83\u5c31\u76f4\u63a5\u5728 TLAB \u4e2d\u5206\u914d\u5185\u5b58\uff0c\u800c\u4e0d\u9700\u8981\u548c\u5176\u4ed6\u7ebf\u7a0b\u4e89\u62a2\u5185\u5b58\u8d44\u6e90\u3002<\/span><\/p>\n<p>\u8fd9\u79cd\u673a\u5236\u80fd\u663e\u8457\u63d0\u9ad8\u5185\u5b58\u5206\u914d\u7684\u901f\u5ea6\uff0c\u51cf\u5c11\u9501\u7ade\u4e89\uff0c\u4ece\u800c\u63d0\u9ad8\u7a0b\u5e8f\u7684\u6027\u80fd\u3002<span style=\"background-color:#fef2f0\">TLAB \u662f\u901a\u8fc7 CAS\uff08Compare-and-Swap\uff09\u64cd\u4f5c\u6765\u4fdd\u8bc1\u7ebf\u7a0b\u5b89\u5168\u7684\u3002<\/span><\/p>\n<h4 id=\"4.Card%20Table%EF%BC%88%E5%8D%A1%E8%A1%A8%EF%BC%89\">4.Card Table\uff08\u5361\u8868\uff09<\/h4>\n<p>Card Table\uff0c\u4e5f\u53eb\u5361\u8868\uff0c\u662f\u7528\u4e8e\u6807\u8bb0\u5185\u5b58\u9875\u72b6\u6001\u7684\u4e00\u79cd\u6570\u636e\u7ed3\u6784\u3002<span style=\"background-color:#fef2f0\">\u5728 Java \u4e2d\uff0c\u5806\u5185\u5b58\u662f\u88ab\u5212\u5206\u6210\u591a\u4e2a\u5c0f\u5757\u7684\uff08\u6211\u4eec\u53ef\u4ee5\u628a\u8fd9\u4e9b\u5c0f\u5757\u79f0\u4e3a\u201c\u5361\u9875\u201d\uff09<\/span>\u3002<span style=\"color:#fe2c24\">Card Table \u7528\u6765\u8bb0\u5f55\u54ea\u4e9b\u5361\u9875\u5df2\u7ecf\u88ab\u4fee\u6539\u8fc7<\/span>\uff0c\u5177\u4f53\u6765\u8bf4\uff0c\u8bb0\u5f55\u4e86\u67d0\u4e2a\u5361\u9875\u4e2d\u662f\u5426\u6709\u6307\u5411\u5176\u4ed6\u5185\u5b58\u533a\u57df\uff08\u4f8b\u5982\u8001\u5e74\u4ee3\uff09\u5bf9\u8c61\u7684\u5f15\u7528\u3002<\/p>\n<p>Card Table \u7684\u4f5c\u7528\u662f<span style=\"background-color:#fefcd8\">\u5e2e\u52a9\u5783\u573e\u56de\u6536\u5668\u66f4\u9ad8\u6548\u5730\u5904\u7406\u8de8\u4ee3\u5f15\u7528\u3002<\/span>\u4ec0\u4e48\u662f\u8de8\u4ee3\u5f15\u7528\u5462\uff1f\u5c31\u662f\u8bf4\uff0c\u4e00\u4e2a\u5e74\u8f7b\u4ee3\u7684\u5bf9\u8c61\u53ef\u80fd\u4f1a\u5f15\u7528\u5230\u8001\u5e74\u4ee3\u7684\u5bf9\u8c61\u3002\u4e3a\u4e86\u5728\u5783\u573e\u56de\u6536\u8fc7\u7a0b\u4e2d\u5feb\u901f\u67e5\u627e\u8fd9\u4e9b\u8de8\u4ee3\u5f15\u7528\uff0cCard Table \u4f1a\u6807\u8bb0\u51fa\u8fd9\u4e9b\u5361\u9875\u7684\u72b6\u6001\u3002<\/p>\n<p>\u5f53\u4e00\u4e2a\u7ebf\u7a0b\u4fee\u6539\u4e86\u67d0\u4e2a\u5bf9\u8c61\u7684\u5f15\u7528\uff08\u4f8b\u5982\u4ece\u5e74\u8f7b\u4ee3\u7684\u5bf9\u8c61\u5f15\u7528\u4e86\u8001\u5e74\u4ee3\u7684\u5bf9\u8c61\uff09\uff0c\u5b83\u4f1a\u89e6\u53d1\u4e00\u4e2a<span style=\"color:#fe2c24\">\u5199\u5c4f\u969c\uff08Write Barrier\uff09<\/span>\uff0c\u7136\u540e Card Table \u4f1a\u5c06\u76f8\u5173\u5361\u9875\u6807\u8bb0\u4e3a\u201c\u810f\u201d\u3002\u5728\u5783\u573e\u56de\u6536\u65f6\uff0cGC \u5c31\u80fd\u66f4\u9ad8\u6548\u5730\u67e5\u627e\u5e76\u56de\u6536\u4e0d\u518d\u4f7f\u7528\u7684\u5bf9\u8c61\u3002<\/p>\n<p>\u8fd9\u4e9b\u6982\u5ff5\u770b\u4f3c\u7b80\u5355\uff0c\u4f46\u5b83\u4eec\u6784\u6210\u4e86\u5783\u573e\u56de\u6536\u673a\u5236\u7684\u6838\u5fc3\u5185\u5bb9\uff0c\u638c\u63e1\u5b83\u4eec\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u7406\u89e3 JVM \u662f\u5982\u4f55\u7ba1\u7406\u5185\u5b58\u7684\uff0c\u4ee5\u53ca\u5982\u4f55\u901a\u8fc7\u4f18\u5316 GC \u6765\u63d0\u5347\u7a0b\u5e8f\u7684\u6027\u80fd\u3002\u4e3a\u4e86\u907f\u514d GC \u4e2d\u7684\u505c\u987f\u65f6\u95f4\u8fc7\u957f\uff0c\u6211\u4eec\u9700\u8981\u5728\u7406\u89e3\u8fd9\u4e9b\u6982\u5ff5\u7684\u57fa\u7840\u4e0a\uff0c\u9009\u62e9\u5408\u9002\u7684\u56de\u6536\u7b56\u7565\u548c\u4f18\u5316\u65b9\u6848\u3002<\/p>\n<h3 id=\"%EF%BC%88%E4%BA%8C%EF%BC%89%E4%B8%BA%E4%BB%80%E4%B9%88%E4%BA%86%E8%A7%A3%20GC%20%E5%AF%B9%E5%BC%80%E5%8F%91%E8%80%85%E5%B0%A4%E4%B8%BA%E9%87%8D%E8%A6%81%EF%BC%8C%E7%89%B9%E5%88%AB%E6%98%AF%E5%AF%B9%E4%BA%8E%E6%80%A7%E8%83%BD%E8%B0%83%E4%BC%98%E5%92%8C%E5%86%85%E5%AD%98%E7%AE%A1%E7%90%86\">\uff08\u4e8c\uff09\u4e3a\u4ec0\u4e48\u4e86\u89e3 GC \u5bf9\u5f00\u53d1\u8005\u5c24\u4e3a\u91cd\u8981\uff0c\u7279\u522b\u662f\u5bf9\u4e8e\u6027\u80fd\u8c03\u4f18\u548c\u5185\u5b58\u7ba1\u7406<\/h3>\n<h4 id=\"1.%20%E5%BA%94%E7%94%A8%E6%80%A7%E8%83%BD%E5%BD%B1%E5%93%8D%E5%88%86%E6%9E%90\">1. \u5e94\u7528\u6027\u80fd\u5f71\u54cd\u5206\u6790<\/h4>\n<ul>\n<li><span style=\"color:#fe2c24\">GC \u6682\u505c\u65f6\u95f4<\/span>\uff1a\u5783\u573e\u56de\u6536\u4f1a\u5360\u7528 CPU \u8d44\u6e90\uff0c\u5e76\u53ef\u80fd\u5bfc\u81f4\u5e94\u7528\u7a0b\u5e8f\u5728 GC \u6267\u884c\u671f\u95f4\u51fa\u73b0\u201c\u505c\u987f\u201d\u3002<span style=\"background-color:#fefcd8\">\u867d\u7136 GC \u5728\u540e\u53f0\u8fd0\u884c\uff0c\u4f46\u5982\u679c\u6ca1\u6709\u4f18\u5316\uff0c\u505c\u987f\u65f6\u95f4\u53ef\u80fd\u4f1a\u5f71\u54cd\u5e94\u7528\u7684\u54cd\u5e94\u65f6\u95f4\u548c\u541e\u5410\u91cf\uff0c\u5c24\u5176\u662f\u5728\u9ad8\u5e76\u53d1\u6216\u5b9e\u65f6\u6027\u8981\u6c42\u8f83\u9ad8\u7684\u7cfb\u7edf\u4e2d<\/span>\u3002\u56e0\u6b64\uff0c\u5f00\u53d1\u8005\u9700\u8981\u7406\u89e3 GC \u7684\u5de5\u4f5c\u539f\u7406\uff0c\u4ee5\u4fbf\u5728\u9700\u8981\u65f6\u8fdb\u884c\u8c03\u4f18\uff0c\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u505c\u987f\u3002<\/li>\n<li><span style=\"color:#fe2c24\">\u541e\u5410\u91cf<\/span>\uff1a<span style=\"color:#0d0016\"><span style=\"background-color:#fef2f0\">GC \u7684\u6548\u7387\u76f4\u63a5\u5f71\u54cd\u5230 Java \u5e94\u7528\u7684\u541e\u5410\u91cf\uff08\u5373\u5355\u4f4d\u65f6\u95f4\u5185\u80fd\u591f\u5904\u7406\u7684\u4efb\u52a1\u91cf\uff09<\/span><\/span>\u3002\u4e0d\u540c\u7684 GC \u7b97\u6cd5\u4f1a\u5f71\u54cd\u541e\u5410\u91cf\uff0c\u56e0\u6b64\u4e86\u89e3\u5982\u4f55\u914d\u7f6e GC \u548c\u9009\u62e9\u5408\u9002\u7684\u56de\u6536\u5668\u53ef\u4ee5\u63d0\u5347\u7cfb\u7edf\u6027\u80fd\u3002<\/li>\n<\/ul>\n<h4 id=\"2.%20%E5%86%85%E5%AD%98%E7%AE%A1%E7%90%86%E4%B8%8E%E6%B3%84%E6%BC%8F%E9%98%B2%E6%AD%A2\">2. \u5185\u5b58\u7ba1\u7406\u4e0e\u6cc4\u6f0f\u9632\u6b62<\/h4>\n<ul>\n<li><span style=\"color:#fe2c24\">\u5806\u5185\u5b58\u7ba1\u7406<\/span>\uff1aGC \u8d1f\u8d23\u7ba1\u7406\u5806\u5185\u5b58\uff0c\u5728\u5806\u4e2d\u52a8\u6001\u521b\u5efa\u548c\u9500\u6bc1\u5bf9\u8c61\u3002\u867d\u7136 GC \u80fd\u81ea\u52a8\u56de\u6536\u4e0d\u518d\u4f7f\u7528\u7684\u5bf9\u8c61\uff0c\u4f46\u5f00\u53d1\u8005\u5fc5\u987b\u4e86\u89e3\u4f55\u65f6\u4ee5\u53ca\u5982\u4f55\u521b\u5efa\u5bf9\u8c61\uff0c\u4ee5\u907f\u514d\u8fc7\u5ea6\u7684\u5bf9\u8c61\u5206\u914d\u6216\u65e0\u6548\u5bf9\u8c61\u7684\u6301\u7eed\u5b58\u5728\uff0c\u8fd9\u4f1a\u5bfc\u81f4\u5185\u5b58\u5360\u7528\u4e0d\u65ad\u589e\u52a0\uff0c\u751a\u81f3\u51fa\u73b0\u5185\u5b58\u6cc4\u6f0f\u3002<\/li>\n<li><span style=\"color:#fe2c24\">\u5185\u5b58\u6cc4\u6f0f<\/span>\uff1a\u867d\u7136 GC \u53ef\u4ee5\u81ea\u52a8\u56de\u6536\u5927\u591a\u6570\u4e0d\u518d\u4f7f\u7528\u7684\u5bf9\u8c61\uff0c\u4f46\u5f00\u53d1\u8005\u4ecd\u9700\u786e\u4fdd\u5bf9\u8c61\u5f15\u7528\u6b63\u786e\u5730\u6e05\u7406\u3002\u5982\u679c\u5bf9\u8c61\u7684\u5f15\u7528\u672a\u80fd\u6b63\u786e\u91ca\u653e\uff0cGC \u4e5f\u65e0\u6cd5\u8bc6\u522b\u5b83\u4eec\u4e3a\u5783\u573e\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5185\u5b58\u6cc4\u6f0f\u3002\u4e86\u89e3 GC \u7684\u5de5\u4f5c\u539f\u7406\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\u3002<\/li>\n<\/ul>\n<h4 id=\"3.%20%E4%BC%98%E5%8C%96%E5%BA%94%E7%94%A8%E7%9A%84%E8%B5%84%E6%BA%90%E5%88%A9%E7%94%A8\">3. \u4f18\u5316\u5e94\u7528\u7684\u8d44\u6e90\u5229\u7528<\/h4>\n<ul>\n<li><span style=\"color:#fe2c24\">\u5806\u7684\u5927\u5c0f\u548c\u5206\u4ee3\u8bbe\u7f6e<\/span>\uff1a\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e JVM \u53c2\u6570\u6765\u8c03\u6574\u5806\u7684\u5927\u5c0f\u3001\u5206\u4ee3\u7684\u5212\u5206\u4ee5\u53ca\u5783\u573e\u56de\u6536\u7b56\u7565\uff0c\u4ee5\u4fbf\u6700\u5927\u5316\u5185\u5b58\u7684\u5229\u7528\u6548\u7387\u3002\u5982\u679c\u5806\u8bbe\u7f6e\u8fc7\u5c0f\uff0c\u9891\u7e41\u7684 GC \u4f1a\u9020\u6210\u6027\u80fd\u635f\u5931\uff1b\u5982\u679c\u5806\u8bbe\u7f6e\u8fc7\u5927\uff0c\u5219\u53ef\u80fd\u5bfc\u81f4\u957f\u65f6\u95f4\u7684 GC \u505c\u987f\u3002\u901a\u8fc7\u7406\u89e3 GC\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u7cbe\u7ec6\u8c03\u63a7\u5e94\u7528\u7684\u5185\u5b58\u4f7f\u7528\u3002<\/li>\n<li><span style=\"color:#fe2c24\">\u5783\u573e\u56de\u6536\u5668\u9009\u62e9<\/span>\uff1a\u4e0d\u540c\u7684\u5783\u573e\u56de\u6536\u5668\uff08\u5982 Serial, Parallel, CMS, G1 \u7b49\uff09\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u3002<span style=\"background-color:#edf6e8\">\u9009\u62e9\u5408\u9002\u7684\u56de\u6536\u5668\u53ef\u4ee5\u5e2e\u52a9\u5728\u9ad8\u541e\u5410\u91cf\u3001\u4f4e\u5ef6\u8fdf\u6216\u4f4e\u5185\u5b58\u5360\u7528\u7b49\u65b9\u9762\u505a\u51fa\u6743\u8861<\/span>\u3002\u5f00\u53d1\u8005\u9700\u8981\u6839\u636e\u5e94\u7528\u7684\u7279\u70b9\u9009\u62e9\u6700\u9002\u5408\u7684\u56de\u6536\u5668\uff0c\u4ee5\u4f18\u5316\u8d44\u6e90\u5229\u7528\u3002<\/li>\n<\/ul>\n<h4 id=\"4.%20%E5%87%8F%E5%B0%91%E6%80%A7%E8%83%BD%E7%93%B6%E9%A2%88\">4. \u51cf\u5c11\u6027\u80fd\u74f6\u9888<\/h4>\n<ul>\n<li>\u591a\u7ebf\u7a0b\u4e0e\u5e76\u53d1\uff1a\u73b0\u4ee3\u7684\u5783\u573e\u56de\u6536\u5668\uff08\u5982 G1\u3001ZGC\uff09\u652f\u6301\u591a\u7ebf\u7a0b\u5e76\u53d1\u56de\u6536\uff0c\u8fd9\u80fd\u663e\u8457\u51cf\u5c11 GC \u505c\u987f\u65f6\u95f4\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574\u5e76\u53d1\u8bbe\u7f6e\u3001\u8c03\u6574\u56de\u6536\u7b56\u7565\u6765\u8fdb\u4e00\u6b65\u51cf\u5c11\u6027\u80fd\u74f6\u9888\uff0c\u63d0\u5347\u7cfb\u7edf\u54cd\u5e94\u901f\u5ea6\u3002<\/li>\n<li>\u5206\u4ee3\u6536\u96c6\u4e0e\u5783\u573e\u56de\u6536\u7b97\u6cd5\uff1aJava \u4f7f\u7528\u5206\u4ee3\u56de\u6536\u7b56\u7565\uff0c\u5e74\u8f7b\u4ee3\u5bf9\u8c61\u548c\u8001\u5e74\u4ee3\u5bf9\u8c61\u6709\u4e0d\u540c\u7684\u56de\u6536\u65b9\u5f0f\u3002\u4e86\u89e3\u8fd9\u4e9b\u5dee\u5f02\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u907f\u514d\u8fc7\u5ea6\u9891\u7e41\u7684\u5e74\u8f7b\u4ee3\u56de\u6536\uff0c\u6216\u4f18\u5316\u8001\u5e74\u4ee3\u7684\u56de\u6536\u7b56\u7565\uff0c\u4ece\u800c\u51cf\u5c11 GC \u7684\u8d1f\u62c5\u3002<\/li>\n<\/ul>\n<h4 id=\"5.%20%E5%AE%9E%E6%97%B6%E7%9B%91%E6%8E%A7%E4%B8%8E%E4%BC%98%E5%8C%96\">5. \u5b9e\u65f6\u76d1\u63a7\u4e0e\u4f18\u5316<\/h4>\n<ul>\n<li>GC \u65e5\u5fd7\u5206\u6790\uff1a\u901a\u8fc7\u5206\u6790 GC \u65e5\u5fd7\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u8bc6\u522b\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\uff0c\u627e\u51fa\u53ef\u80fd\u7684\u6027\u80fd\u74f6\u9888\u548c\u5185\u5b58\u95ee\u9898\u3002GC \u65e5\u5fd7\u80fd\u63d0\u4f9b\u5f88\u591a\u6709\u4ef7\u503c\u7684\u4fe1\u606f\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u7406\u89e3\u5e94\u7528\u5728\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u5982\u4f55\u4e0e\u5783\u573e\u56de\u6536\u5668\u4ea4\u4e92\uff0c\u4ee5\u53ca\u5728\u4ec0\u4e48\u60c5\u51b5\u4e0b\u4f1a\u53d1\u751f\u957f\u65f6\u95f4\u7684<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb3.2w\u6b21\uff0c\u70b9\u8d5e436\u6b21\uff0c\u6536\u85cf624\u6b21\u3002\u672c\u7bc7\u6587\u7ae0\u6df1\u5165\u63a2\u8ba8\u4e86 Java \u5783\u573e\u56de\u6536\uff08GC\uff09\u673a\u5236\u7684\u6838\u5fc3\u6982\u5ff5\u3001\u5de5\u4f5c\u539f\u7406\u53ca\u5176\u5bf9\u5e94\u7528\u6027\u80fd\u7684\u5f71\u54cd\u3002\u6211\u4eec\u4ecb\u7ecd\u4e86\u5783\u573e\u56de\u6536\u7684\u57fa\u672c\u6982\u5ff5\uff0c\u5305\u62ec\u5806\u548c\u6808\u7684\u5185\u5b58\u7ba1\u7406\u3001GC \u7684\u89e6\u53d1\u673a\u5236\u3001GC \u5bf9\u5f00\u53d1\u8005\u7684\u91cd\u8981\u6027\u7b49\u3002\u6587\u7ae0\u91cd\u70b9\u5206\u6790\u4e86\u5e38\u89c1\u7684\u5783\u573e\u56de\u6536\u7b97\u6cd5\u548c\u56de\u6536\u5668\uff0c\u6db5\u76d6\u4e86\u5206\u4ee3\u6536\u96c6\u548c\u5206\u533a\u6536\u96c6\u7b56\u7565\uff0c\u4ee5\u53ca\u5982\u4f55\u6839\u636e\u5e94\u7528\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u56de\u6536\u5668\u3002\u6700\u540e\uff0c\u6211\u4eec\u8fd8\u8ba8\u8bba\u4e86 GC \u7684\u6027\u80fd\u8c03\u4f18\u65b9\u6cd5\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u901a\u8fc7\u4f18\u5316\u5185\u5b58\u7ba1\u7406\u63d0\u5347\u5e94\u7528\u6027\u80fd\uff0c\u907f\u514d\u5185\u5b58\u6cc4\u6f0f\u548c\u6027\u80fd\u74f6\u9888\u3002\u901a\u8fc7\u672c\u6587\u7684\u5b66\u4e60\uff0c\u8bfb\u8005\u5c06\u80fd\u591f\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f18\u5316 Java \u5e94\u7528\u4e2d\u7684\u5783\u573e\u56de\u6536\u673a\u5236\uff0c\u786e\u4fdd\u7a0b\u5e8f\u7684\u9ad8\u6548\u7a33\u5b9a\u8fd0\u884c\u3002_java \u5361\u8868\u662f\u4ec0\u4e48<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2813,2812,292,188],"topic":[],"class_list":{"0":"post-33780","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-server","7":"tag-jvm","9":"tag-292","10":"tag-188"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Java GC \u57fa\u7840\u77e5\u8bc6\u5feb\u901f\u56de\u987e - \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\/33780.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java GC \u57fa\u7840\u77e5\u8bc6\u5feb\u901f\u56de\u987e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb3.2w\u6b21\uff0c\u70b9\u8d5e436\u6b21\uff0c\u6536\u85cf624\u6b21\u3002\u672c\u7bc7\u6587\u7ae0\u6df1\u5165\u63a2\u8ba8\u4e86 Java \u5783\u573e\u56de\u6536\uff08GC\uff09\u673a\u5236\u7684\u6838\u5fc3\u6982\u5ff5\u3001\u5de5\u4f5c\u539f\u7406\u53ca\u5176\u5bf9\u5e94\u7528\u6027\u80fd\u7684\u5f71\u54cd\u3002\u6211\u4eec\u4ecb\u7ecd\u4e86\u5783\u573e\u56de\u6536\u7684\u57fa\u672c\u6982\u5ff5\uff0c\u5305\u62ec\u5806\u548c\u6808\u7684\u5185\u5b58\u7ba1\u7406\u3001GC \u7684\u89e6\u53d1\u673a\u5236\u3001GC \u5bf9\u5f00\u53d1\u8005\u7684\u91cd\u8981\u6027\u7b49\u3002\u6587\u7ae0\u91cd\u70b9\u5206\u6790\u4e86\u5e38\u89c1\u7684\u5783\u573e\u56de\u6536\u7b97\u6cd5\u548c\u56de\u6536\u5668\uff0c\u6db5\u76d6\u4e86\u5206\u4ee3\u6536\u96c6\u548c\u5206\u533a\u6536\u96c6\u7b56\u7565\uff0c\u4ee5\u53ca\u5982\u4f55\u6839\u636e\u5e94\u7528\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u56de\u6536\u5668\u3002\u6700\u540e\uff0c\u6211\u4eec\u8fd8\u8ba8\u8bba\u4e86 GC \u7684\u6027\u80fd\u8c03\u4f18\u65b9\u6cd5\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u901a\u8fc7\u4f18\u5316\u5185\u5b58\u7ba1\u7406\u63d0\u5347\u5e94\u7528\u6027\u80fd\uff0c\u907f\u514d\u5185\u5b58\u6cc4\u6f0f\u548c\u6027\u80fd\u74f6\u9888\u3002\u901a\u8fc7\u672c\u6587\u7684\u5b66\u4e60\uff0c\u8bfb\u8005\u5c06\u80fd\u591f\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f18\u5316 Java \u5e94\u7528\u4e2d\u7684\u5783\u573e\u56de\u6536\u673a\u5236\uff0c\u786e\u4fdd\u7a0b\u5e8f\u7684\u9ad8\u6548\u7a33\u5b9a\u8fd0\u884c\u3002_java \u5361\u8868\u662f\u4ec0\u4e48\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/33780.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-28T07:49:29+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/33780.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/33780.html\",\"name\":\"Java GC \u57fa\u7840\u77e5\u8bc6\u5feb\u901f\u56de\u987e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-28T07:49:29+00:00\",\"dateModified\":\"2025-04-28T07:49:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/33780.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/33780.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/33780.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java GC \u57fa\u7840\u77e5\u8bc6\u5feb\u901f\u56de\u987e\"}]},{\"@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 GC \u57fa\u7840\u77e5\u8bc6\u5feb\u901f\u56de\u987e - \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\/33780.html","og_locale":"zh_CN","og_type":"article","og_title":"Java GC \u57fa\u7840\u77e5\u8bc6\u5feb\u901f\u56de\u987e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb3.2w\u6b21\uff0c\u70b9\u8d5e436\u6b21\uff0c\u6536\u85cf624\u6b21\u3002\u672c\u7bc7\u6587\u7ae0\u6df1\u5165\u63a2\u8ba8\u4e86 Java \u5783\u573e\u56de\u6536\uff08GC\uff09\u673a\u5236\u7684\u6838\u5fc3\u6982\u5ff5\u3001\u5de5\u4f5c\u539f\u7406\u53ca\u5176\u5bf9\u5e94\u7528\u6027\u80fd\u7684\u5f71\u54cd\u3002\u6211\u4eec\u4ecb\u7ecd\u4e86\u5783\u573e\u56de\u6536\u7684\u57fa\u672c\u6982\u5ff5\uff0c\u5305\u62ec\u5806\u548c\u6808\u7684\u5185\u5b58\u7ba1\u7406\u3001GC \u7684\u89e6\u53d1\u673a\u5236\u3001GC \u5bf9\u5f00\u53d1\u8005\u7684\u91cd\u8981\u6027\u7b49\u3002\u6587\u7ae0\u91cd\u70b9\u5206\u6790\u4e86\u5e38\u89c1\u7684\u5783\u573e\u56de\u6536\u7b97\u6cd5\u548c\u56de\u6536\u5668\uff0c\u6db5\u76d6\u4e86\u5206\u4ee3\u6536\u96c6\u548c\u5206\u533a\u6536\u96c6\u7b56\u7565\uff0c\u4ee5\u53ca\u5982\u4f55\u6839\u636e\u5e94\u7528\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u56de\u6536\u5668\u3002\u6700\u540e\uff0c\u6211\u4eec\u8fd8\u8ba8\u8bba\u4e86 GC \u7684\u6027\u80fd\u8c03\u4f18\u65b9\u6cd5\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u901a\u8fc7\u4f18\u5316\u5185\u5b58\u7ba1\u7406\u63d0\u5347\u5e94\u7528\u6027\u80fd\uff0c\u907f\u514d\u5185\u5b58\u6cc4\u6f0f\u548c\u6027\u80fd\u74f6\u9888\u3002\u901a\u8fc7\u672c\u6587\u7684\u5b66\u4e60\uff0c\u8bfb\u8005\u5c06\u80fd\u591f\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f18\u5316 Java \u5e94\u7528\u4e2d\u7684\u5783\u573e\u56de\u6536\u673a\u5236\uff0c\u786e\u4fdd\u7a0b\u5e8f\u7684\u9ad8\u6548\u7a33\u5b9a\u8fd0\u884c\u3002_java \u5361\u8868\u662f\u4ec0\u4e48","og_url":"https:\/\/www.wsisp.com\/helps\/33780.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-28T07:49:29+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/33780.html","url":"https:\/\/www.wsisp.com\/helps\/33780.html","name":"Java GC \u57fa\u7840\u77e5\u8bc6\u5feb\u901f\u56de\u987e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-28T07:49:29+00:00","dateModified":"2025-04-28T07:49:29+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/33780.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/33780.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/33780.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Java GC \u57fa\u7840\u77e5\u8bc6\u5feb\u901f\u56de\u987e"}]},{"@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\/33780","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=33780"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/33780\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=33780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=33780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=33780"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=33780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}