{"id":87823,"date":"2026-07-30T23:40:27","date_gmt":"2026-07-30T15:40:27","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/87823.html"},"modified":"2026-07-30T23:40:27","modified_gmt":"2026-07-30T15:40:27","slug":"%e3%80%90jvm%e5%8e%9f%e7%90%86%e8%af%a6%e8%a7%a3%e3%80%9125-serial%e4%b8%8eparnew%e6%94%b6%e9%9b%86%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/87823.html","title":{"rendered":"\u3010JVM\u539f\u7406\u8be6\u89e3\u301125-Serial\u4e0eParNew\u6536\u96c6\u5668"},"content":{"rendered":"<h2>25-Serial \u4e0e ParNew \u6536\u96c6\u5668<\/h2>\n<p>\u524d\u9762\u51e0\u7bc7\u8bb2\u7684\u662f&#034;\u7b97\u6cd5&#034;&#xff0c;\u4ece\u672c\u7bc7\u5f00\u59cb\u8fdb\u5165&#034;\u5b9e\u73b0&#034;\u2014\u2014\u5177\u4f53\u5230 HotSpot \u63d0\u4f9b\u7684\u51e0\u79cd\u5783\u573e\u6536\u96c6\u5668\u3002\u6700\u53e4\u8001\u3001\u4e5f\u662f\u6700\u7b80\u5355\u7684\u5c31\u662f Serial \u548c Serial Old \u6536\u96c6\u5668&#xff0c;\u5b83\u4eec\u662f\u7406\u89e3\u540e\u7eed\u6240\u6709\u6536\u96c6\u5668\u7684\u57fa\u7840\u3002ParNew \u5219\u662f Serial \u7684\u591a\u7ebf\u7a0b\u7248\u672c&#xff0c;\u4e13\u4e3a\u914d\u5408 CMS \u800c\u751f\u3002\u672c\u7bc7\u5c06\u5256\u6790\u5b83\u4eec\u7684\u8bbe\u8ba1\u3001\u53c2\u6570\u3001\u7ec4\u5408\u5173\u7cfb\u4e0e\u9002\u7528\u573a\u666f\u3002<\/p>\n<h3>Serial \u6536\u96c6\u5668<\/h3>\n<p>Serial \u662f HotSpot \u6700\u53e4\u8001\u7684\u6536\u96c6\u5668&#xff1a;\u5355\u7ebf\u7a0b\u56de\u6536&#xff0c;\u56de\u6536\u65f6\u5fc5\u987b STW&#xff08;Stop The World&#xff09;&#xff0c;\u671f\u95f4\u6240\u6709\u5e94\u7528\u7ebf\u7a0b\u6302\u8d77\u3002\u5b83\u7684\u65b0\u751f\u4ee3\u91c7\u7528\u590d\u5236\u7b97\u6cd5&#xff0c;\u8001\u5e74\u4ee3\u5bf9\u5e94\u7684\u662f Serial Old&#xff08;Mark-Compact&#xff09;\u3002<\/p>\n<p>\u5e94\u7528\u7ebf\u7a0b: \u2588\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588&#8230;<br \/>\n                 \u2191<br \/>\n            Serial STW<\/p>\n<h4>\u8bbe\u8ba1\u54f2\u5b66<\/h4>\n<p>\u5355\u7ebf\u7a0b\u542c\u8d77\u6765&#034;\u843d\u540e&#034;&#xff0c;\u4f46\u5b83\u7684\u4f18\u52bf\u6070\u6070\u662f\u7b80\u5355&#xff1a;<\/p>\n<ul>\n<li>\u6ca1\u6709\u7ebf\u7a0b\u540c\u6b65\u3001\u534f\u8c03\u5f00\u9500&#xff0c;\u5355\u6b21 GC \u7684 CPU \u5229\u7528\u7387\u9ad8\u3002<\/li>\n<li>\u9002\u5408\u5355\u6838\u6216\u5c0f\u5185\u5b58\u73af\u5883\u3002<\/li>\n<\/ul>\n<p>\u5728 Client \u6a21\u5f0f\u6216\u5d4c\u5165\u5f0f\u8bbe\u5907\u4e0a&#xff0c;Serial \u662f\u9ed8\u8ba4\u9009\u62e9\u3002\u5373\u4f7f\u5728\u73b0\u4ee3 JDK \u4e2d&#xff0c;\u5b83\u4f9d\u7136\u662f\u65b0\u751f\u4ee3\u9ed8\u8ba4\u6536\u96c6\u5668\u5019\u9009&#xff08;\u53d6\u51b3\u4e8e\u5e73\u53f0\u548c JDK \u7248\u672c&#xff09;\u3002<\/p>\n<h4>Serial Old<\/h4>\n<p>Serial Old \u662f Serial \u7684\u8001\u5e74\u4ee3\u7248\u672c&#xff0c;\u540c\u6837\u5355\u7ebf\u7a0b&#xff0c;\u91c7\u7528 Mark-Compact \u7b97\u6cd5\u3002\u5b83\u4e3b\u8981\u6709\u4e24\u4e2a\u7528\u9014&#xff1a;<\/p>\n<li>\u5728 Client \u6a21\u5f0f\u4e0b\u4e0e Serial \u914d\u5957\u3002<\/li>\n<li>\u4f5c\u4e3a CMS \u7684&#034;\u540e\u5907&#034;\u2014\u2014\u5f53 CMS \u51fa\u73b0 Concurrent Mode Failure \u65f6\u9000\u5316\u4e3a Serial Old \u6267\u884c Full GC\u3002<\/li>\n<p>\u7b2c\u4e8c\u79cd\u573a\u666f\u5728 JDK 8 &#043; CMS \u7684\u751f\u4ea7\u73af\u5883\u4e2d\u662f\u51fa\u4e86\u540d\u7684&#034;\u957f\u505c\u987f&#034;\u6765\u6e90&#xff0c;\u4e5f\u662f CMS \u88ab\u5e9f\u5f03\u7684\u91cd\u8981\u539f\u56e0\u3002<\/p>\n<h4>\u5173\u952e\u53c2\u6570<\/h4>\n<p><span class=\"token comment\"># \u663e\u5f0f\u6307\u5b9a\u4f7f\u7528 Serial &#043; Serial Old<\/span><br \/>\n<span class=\"token function\">java<\/span> <span class=\"token parameter variable\">-XX:&#043;UseSerialGC<\/span> <span class=\"token parameter variable\">-cp<\/span> MyApp com.example.Main<\/p>\n<p>-XX:&#043;UseSerialGC \u7b49\u540c\u4e8e\u540c\u65f6\u542f\u7528 Serial&#xff08;\u65b0\u751f\u4ee3&#xff09;\u4e0e Serial Old&#xff08;\u8001\u5e74\u4ee3&#xff09;\u3002JDK 8 \u5728 Client \u6a21\u5f0f\u4e0b\u9ed8\u8ba4\u5c31\u662f\u8fd9\u5957\u7ec4\u5408\u3002<\/p>\n<h4>\u4ee3\u7801\u793a\u4f8b\u4e0e\u65e5\u5fd7\u5206\u6790<\/h4>\n<p><span class=\"token comment\">\/**<br \/>\n * \u6f14\u793a Serial GC \u884c\u4e3a<br \/>\n * \u9002\u7528 JDK 8\/11\/17<br \/>\n *<br \/>\n * \u8fd0\u884c&#xff1a;<br \/>\n * java -Xms20m -Xmx20m -Xmn10m<br \/>\n *      -XX:SurvivorRatio&#061;8 -XX:&#043;UseSerialGC<br \/>\n *      -Xlog:gc*&#061;info -cp MyApp SerialGcDemo<br \/>\n *\/<\/span><br \/>\n<span class=\"token keyword\">public<\/span> <span class=\"token keyword\">class<\/span> <span class=\"token class-name\">SerialGcDemo<\/span> <span class=\"token punctuation\">{<\/span><\/p>\n<p>    <span class=\"token keyword\">private<\/span> <span class=\"token keyword\">static<\/span> <span class=\"token keyword\">final<\/span> <span class=\"token keyword\">int<\/span> _1MB <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">1024<\/span> <span class=\"token operator\">*<\/span> <span class=\"token number\">1024<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token keyword\">public<\/span> <span class=\"token keyword\">static<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">String<\/span><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> args<span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">throws<\/span> <span class=\"token class-name\">Exception<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token keyword\">int<\/span> i <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> i <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">8<\/span><span class=\"token punctuation\">;<\/span> i<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token keyword\">byte<\/span><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> block <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token keyword\">byte<\/span><span class=\"token punctuation\">[<\/span><span class=\"token number\">2<\/span> <span class=\"token operator\">*<\/span> _1MB<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token class-name\">System<\/span><span class=\"token punctuation\">.<\/span>out<span class=\"token punctuation\">.<\/span><span class=\"token function\">println<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;allocated &#034;<\/span> <span class=\"token operator\">&#043;<\/span> i <span class=\"token operator\">&#043;<\/span> <span class=\"token string\">&#034; -&gt; &#034;<\/span> <span class=\"token operator\">&#043;<\/span> block<span class=\"token punctuation\">.<\/span>length<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token class-name\">Thread<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">sleep<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">300<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>JDK 11&#043; \u65e5\u5fd7&#xff08;-Xlog:gc*&#061;info&#xff09;&#xff1a;<\/p>\n<p>[0.123s][info][gc,start] GC(0) Pause Young (Allocation Failure)<br \/>\n[0.123s][info][gc,task] GC(0) Using 1 workers<br \/>\n[0.124s][info][gc,heap] GC(0) DefNew total 9216K, used 8000K<br \/>\n[0.124s][info][gc,heap] GC(0) Eden space 8192K, 100% used<br \/>\n[0.124s][info][gc,heap] GC(0) From space 1024K, 0% used<br \/>\n[0.124s][info][gc,heap] GC(0) To   space 1024K, 0% used<br \/>\n[0.124s][info][gc,heap] GC(0) Tenured generation total 10240K, used 0K<br \/>\n[0.124s][info][gc] GC(0) Pause Young (Allocation Failure) 7M-&gt;1M(20M) 1.234ms<\/p>\n<p>\u5173\u6ce8\u51e0\u4e2a\u5173\u952e\u5b57\u6bb5&#xff1a;<\/p>\n<ul>\n<li>DefNew&#xff1a;Default New Generation&#xff0c;Serial \u65b0\u751f\u4ee3\u7684\u5185\u90e8\u540d\u3002<\/li>\n<li>Using 1 workers&#xff1a;\u5355\u7ebf\u7a0b\u56de\u6536\u3002<\/li>\n<li>7M-&gt;1M(20M)&#xff1a;\u56de\u6536\u524d 7M&#xff0c;\u56de\u6536\u540e 1M&#xff0c;\u5806\u603b\u5927\u5c0f 20M\u3002<\/li>\n<li>1.234ms&#xff1a;\u672c\u6b21 GC \u505c\u987f\u3002<\/li>\n<\/ul>\n<p>\u8001\u5e74\u4ee3 Full GC \u65e5\u5fd7&#xff1a;<\/p>\n<p>[5.678s][info][gc,start] GC(5) Pause Full (Allocation Failure)<br \/>\n[5.678s][info][gc,heap] GC(5) Tenured generation total 10240K, used 8000K<br \/>\n[5.679s][info][gc] GC(5) Pause Full (Allocation Failure) 18M-&gt;12M(20M) 5.678ms<\/p>\n<p>Tenured \u662f Serial Old \u8001\u5e74\u4ee3\u540d\u3002\u53ef\u4ee5\u770b\u5230 Full GC \u7684\u505c\u987f\u6bd4 Minor GC \u957f\u5f97\u591a\u2014\u2014\u8fd9\u662f Mark-Compact \u7b97\u6cd5\u7684\u56fa\u6709\u4ee3\u4ef7\u3002<\/p>\n<h3>ParNew \u6536\u96c6\u5668<\/h3>\n<p>ParNew \u662f Serial \u7684\u591a\u7ebf\u7a0b\u7248\u672c&#xff1a;\u65b0\u751f\u4ee3\u590d\u5236\u7b97\u6cd5\u3001STW&#xff0c;\u4f46\u56de\u6536\u65f6\u7528\u591a\u4e2a GC \u7ebf\u7a0b\u5e76\u884c\u3002\u5b83\u662f\u552f\u4e00\u80fd\u4e0e CMS \u914d\u5408\u7684\u65b0\u751f\u4ee3\u6536\u96c6\u5668\u3002<\/p>\n<p>\u5e94\u7528\u7ebf\u7a0b: \u2588\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588&#8230;<br \/>\n               \u2191<br \/>\n     ParNew STW&#xff08;\u591a GC \u7ebf\u7a0b\u5e76\u884c&#xff09;<\/p>\n<h4>\u4e0e Serial \u7684\u5173\u7cfb<\/h4>\n<p>ParNew \u5728\u5355\u6838\u73af\u5883\u4e0b\u4e0d\u4f1a\u6bd4 Serial \u66f4\u5feb\u2014\u2014\u591a\u7ebf\u7a0b\u534f\u8c03\u53cd\u800c\u6709\u989d\u5916\u5f00\u9500\u3002\u4f46\u5728\u591a\u6838\u73af\u5883\u4e0b&#xff0c;\u591a\u7ebf\u7a0b\u5e76\u884c\u80fd\u663e\u8457\u7f29\u77ed STW \u65f6\u95f4&#xff1a;<\/p>\n<p>\u5355\u7ebf\u7a0b:  \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588  (12ms)<br \/>\n4\u7ebf\u7a0b:   \u2588\u2588\u2588          (3ms)<\/p>\n<p>\u8fd9\u4e5f\u662f&#034;\u541e\u5410\u91cf vs \u5ef6\u8fdf&#034;\u7684\u65e9\u671f\u6743\u8861&#xff1a;ParNew \u901a\u8fc7\u5e76\u884c\u964d\u4f4e\u5355\u6b21\u505c\u987f&#xff0c;\u4f46\u603b CPU \u5f00\u9500\u4e0e Serial \u76f8\u5f53\u751a\u81f3\u7565\u9ad8\u3002<\/p>\n<h4>\u5173\u952e\u53c2\u6570<\/h4>\n<p><span class=\"token comment\"># JDK 8&#xff1a;\u663e\u5f0f\u542f\u7528 ParNew &#043; CMS<\/span><br \/>\n<span class=\"token function\">java<\/span> <span class=\"token parameter variable\">-XX:&#043;UseParNewGC<\/span> <span class=\"token parameter variable\">-XX:&#043;UseConcMarkSweepGC<\/span> <span class=\"token parameter variable\">-cp<\/span> MyApp com.example.Main<\/p>\n<p><span class=\"token comment\"># \u63a7\u5236\u5e76\u884c GC \u7ebf\u7a0b\u6570<\/span><br \/>\n<span class=\"token function\">java<\/span> <span class=\"token parameter variable\">-XX:&#043;UseParNewGC<\/span> <span class=\"token parameter variable\">-XX:ParallelGCThreads<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">4<\/span> <span class=\"token parameter variable\">-cp<\/span> MyApp com.example.Main<\/p>\n<p>ParallelGCThreads \u9ed8\u8ba4\u503c\u4e0e CPU \u6838\u6570\u76f8\u5173&#xff1a;\u6838\u6570 \u2264 8 \u65f6\u7b49\u4e8e\u6838\u6570&#xff0c;\u5426\u5219\u4e3a 3 &#043; 5N\/8&#xff08;N \u4e3a\u6838\u6570&#xff09;\u3002\u5728\u5bb9\u5668\u5316\u90e8\u7f72\u4e2d\u5efa\u8bae\u663e\u5f0f\u8bbe\u7f6e&#xff0c;\u907f\u514d\u8bef\u7528\u5bbf\u4e3b\u673a\u6838\u6570\u3002<\/p>\n<h4>ParNew \u7684\u5c40\u9650<\/h4>\n<p>ParNew \u53ea\u80fd\u56de\u6536\u65b0\u751f\u4ee3&#xff0c;\u5fc5\u987b\u4e0e\u4e00\u4e2a\u8001\u5e74\u4ee3\u6536\u96c6\u5668\u642d\u914d\u3002JDK 8 \u53ef\u7528\u7ec4\u5408&#xff1a;<\/p>\n<ul>\n<li>ParNew &#043; CMS&#xff08;\u63a8\u8350&#xff0c;\u4f4e\u5ef6\u8fdf&#xff09;<\/li>\n<li>ParNew &#043; Serial Old&#xff08;\u9000\u5316&#xff0c;\u4e0d\u63a8\u8350&#xff09;<\/li>\n<\/ul>\n<p>JDK 9 \u8d77&#xff0c;\u7531\u4e8e CMS \u88ab\u6807\u8bb0 deprecated&#xff0c;ParNew \u4e5f\u88ab\u9650\u5236&#xff1a;-XX:&#043;UseParNewGC \u5355\u72ec\u4f7f\u7528\u4f1a\u62a5\u8b66\u544a&#xff0c;\u6700\u7ec8\u5728 JDK 14 \u968f CMS \u4e00\u8d77\u88ab\u79fb\u9664\u3002\u65b0\u4ee3\u7801\u5e94\u76f4\u63a5\u7528 G1\u3002<\/p>\n<h3>\u6536\u96c6\u5668\u7ec4\u5408\u5173\u7cfb<\/h3>\n<p>HotSpot \u4e0d\u540c\u4ee3\u9645\u6536\u96c6\u5668\u7684\u7ec4\u5408\u5173\u7cfb\u662f\u6709\u9650\u5236\u7684\u3002\u4e0b\u8868\u662f JDK 8 \u7684\u5408\u6cd5\u7ec4\u5408&#xff1a;<\/p>\n<table>\n<tr>\u65b0\u751f\u4ee3\u8001\u5e74\u4ee3\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>Serial<\/td>\n<td>Serial Old<\/td>\n<td>Client \u6a21\u5f0f\u3001\u5d4c\u5165\u5f0f<\/td>\n<\/tr>\n<tr>\n<td>ParNew<\/td>\n<td>CMS<\/td>\n<td>\u4f4e\u5ef6\u8fdf\u9996\u9009<\/td>\n<\/tr>\n<tr>\n<td>ParNew<\/td>\n<td>Serial Old<\/td>\n<td>\u4e0d\u63a8\u8350&#xff0c;\u4ec5\u517c\u5bb9\u6027<\/td>\n<\/tr>\n<tr>\n<td>Parallel Scavenge<\/td>\n<td>Parallel Old<\/td>\n<td>\u541e\u5410\u91cf\u4f18\u5148<\/td>\n<\/tr>\n<tr>\n<td>G1<\/td>\n<td>&#xff08;\u81ea\u8eab\u5206\u4ee3&#xff09;<\/td>\n<td>JDK 9&#043; \u9ed8\u8ba4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8\u610f&#xff1a;ParNew &#043; Parallel Old \u4e0d\u662f\u5408\u6cd5\u7ec4\u5408\u3002\u539f\u56e0\u662f ParNew \u4e0e CMS \u5171\u4eab\u4ee3\u7801\u6846\u67b6&#xff0c;Parallel Scavenge \u8d70\u7684\u662f\u53e6\u4e00\u5957\u5b9e\u73b0\u3002\u8fd9\u79cd&#034;\u7ec4\u5408\u9650\u5236&#034;\u5e38\u5e38\u662f\u9762\u8bd5\u9898\u7684\u8003\u70b9&#xff0c;\u4e5f\u662f JDK 9 \u540e\u7edf\u4e00\u5411 G1 \u6536\u655b\u7684\u5185\u5728\u52a8\u56e0\u3002<\/p>\n<h4>\u9009\u578b\u51b3\u7b56\u6811<\/h4>\n<p>\u5806 &lt; 100MB              \u2192 Serial<br \/>\nClient\/\u5d4c\u5165\u5f0f           \u2192 Serial<br \/>\n\u541e\u5410\u91cf\u4f18\u5148&#xff08;\u6279\u5904\u7406&#xff09;    \u2192 Parallel Scavenge &#043; Parallel Old<br \/>\n\u4f4e\u5ef6\u8fdf&#xff08;JDK 8&#xff09;         \u2192 ParNew &#043; CMS<br \/>\n\u4f4e\u5ef6\u8fdf&#xff08;JDK 11&#043;&#xff09;       \u2192 G1&#xff08;\u6216 ZGC&#xff09;<br \/>\n\u8d85\u4f4e\u5ef6\u8fdf&#xff08;JDK 15&#043;&#xff09;     \u2192 ZGC \/ Shenandoah<\/p>\n<h3>\u4ee3\u7801\u793a\u4f8b&#xff1a;\u5bf9\u6bd4 Serial \u4e0e ParNew<\/h3>\n<p>\u4e0b\u9762\u8fd9\u6bb5\u4ee3\u7801\u5728\u4e24\u79cd\u6536\u96c6\u5668\u4e0b\u8fd0\u884c&#xff0c;\u5bf9\u6bd4 GC \u65e5\u5fd7\u5dee\u5f02&#xff1a;<\/p>\n<p><span class=\"token comment\">\/**<br \/>\n * Serial vs ParNew \u5bf9\u6bd4<br \/>\n * \u9002\u7528 JDK 8<br \/>\n *\/<\/span><br \/>\n<span class=\"token keyword\">public<\/span> <span class=\"token keyword\">class<\/span> <span class=\"token class-name\">CollectorCompare<\/span> <span class=\"token punctuation\">{<\/span><\/p>\n<p>    <span class=\"token keyword\">private<\/span> <span class=\"token keyword\">static<\/span> <span class=\"token keyword\">final<\/span> <span class=\"token keyword\">int<\/span> _1MB <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">1024<\/span> <span class=\"token operator\">*<\/span> <span class=\"token number\">1024<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token keyword\">public<\/span> <span class=\"token keyword\">static<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">String<\/span><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> args<span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">throws<\/span> <span class=\"token class-name\">Exception<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token comment\">\/\/ \u6301\u7eed\u5206\u914d&#xff0c;\u5236\u9020 GC \u538b\u529b<\/span><br \/>\n        <span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token keyword\">int<\/span> i <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> i <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">50<\/span><span class=\"token punctuation\">;<\/span> i<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token keyword\">byte<\/span><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> block <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token keyword\">byte<\/span><span class=\"token punctuation\">[<\/span><span class=\"token number\">512<\/span> <span class=\"token operator\">*<\/span> <span class=\"token number\">1024<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token class-name\">Thread<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">sleep<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">50<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u8fd0\u884c\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token comment\"># Serial<\/span><br \/>\n<span class=\"token function\">java<\/span> <span class=\"token parameter variable\">-Xmx200m<\/span> <span class=\"token parameter variable\">-Xmn100m<\/span> <span class=\"token parameter variable\">-XX:&#043;UseSerialGC<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n     -Xlog:gc*<span class=\"token operator\">&#061;<\/span>info <span class=\"token parameter variable\">-cp<\/span> MyApp CollectorCompare<\/p>\n<p><span class=\"token comment\"># ParNew &#043; CMS<\/span><br \/>\n<span class=\"token function\">java<\/span> <span class=\"token parameter variable\">-Xmx200m<\/span> <span class=\"token parameter variable\">-Xmn100m<\/span> <span class=\"token parameter variable\">-XX:&#043;UseParNewGC<\/span> <span class=\"token parameter variable\">-XX:&#043;UseConcMarkSweepGC<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n     -Xlog:gc*<span class=\"token operator\">&#061;<\/span>info <span class=\"token parameter variable\">-cp<\/span> MyApp CollectorCompare<\/p>\n<p>\u5bf9\u6bd4\u65e5\u5fd7\u5173\u952e\u5b57\u6bb5&#xff1a;<\/p>\n<table>\n<tr>\u5b57\u6bb5SerialParNew<\/tr>\n<tbody>\n<tr>\n<td>\u65b0\u751f\u4ee3\u540d<\/td>\n<td>DefNew<\/td>\n<td>ParNew<\/td>\n<\/tr>\n<tr>\n<td>GC \u7ebf\u7a0b\u6570<\/td>\n<td>Using 1 workers<\/td>\n<td>Using 8 workers<\/td>\n<\/tr>\n<tr>\n<td>\u5355\u6b21\u505c\u987f<\/td>\n<td>\u8f83\u957f<\/td>\n<td>\u8f83\u77ed&#xff08;\u591a\u6838\u65f6&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5178\u578b\u8f93\u51fa&#xff08;8 \u6838\u673a\u5668&#xff0c;200M \u5806&#xff09;&#xff1a;<\/p>\n<p># Serial<br \/>\n[0.045s][info][gc] GC(0) Pause Young (Allocation Failure) 60M-&gt;10M(200M) 4.321ms<\/p>\n<p># ParNew<br \/>\n[0.038s][info][gc] GC(0) Pause Young (Allocation Failure) 60M-&gt;10M(200M) 1.102ms<\/p>\n<p>\u591a\u6838\u73af\u5883\u4e0b ParNew \u7684\u505c\u987f\u663e\u8457\u4f4e\u4e8e Serial\u3002\u4f46\u5728\u5355\u6838\u6216\u6781\u5c0f\u5806\u4e0a&#xff0c;Serial \u56e0\u65e0\u7ebf\u7a0b\u534f\u8c03\u5f00\u9500\u53ef\u80fd\u53cd\u800c\u66f4\u5feb\u3002<\/p>\n<h3>\u9002\u7528\u573a\u666f<\/h3>\n<h4>Serial \/ Serial Old<\/h4>\n<ul>\n<li>\u5d4c\u5165\u5f0f\u8bbe\u5907&#xff1a;\u5185\u5b58\u5c0f&#xff08;\u6570\u5341 MB&#xff09;\u3001CPU \u5f31&#xff0c;\u5355\u7ebf\u7a0b\u66f4\u9ad8\u6548\u3002<\/li>\n<li>Client \u6a21\u5f0f\u684c\u9762\u5e94\u7528&#xff1a;\u5806\u4e0d\u5927\u3001\u5bf9\u505c\u987f\u4e0d\u654f\u611f\u3002<\/li>\n<li>\u5fae\u670d\u52a1\u9884\u70ed\u9636\u6bb5&#xff1a;\u67d0\u4e9b\u6846\u67b6\u5728\u542f\u52a8\u671f\u7528 Serial \u51cf\u5c11\u5f00\u9500\u3002<\/li>\n<li>\u6559\u5b66\/\u8c03\u8bd5&#xff1a;\u65e5\u5fd7\u7b80\u5355&#xff0c;\u4fbf\u4e8e\u7406\u89e3 GC \u539f\u7406\u3002<\/li>\n<\/ul>\n<h4>ParNew<\/h4>\n<ul>\n<li>JDK 8 &#043; CMS \u7684\u4f4e\u5ef6\u8fdf\u5e94\u7528&#xff1a;Web \u670d\u52a1\u3001\u4ea4\u6613\u7cfb\u7edf\u7b49\u5bf9 STW \u654f\u611f\u7684\u573a\u666f\u3002<\/li>\n<li>\u591a\u6838\u4e2d\u5c0f\u5806&#xff1a;\u5806\u5728 4GB \u4ee5\u5185\u65f6&#xff0c;ParNew &#043; CMS \u4ecd\u662f\u5408\u7406\u9009\u62e9\u3002<\/li>\n<li>JDK 9&#043; \u4e0d\u518d\u63a8\u8350&#xff1a;\u5e94\u8fc1\u79fb\u5230 G1\u3002<\/li>\n<\/ul>\n<h4>\u8fc1\u79fb\u5efa\u8bae<\/h4>\n<p>\u5982\u679c\u4f60\u7684\u7cfb\u7edf\u8fd8\u5728\u7528 ParNew &#043; CMS&#xff1a;<\/p>\n<ul>\n<li>JDK 11&#xff1a;\u5207\u6362\u5230 G1&#xff0c;\u901a\u5e38\u80fd\u83b7\u5f97\u76f8\u8fd1\u6216\u66f4\u597d\u7684\u5ef6\u8fdf\u8868\u73b0\u3002<\/li>\n<li>JDK 17&#043;&#xff1a;\u8bc4\u4f30 ZGC \u6216 Shenandoah&#xff0c;\u8ffd\u6c42\u4e2a\u4f4d\u6570\u6beb\u79d2\u7ea7\u505c\u987f\u3002<\/li>\n<li>\u8fc1\u79fb\u524d\u7528 GC \u65e5\u5fd7\u5de5\u5177&#xff08;\u5982 GCEasy&#xff09;\u5206\u6790\u73b0\u6709 GC \u6a21\u5f0f&#xff0c;\u4f5c\u4e3a\u57fa\u7ebf\u5bf9\u6bd4\u3002<\/li>\n<\/ul>\n<h3>\u5b9e\u8df5\u8981\u70b9<\/h3>\n<p>1. -XX:&#043;UseParallelGC \u4e0d\u7b49\u4e8e ParNew<\/p>\n<p>JDK 8 \u4e2d -XX:&#043;UseParallelGC \u542f\u7528\u7684\u662f Parallel Scavenge &#043; Parallel Old&#xff0c;\u4e0d\u662f ParNew\u3002\u4e24\u8005\u4ee3\u7801\u4e0d\u540c\u3001\u7ec4\u5408\u4e0d\u4e92\u901a\u3002\u547d\u540d\u5bb9\u6613\u6df7\u6dc6&#xff0c;\u9700\u7279\u522b\u6ce8\u610f\u3002<\/p>\n<p>2. \u5bb9\u5668\u4e2d\u7684 GC \u7ebf\u7a0b\u6570<\/p>\n<p>Docker\/K8s \u73af\u5883\u4e0b&#xff0c;JVM \u53ef\u80fd\u8bef\u8bc6\u522b\u5bbf\u4e3b\u673a\u6838\u6570&#xff0c;\u5bfc\u81f4 GC \u7ebf\u7a0b\u8fc7\u591a\u3002\u5efa\u8bae\u663e\u5f0f\u8bbe\u7f6e&#xff1a;<\/p>\n<p><span class=\"token function\">java<\/span> <span class=\"token parameter variable\">-XX:ParallelGCThreads<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">4<\/span> <span class=\"token parameter variable\">-XX:ConcGCThreads<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">2<\/span> <span class=\"token parameter variable\">-cp<\/span> MyApp com.example.Main<\/p>\n<p>JDK 10&#043; \u7684\u5bb9\u5668\u611f\u77e5&#xff08;-XX:&#043;UseContainerSupport&#xff0c;\u9ed8\u8ba4\u5f00\u542f&#xff09;\u5df2\u80fd\u81ea\u52a8\u8bc6\u522b cgroup \u9650\u5236&#xff0c;\u4f46\u663e\u5f0f\u8bbe\u7f6e\u66f4\u7a33\u59a5\u3002<\/p>\n<p>3. \u65e5\u5fd7\u683c\u5f0f\u7edf\u4e00<\/p>\n<p>JDK 9 \u5f15\u5165\u7edf\u4e00\u65e5\u5fd7\u683c\u5f0f&#xff08;-Xlog:&#xff09;&#xff0c;JDK 8 \u7528 -XX:&#043;PrintGCDetails\u3002\u8fc1\u79fb\u65f6\u8bb0\u5f97\u8f6c\u6362\u53c2\u6570&#xff1a;<\/p>\n<p><span class=\"token comment\"># JDK 8<\/span><br \/>\n<span class=\"token parameter variable\">-XX:&#043;PrintGCDetails<\/span> <span class=\"token parameter variable\">-XX:&#043;PrintGCDateStamps<\/span> <span class=\"token parameter variable\">-Xloggc:gc.log<\/span><\/p>\n<p><span class=\"token comment\"># JDK 11&#043;<\/span><br \/>\n-Xlog:gc*<span class=\"token operator\">&#061;<\/span>info:file<span class=\"token operator\">&#061;<\/span>gc.log:time,uptime,level,tags<\/p>\n<p>4. \u5c0f\u5806\u573a\u666f\u4e0b Serial \u53ef\u80fd\u66f4\u4f18<\/p>\n<p>\u5806\u5c0f\u4e8e 100MB \u65f6&#xff0c;\u591a\u7ebf\u7a0b\u534f\u8c03\u7684\u5f00\u9500\u53ef\u80fd\u8d85\u8fc7\u5e76\u884c\u6536\u76ca\u3002\u8fd9\u65f6 -XX:&#043;UseSerialGC \u53cd\u800c\u66f4\u597d\u3002\u67d0\u4e9b IoT \u573a\u666f\u5c31\u662f\u5982\u6b64\u3002<\/p>\n<p>5. GC \u65e5\u5fd7\u5206\u6790\u5de5\u5177<\/p>\n<ul>\n<li>GCEasy&#xff08;gceasy.io&#xff09;&#xff1a;\u5728\u7ebf\u5206\u6790&#xff0c;\u7ed9\u51fa\u505c\u987f\u3001\u541e\u5410\u91cf\u3001\u5185\u5b58\u5206\u5e03\u7b49\u6307\u6807\u3002<\/li>\n<li>GCViewer&#xff1a;\u672c\u5730\u5de5\u5177&#xff0c;\u9002\u5408\u79bb\u7ebf\u5206\u6790\u3002<\/li>\n<li>JDK Mission Control&#xff08;JMC&#xff09;&#xff1a;JDK 11&#043; \u81ea\u5e26&#xff0c;\u53ef\u5173\u8054 GC \u4e8b\u4ef6\u4e0e\u5e94\u7528\u884c\u4e3a\u3002<\/li>\n<\/ul>\n<h3>\u5c0f\u7ed3<\/h3>\n<ul>\n<li>Serial \/ Serial Old&#xff1a;\u5355\u7ebf\u7a0b\u3001STW\u3001\u5b9e\u73b0\u7b80\u5355&#xff0c;\u9002\u5408\u5d4c\u5165\u5f0f\u548c Client \u573a\u666f&#xff1b;\u65b0\u751f\u4ee3\u7528\u590d\u5236\u7b97\u6cd5&#xff0c;\u8001\u5e74\u4ee3\u7528 Mark-Compact\u3002<\/li>\n<li>ParNew&#xff1a;Serial \u7684\u591a\u7ebf\u7a0b\u7248\u672c&#xff0c;\u65b0\u751f\u4ee3\u590d\u5236\u7b97\u6cd5&#xff0c;\u914d\u5408 CMS \u4f7f\u7528&#xff1b;JDK 9 \u8d77\u9010\u6b65\u9000\u51fa\u5386\u53f2\u821e\u53f0\u3002<\/li>\n<li>\u6536\u96c6\u5668\u7ec4\u5408\u6709\u4e25\u683c\u9650\u5236&#xff0c;ParNew \u53ea\u80fd\u4e0e CMS \/ Serial Old \u642d\u914d&#xff0c;\u4e0d\u80fd\u4e0e Parallel Old \u7ec4\u5408\u3002<\/li>\n<li>\u5bb9\u5668\u5316\u90e8\u7f72\u5e94\u663e\u5f0f\u8bbe\u7f6e ParallelGCThreads&#xff0c;\u907f\u514d\u8bef\u7528\u5bbf\u4e3b\u673a\u6838\u6570\u3002<\/li>\n<li>\u73b0\u4ee3\u5e94\u7528\u5efa\u8bae\u76f4\u63a5\u4f7f\u7528 G1&#xff08;JDK 9&#043; \u9ed8\u8ba4&#xff09;\u6216 ZGC\/Shenandoah&#xff08;JDK 15&#043;&#xff09;&#xff0c;Serial\/ParNew \u4ec5\u5728\u7279\u5b9a\u5c0f\u5185\u5b58\u6216\u5386\u53f2\u7cfb\u7edf\u4e2d\u4fdd\u7559\u3002<\/li>\n<\/ul>\n<p>\u672c\u6a21\u5757\u81f3\u6b64\u5b8c\u6210\u4e86\u4ece&#034;\u5224\u5b9a\u5bf9\u8c61\u5b58\u6d3b&#034;\u5230&#034;\u57fa\u7840\u56de\u6536\u7b97\u6cd5&#034;\u518d\u5230&#034;\u65e9\u671f\u6536\u96c6\u5668&#034;\u7684\u8109\u7edc\u3002\u4e0b\u4e00\u7bc7\u6211\u4eec\u5c06\u8fdb\u5165\u66f4\u73b0\u4ee3\u7684\u6536\u96c6\u5668\u2014\u2014Parallel Scavenge \u4e0e CMS\u2014\u2014\u7ee7\u7eed\u63a2\u8ba8\u541e\u5410\u91cf\u4e0e\u5ef6\u8fdf\u7684\u6743\u8861\u3002<\/p>\n<p>\u66f4\u591a\u5185\u5bb9&#xff1a;JVM\u8c03\u4f18\u5b9e\u6218<\/p>\n","protected":false},"excerpt":{"rendered":"<p>25-Serial \u4e0e ParNew \u6536\u96c6\u5668<br \/>\n\u524d\u9762\u51e0\u7bc7\u8bb2\u7684\u662f\\&#8221;\u7b97\u6cd5\\&#8221;&#xff0c;\u4ece\u672c\u7bc7\u5f00\u59cb\u8fdb\u5165\\&#8221;\u5b9e\u73b0\\&#8221;\u2014\u2014\u5177\u4f53\u5230 HotSpot \u63d0\u4f9b\u7684\u51e0\u79cd\u5783\u573e\u6536\u96c6\u5668\u3002\u6700\u53e4\u8001\u3001\u4e5f\u662f\u6700\u7b80\u5355\u7684\u5c31\u662f Serial \u548c Serial Old \u6536\u96c6\u5668&#xff0c;\u5b83\u4eec\u662f\u7406\u89e3\u540e\u7eed\u6240\u6709\u6536\u96c6\u5668\u7684\u57fa\u7840\u3002ParNew \u5219\u662f Serial \u7684\u591a\u7ebf\u7a0b\u7248\u672c&#xff0c;\u4e13\u4e3a\u914d\u5408 CMS \u800c\u751f\u3002\u672c\u7bc7\u5c06\u5256\u6790\u5b83\u4eec\u7684\u8bbe\u8ba1\u3001\u53c2\u6570\u3001\u7ec4\u5408\u5173\u7cfb\u4e0e\u9002\u7528\u573a\u666f\u3002<br \/>\nSerial \u6536\u96c6\u5668<br \/>\nSerial \u662f HotSpot \u6700\u53e4\u8001<\/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":[426],"topic":[],"class_list":["post-87823","post","type-post","status-publish","format-standard","hentry","category-server","tag-jvm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010JVM\u539f\u7406\u8be6\u89e3\u301125-Serial\u4e0eParNew\u6536\u96c6\u5668 - \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\/87823.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010JVM\u539f\u7406\u8be6\u89e3\u301125-Serial\u4e0eParNew\u6536\u96c6\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"25-Serial \u4e0e ParNew \u6536\u96c6\u5668 \u524d\u9762\u51e0\u7bc7\u8bb2\u7684\u662f&quot;\u7b97\u6cd5&quot;&#xff0c;\u4ece\u672c\u7bc7\u5f00\u59cb\u8fdb\u5165&quot;\u5b9e\u73b0&quot;\u2014\u2014\u5177\u4f53\u5230 HotSpot \u63d0\u4f9b\u7684\u51e0\u79cd\u5783\u573e\u6536\u96c6\u5668\u3002\u6700\u53e4\u8001\u3001\u4e5f\u662f\u6700\u7b80\u5355\u7684\u5c31\u662f Serial \u548c Serial Old \u6536\u96c6\u5668&#xff0c;\u5b83\u4eec\u662f\u7406\u89e3\u540e\u7eed\u6240\u6709\u6536\u96c6\u5668\u7684\u57fa\u7840\u3002ParNew \u5219\u662f Serial \u7684\u591a\u7ebf\u7a0b\u7248\u672c&#xff0c;\u4e13\u4e3a\u914d\u5408 CMS \u800c\u751f\u3002\u672c\u7bc7\u5c06\u5256\u6790\u5b83\u4eec\u7684\u8bbe\u8ba1\u3001\u53c2\u6570\u3001\u7ec4\u5408\u5173\u7cfb\u4e0e\u9002\u7528\u573a\u666f\u3002 Serial \u6536\u96c6\u5668 Serial \u662f HotSpot \u6700\u53e4\u8001\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/87823.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-30T15:40:27+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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/87823.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/87823.html\",\"name\":\"\u3010JVM\u539f\u7406\u8be6\u89e3\u301125-Serial\u4e0eParNew\u6536\u96c6\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-30T15:40:27+00:00\",\"dateModified\":\"2026-07-30T15:40:27+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/87823.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/87823.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/87823.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010JVM\u539f\u7406\u8be6\u89e3\u301125-Serial\u4e0eParNew\u6536\u96c6\u5668\"}]},{\"@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":"\u3010JVM\u539f\u7406\u8be6\u89e3\u301125-Serial\u4e0eParNew\u6536\u96c6\u5668 - \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\/87823.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010JVM\u539f\u7406\u8be6\u89e3\u301125-Serial\u4e0eParNew\u6536\u96c6\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"25-Serial \u4e0e ParNew \u6536\u96c6\u5668 \u524d\u9762\u51e0\u7bc7\u8bb2\u7684\u662f\"\u7b97\u6cd5\"&#xff0c;\u4ece\u672c\u7bc7\u5f00\u59cb\u8fdb\u5165\"\u5b9e\u73b0\"\u2014\u2014\u5177\u4f53\u5230 HotSpot \u63d0\u4f9b\u7684\u51e0\u79cd\u5783\u573e\u6536\u96c6\u5668\u3002\u6700\u53e4\u8001\u3001\u4e5f\u662f\u6700\u7b80\u5355\u7684\u5c31\u662f Serial \u548c Serial Old \u6536\u96c6\u5668&#xff0c;\u5b83\u4eec\u662f\u7406\u89e3\u540e\u7eed\u6240\u6709\u6536\u96c6\u5668\u7684\u57fa\u7840\u3002ParNew \u5219\u662f Serial \u7684\u591a\u7ebf\u7a0b\u7248\u672c&#xff0c;\u4e13\u4e3a\u914d\u5408 CMS \u800c\u751f\u3002\u672c\u7bc7\u5c06\u5256\u6790\u5b83\u4eec\u7684\u8bbe\u8ba1\u3001\u53c2\u6570\u3001\u7ec4\u5408\u5173\u7cfb\u4e0e\u9002\u7528\u573a\u666f\u3002 Serial \u6536\u96c6\u5668 Serial \u662f HotSpot \u6700\u53e4\u8001","og_url":"https:\/\/www.wsisp.com\/helps\/87823.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-30T15:40:27+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/87823.html","url":"https:\/\/www.wsisp.com\/helps\/87823.html","name":"\u3010JVM\u539f\u7406\u8be6\u89e3\u301125-Serial\u4e0eParNew\u6536\u96c6\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-30T15:40:27+00:00","dateModified":"2026-07-30T15:40:27+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/87823.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/87823.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/87823.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010JVM\u539f\u7406\u8be6\u89e3\u301125-Serial\u4e0eParNew\u6536\u96c6\u5668"}]},{"@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\/87823","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=87823"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/87823\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=87823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=87823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=87823"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=87823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}