{"id":262768,"date":"2023-02-14T10:49:55","date_gmt":"2023-02-14T02:49:55","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=262768"},"modified":"2023-01-30T11:51:10","modified_gmt":"2023-01-30T03:51:10","slug":"java-virtual-machine-optimization","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/java-virtual-machine-optimization.html","title":{"rendered":"\u5927\u6570\u636e\u4e2d\u7684Java\u865a\u62df\u673a\u4f18\u5316"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | Java\u57fa\u4e8eJVM\u8fd0\u884c\u7684\u7279\u6027\u4f7f\u5f97Java\u7a0b\u5e8f\u53ef\u4ee5\u4e00\u6b21\u7f16\u5199\uff0c\u591a\u5904\u8fd0\u884c\uff0c\u6446\u8131\u5206\u5e03\u5f0f\u96c6\u7fa4\u4e2d\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u548c\u786c\u4ef6\u5904\u7406\u6846\u67b6\u5e26\u6765\u7684\u675f\u7f1a\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u53ef\u4ee5\u66f4\u52a0\u4e13\u6ce8\u4e8e\u4ee3\u7801\u903b\u8f91\u7684\u5f00\u53d1\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u8fd1\u5e74\u4ee5\u6765\uff0c\u5927\u6570\u636e\u5e94\u7528\u53d6\u5f97\u4e86\u957f\u8db3\u7684\u8fdb\u5c55\uff0c\u5404\u79cd\u5927\u6570\u636e\u5904\u7406\u6846\u67b6\u4e5f\u5e94\u8fd0\u800c\u751f\uff0c\u5e76\u5f97\u5230\u4e86\u4e1a\u754c\u7684\u9ad8\u5ea6\u8ba4\u53ef\uff0c\u5982Hadoop\u751f\u6001\u3001Spark\u7cfb\u5217\u3001Flink\u3001Cassandra\u3001Hive\u7b49\u7b49\u3002\u8fd9\u7c7b\u7f16\u7a0b\u6a21\u578b\u901a\u5e38\u91c7\u7528\u5206\u6cbb\u7684\u601d\u60f3\uff0c\u5c06\u5927\u7684\u6570\u636e\u5904\u7406\u4f5c\u4e1a\u62c6\u5206\u4e3a\u591a\u4e2a\u5c0f\u7684\u8ba1\u7b97\u4efb\u52a1\uff0c\u5206\u914d\u5230\u5206\u5e03\u5f0f\u96c6\u7fa4\u4e2d\u7684\u4e0d\u540c\u8282\u70b9\u4e2d\u8fd0\u884c\uff0c\u7136\u540e\u5c06\u7ed3\u679c\u6c47\u805a\u8d77\u6765\uff0c\u5f97\u51fa\u6700\u7ec8\u7ed3\u679c\u3002<\/p>\n \u7531\u4e8e\u4f7f\u7528\u4e60\u60ef\u7b49\u5173\u7cfb\uff0c\u4e1a\u5185\u4e3b\u6d41\u7684\u5927\u6570\u636e\u5904\u7406\u6846\u67b6\u90fd\u91c7\u7528Java\u8bed\u8a00\u8fdb\u884c\u7f16\u5199\u3002\u539f\u56e0\u5728\u4e8e\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n 1\u3001\u5f88\u591a\u7a0b\u5e8f\u5f00\u53d1\u4eba\u5458\u5bf9\u4e8eJava\u8bed\u8a00\u6bd4\u8f83\u719f\u6089\uff0c\u4f7f\u7528\u8d77\u6765\u8f7b\u8f66\u719f\u8def\uff1b<\/p>\n 2\u3001Java\u63d0\u4f9b\u4e86\u4fbf\u6377\u7684\u81ea\u52a8\u5185\u5b58\u7ba1\u7406\u673a\u5236\uff0c\u907f\u514d\u4e86\u7528\u6237\u5728\u5904\u7406\u5185\u5b58\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u95ee\u9898\uff1b<\/p>\n 3\u3001Java\u57fa\u4e8eJVM\u8fd0\u884c\u7684\u7279\u6027\u4f7f\u5f97Java\u7a0b\u5e8f\u53ef\u4ee5\u4e00\u6b21\u7f16\u5199\uff0c\u591a\u5904\u8fd0\u884c\uff0c\u6446\u8131\u5206\u5e03\u5f0f\u96c6\u7fa4\u4e2d\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u548c\u786c\u4ef6\u5904\u7406\u6846\u67b6\u5e26\u6765\u7684\u675f\u7f1a\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u53ef\u4ee5\u66f4\u52a0\u4e13\u6ce8\u4e8e\u4ee3\u7801\u903b\u8f91\u7684\u5f00\u53d1\uff1b<\/p>\n 4\u3001Java\u8bed\u8a00\u62e5\u6709\u6210\u719f\u7684\u793e\u533a\u548c\u4e30\u5bcc\u7684\u7f16\u7a0b\u8d44\u6e90\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5feb\u901f\u5f00\u53d1\uff0c\u51fa\u73b0\u95ee\u9898\u4e5f\u53ef\u4ee5\u5feb\u901f\u5bfb\u6c42\u5e2e\u52a9\u3002<\/p>\n <\/p>\n \u6b63\u662f\u57fa\u4e8e\u8fd9\u4e9b\u4f18\u70b9\uff0cJava\u8bed\u8a00\u6210\u4e3a\u4e86\u76ee\u524d\u6700\u4e3b\u6d41\u5927\u6570\u636e\u7f16\u7a0b\u6280\u672f\u3002\u4f46\u662f\uff0c\u5728\u5b9e\u9645\u4f7f\u7528\u7684\u8fc7\u7a0b\u4e2d\uff0c\u5f00\u53d1\u8005\u4eec\u53d1\u73b0\u4e86\u4e00\u7cfb\u5217JVM\u76f8\u5173\u7684\u6027\u80fd\u74f6\u9888\uff0c\u4e3b\u8981\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n 1\u3001\u5783\u573e\u56de\u6536\uff08GC\uff09\u5360\u7528\u65f6\u95f4\u957f\uff0c\u5728\u4e00\u4e9b\u5927\u6570\u636e\u5e94\u7528\u4e2d\uff0cGC\u65f6\u95f4\u751a\u81f3\u53ef\u4ee5\u8fbe\u5230\u603b\u6267\u884c\u65f6\u95f4\u768450%\uff1b<\/p>\n 2\u3001GC\u9891\u7387\u9ad8\uff0c\u9020\u6210\u4efb\u52a1\u6267\u884c\u9891\u7e41\u6682\u505c\uff0c\u5e94\u7528\u541e\u5410\u7387\u964d\u4f4e\uff0c\u54cd\u5e94\u5ef6\u8fdf\u5347\u9ad8\uff1b<\/p>\n 3\u3001GC\u7b97\u6cd5\u6324\u5360\u5e94\u7528\u7ebf\u7a0bCPU\u8d44\u6e90\uff0c\u5b58\u5728GC\u7ebf\u7a0b\u7ade\u4e89\u65f6\uff0c\u5927\u6570\u636e\u5e94\u7528\u6267\u884c\u65f6\u95f4\u589e\u957f\u53ef\u8fbe60%\uff1b<\/p>\n 4\u3001\u6570\u636e\u5bf9\u8c61\u5728\u5206\u5e03\u5f0f\u8282\u70b9\u95f4\u4f20\u8f93\u65f6\u9700\u8981\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\uff0c\u5728\u67d0\u4e9b\u5927\u6570\u636e\u5e94\u7528\u4e2d\uff0c\u7528\u65f6\u5360\u6bd4\u53ef\u8fbe30%\uff1b<\/p>\n 5\u3001JVM\u51b7\u542f\u52a8\u65f6\u9700\u8981\u5927\u91cf\u7684\u7c7b\u52a0\u8f7d\u548c\u4ee3\u7801\u5373\u65f6\u7f16\u8bd1\u5de5\u4f5c\uff0c\u5728\u5e94\u7528\u6267\u884c\u4e2d\u7684\u7528\u65f6\u53ef\u8fbe\u6570\u5341\u79d2\uff1b<\/p>\n 6\u3001JVM\u8fd0\u884c\u548c\u7ef4\u62a4\u9700\u8981\u5185\u5b58\u6d88\u8017\uff0c\u5728\u5185\u5b58\u7d27\u5f20\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u56e0\u4e3a\u5185\u5b58\u8017\u5c3d\u6216\u5185\u5b58\u788e\u7247\u89e6\u53d1OOM\u9519\u8bef\u3002<\/p>\n <\/p>\n \u603b\u7684\u6765\u8bf4\uff0c\u8fd9\u4e9b\u95ee\u9898\u7684\u4ea7\u751f\uff0c\u53ef\u4ee5\u5f52\u7eb3\u4e3a\u4ee5\u4e0b\u4e00\u4e9b\u539f\u56e0\uff1a<\/p>\n 1\u3001\u5185\u5b58\u4f7f\u7528\u538b\u529b\u589e\u5927<\/strong><\/div>\n \u4e0e\u666e\u901a\u7684Java\u5e94\u7528\u4e0d\u540c\uff0c\u5927\u6570\u636e\u5e94\u7528\u662f\u201c\u5185\u5b58\u5bc6\u96c6\u201d\u578b\u7684\uff0c\u5e94\u7528\u7684\u5185\u5b58\u4f7f\u7528\u91cf\u66f4\u5927\uff0c\u5728\u5927\u6570\u636e\u5904\u7406\u6846\u67b6\u4e0b\uff0cJVM\u7684\u5185\u5b58\u4f7f\u7528\u538b\u529b\u5177\u4f53\u6765\u6e90\u4e8e\uff1a<\/p>\n \uff081\uff09\u5927\u6570\u636e\u5e94\u7528\u6570\u636e\u8ba1\u7b97\u548c\u5b58\u50a8\u4ea7\u751f\u7684\u5927\u91cf\u5185\u5b58\u6d88\u8017\uff0c\u5927\u91cf\u6570\u636e\u5728\u8ba1\u7b97\u8fc7\u7a0b\u4e2d\u9700\u8981\u540c\u65f6\u88ab\u8bfb\u53d6\u5230\u5185\u5b58\u4e2d\uff0c\u800c\u4e00\u4e9b\u5e94\u7528\u4e3a\u4e86\u66f4\u8fdb\u4e00\u6b65\u52a0\u5feb\u5904\u7406\u901f\u5ea6\uff0c\u5c06\u4e2d\u95f4\u6570\u636e\u7684\u805a\u5408\u548c\u53ef\u91cd\u7528\u6570\u636e\u4e5f\u7f13\u5b58\u5728\u5185\u5b58\u5f53\u4e2d\uff0c\u8fd9\u51b3\u5b9a\u4e86JVM\u5728\u6267\u884c\u5927\u6570\u636e\u5e94\u7528\u65f6\u5c06\u9762\u5bf9\u66f4\u5927\u7684\u5185\u5b58\u4f7f\u7528\u91cf\uff1b<\/p>\n \uff082\uff09\u6570\u636e\u5728JVM\u5806\u5185\u5b58\u5f53\u4e2d\u4ee5\u5bf9\u8c61\u7684\u5f62\u5f0f\u5b58\u50a8\u9700\u8981\u989d\u5916\u7684\u5185\u5b58\u5360\u7528\uff0c\u5bf9\u8c61\u5728JVM\u5f53\u4e2d\u7684\u6570\u636e\u7ed3\u6784\u5305\u542b\u4e86\u5bf9\u8c61\u5934\u4ee5\u53ca\u5bf9\u5176\u5b83\u5bf9\u8c61\u7684\u5f15\u7528\uff0c\u800c\u6570\u636e\u672c\u8eab\u5728\u5bf9\u8c61\u4e2d\u7684\u7a7a\u95f4\u5360\u6bd4\u5f80\u5f80\u4e0d\u8d85\u8fc7\u4e00\u534a\u3002\u8fd9\u4e9b\u5bf9\u8c61\u7684\u5916\u58f3\u4f34\u968f\u7740\u6570\u636e\u7f13\u5b58\u5728\u5185\u5b58\u5f53\u4e2d\uff0c\u4e5f\u9700\u8981\u5360\u7528\u76f8\u5f53\u6570\u91cf\u7684\u7a7a\u95f4\uff1b<\/p>\n \u7531\u4e8eJVM\u5783\u573e\u56de\u6536\u673a\u5236\u7684\u539f\u56e0\uff0c\u4f1a\u7ecf\u5e38\u89e6\u53d1\u5168\u5c40\u6682\u505c\uff0c\u800c\u8fd9\u4e2a\u95ee\u9898\u5f88\u96be\u901a\u8fc7\u7b80\u5355\u7684\u589e\u51cf\u5185\u5b58\u5927\u5c0f\u6765\u89e3\u51b3\uff0c\u5982\u679c\u964d\u4f4e\u5185\u5b58\u5927\u5c0f\uff0cGC\u7684\u89e6\u53d1\u9891\u7387\u4f1a\u589e\u52a0\uff0c\u5bf9\u8c61\u88ab\u626b\u63cf\u548c\u7684\u53bb\u7684\u6b21\u6570\u589e\u52a0\uff0c\u5e94\u7528\u7a0b\u5e8f\u7684\u541e\u5410\u91cf\u76f8\u5e94\u964d\u4f4e\u3002\u53ef\u7528\u5185\u5b58\u4e0d\u8db3\u8fd8\u4f1a\u5f71\u54cd\u5230\u5e94\u7528\u7684\u6b63\u5e38\u7f13\u5b58\u548c\u5904\u7406\u673a\u5236\uff0c\u751a\u81f3\u5f15\u53d1\u5185\u5b58\u6ea2\u51fa\u3002\u800c\u5982\u679c\u63d0\u5347\u5185\u5b58\u5927\u5c0f\uff0c\u5355\u6b21GC\u5219\u9700\u8981\u5904\u7406\u66f4\u591a\u7684\u6570\u636e\u5bf9\u8c61\uff0c\u5e73\u5747\u7684\u6682\u505c\u65f6\u95f4\u52a0\u957f\uff0c\u5e94\u7528\u7a0b\u5e8f\u7684\u6700\u5927\u5ef6\u8fdf\u76f8\u5e94\u589e\u52a0\u3002\u5bf9\u4e8e\u5468\u671f\u6027\u6807\u8bb0\u626b\u63cf\u7684GC\u7b97\u6cd5\u800c\u8a00\uff0c\u8fd8\u4f1a\u5728\u6700\u7ec8\u89e6\u53d1GC\u4e4b\u524d\u6d88\u8017\u66f4\u591aCPU\u65f6\u5e8f\u8fdb\u884c\u4e0d\u5fc5\u8981\u7684\u6807\u8bb0\u3002<\/p>\n 2\u3001\u5185\u5b58\u4f7f\u7528\u6a21\u5f0f\u53d8\u5316<\/strong><\/div>\n \u5927\u6570\u636e\u5e94\u7528\u4e2d\u6570\u636e\u5728\u5185\u5b58\u5f53\u4e2d\u4fdd\u7559\u7684\u65f6\u95f4\u5468\u671f\u4e0e\u666e\u901a\u5e94\u7528\u4e0d\u5c3d\u76f8\u540c\u3002\u5728\u4f20\u7edf\u5e94\u7528\u4e2d\uff0c\u5806\u5185\u5b58\u4e2d\u521b\u5efa\u7684\u7edd\u5927\u90e8\u5206\u5bf9\u8c61\u5728\u4ea7\u751f\u4e4b\u540e\u4e0d\u4e45\u5c31\u4e0d\u518d\u88ab\u4f7f\u7528\uff0c\u7ecf\u5178\u7684GC\u7b97\u6cd5\u6b63\u662f\u57fa\u4e8e\u8fd9\u79cd\u5185\u5b58\u4f7f\u7528\u6a21\u5f0f\uff0c\u5c06\u5806\u5185\u5b58\u8fdb\u884c\u7c97\u7c92\u5ea6\u7684\u5e74\u4ee3\u5212\u5206\uff0c\u7edd\u5927\u90e8\u5206\u77ac\u65f6\u5bf9\u8c61\u4f1a\u5728\u9488\u5bf9\u5e74\u8f7b\u4ee3\u7684Minor GC\u5f53\u4e2d\u5f88\u5feb\u88ab\u6e05\u7406\u3002\u800c\u5927\u6570\u636e\u5e94\u7528\u4ea7\u751f\u7684\u5bf9\u8c61\u6709\u4e24\u79cd\uff0c\u4e00\u79cd\u662f\u7531\u63a7\u5236\u5927\u6570\u636e\u5904\u7406\u6846\u67b6\u8fd0\u884c\u903b\u8f91\u7684\u4ee3\u7801\u4ea7\u751f\u7684\uff0c\u5373\u63a7\u5236\u8def\u5f84\u5bf9\u8c61\uff0c\u5b83\u4eec\u7684\u5185\u5b58\u4f7f\u7528\u6a21\u5f0f\u4e00\u822c\u4f9d\u65e7\u7b26\u5408\u5f31\u4e16\u4ee3\u5047\u8bbe\u3002\u53e6\u4e00\u79cd\u662f\u8f93\u5165\u6570\u636e\u548c\u8ba1\u7b97\u4e2d\u95f4\u6570\u636e\u5728\u5927\u6570\u636e\u5904\u7406\u6846\u67b6\u4e2d\u5c01\u88c5\u751f\u4ea7\u7684\uff0c\u7edf\u79f0\u4e3a\u6570\u636e\u8def\u5f84\u5bf9\u8c61\u3002\u8fd9\u79cd\u5bf9\u8c61\u7684\u5185\u5b58\u4f7f\u7528\u6a21\u5f0f\u8981\u66f4\u52a0\u590d\u6742\uff0c\u5b83\u4eec\u53ef\u80fd\u5728\u5185\u5b58\u4e2d\u957f\u65f6\u95f4\u7d2f\u79ef\u6216\u7f13\u5b58\uff0c\u4e5f\u53ef\u80fd\u5728\u4e00\u4e2a\u8fed\u4ee3\u8f6e\u6b21\u540e\u88ab\u6e05\u7406\u548c\u8f93\u51fa\u3002\u901a\u5e38\u6765\u8bf4\uff0c\u6570\u636e\u8def\u5f84\u6240\u521b\u5efa\u7684\u5bf9\u8c61\u6570\u91cf\u8fdc\u8d85\u63a7\u5236\u8def\u5f84\u3002\u4f20\u7edfGC\u7b97\u6cd5\u5e76\u4e0d\u80fd\u9002\u5e94\u5927\u6570\u636e\u73af\u5883\u4e0b\u5185\u5b58\u4f7f\u7528\u6a21\u5f0f\u7684\u8fd9\u79cd\u53d8\u5316\uff0c\u539f\u56e0\u5728\u4e8e\uff1a<\/p>\n \uff081\uff09\u5f53\u524dGC\u7b97\u6cd5\u4e0b\uff0c\u957f\u65f6\u95f4\u5b58\u6d3b\u7684\u6570\u636e\u8def\u5f84\u5bf9\u8c61\u6700\u7ec8\u90fd\u4f1a\u664b\u5347\u5230\u8001\u5e74\u4ee3\u4e2d\uff0c\u5b83\u4eec\u5728\u6570\u6b21Minor GC\u5f53\u4e2d\u5e78\u5b58\u5e76\u6700\u7ec8\u664b\u5347\u7684\u8fc7\u7a0b\u4e2d\uff0c\u9700\u8981\u5728\u5185\u5b58\u4e2d\u591a\u6b21\u79fb\u52a8\u3002\u800c\u5bf9\u8c61\u79fb\u52a8\u662fGC\u5faa\u73af\u5f53\u4e2d\u6700\u8017\u65f6\u7684\u90e8\u5206\uff0c\u6bcf\u4e00\u6b21\u79fb\u52a8\u90fd\u610f\u5473\u7740\u5185\u5b58\u8bfb\u5199\uff0c\u800c\u5185\u5b58\u4f4d\u7f6e\u7684\u6539\u53d8\u4e5f\u9700\u8981\u5bf9\u76f8\u5173\u5f15\u7528\u7684\u6307\u9488\u8fdb\u884c\u66f4\u65b0\u3002\u8003\u8651\u5230\u6570\u636e\u8def\u5f84\u5bf9\u8c61\u7684\u6570\u91cf\u6781\u4e3a\u5e9e\u5927\uff0c\u6574\u4e2a\u664b\u5347\u8fc7\u7a0b\u4f1a\u6d88\u8017\u5927\u91cfCPU\u65f6\u95f4\uff0c\u89e6\u53d1\u591a\u6b21GC\u6682\u505c\uff1b<\/p>\n \uff082\uff09\u6570\u636e\u8def\u5f84\u5bf9\u8c61\u5728\u664b\u5347\u5230\u8001\u5e74\u4ee3\u4e4b\u540e\uff0c\u5728\u4f5c\u4e1a\u6267\u884c\u7684\u65f6\u95f4\u5c3a\u5ea6\u4e0a\uff0c\u77ed\u65f6\u95f4\u5185\u4e5f\u4e0d\u4f1a\u88ab\u56de\u6536\u3002\u4f20\u7edf\u7684GC\u7b97\u6cd5\u4e0d\u4f1a\u8003\u8651\u8fd9\u4e9b\u5bf9\u8c61\u7684\u5b58\u6d3b\u65f6\u95f4\uff0c\u5728\u6d89\u53ca\u5230\u8001\u5e74\u4ee3\u7a7a\u95f4\u7684MajorGC\u6216\u8005Mixed GC\u4e4b\u524d\u8fd8\u662f\u4f1a\u6574\u4e2a\u5806\u5185\u5b58\u7a7a\u95f4\u8fdb\u884c\u6807\u8bb0\u626b\u63cf\uff0c\u8fd9\u4e9b\u6807\u8bb0\u626b\u63cf\u8fc7\u7a0b\u5bf9\u4e8e\u957f\u65f6\u95f4\u5b58\u6d3b\u7684\u6570\u636e\u5bf9\u8c61\u6765\u8bf4\u662f\u4e0d\u5fc5\u8981\u7684\u3002\u5f53\u957f\u65f6\u95f4\u5b58\u6d3b\u5bf9\u8c61\u5360\u7528\u8001\u5e74\u4ee3\u7684\u6bd4\u4f8b\u8fc7\u9ad8\uff0c\u6bcf\u6b21\u4f20\u51fa\u8f83\u5927\u4ee3\u4ef7\u7684Major GC\u5c31\u53ea\u80fd\u56de\u6536\u6709\u9650\u5927\u5c0f\u7684\u7a7a\u95f4\uff0c\u53ef\u80fd\u9020\u6210GC\u9891\u7e41\u89e6\u53d1\uff0c\u90e8\u5206\u7f13\u5b58\u6570\u636e\u88ab\u8feb\u8f6c\u79fb\u5230\u78c1\u76d8\uff0c\u751a\u81f3\u51fa\u73b0OOM\u9519\u8bef\uff0c\u6d6a\u8d39\u5927\u91cf\u7684CPU\u65f6\u95f4\u548c\u5168\u5c40\u6682\u505c\u65f6\u95f4\uff0c\u5f71\u54cd\u5230\u5e94\u7528\u6267\u884c\u6548\u7387\u3002<\/p>\n <\/p>\n 3\u3001JVM\u4e0e\u4e0a\u5c42\u6846\u67b6\u5b58\u5728\u9694\u9602<\/strong><\/div>\n \u5927\u6570\u636e\u5904\u7406\u6846\u67b6\u5c06\u8ba1\u7b97\u4efb\u52a1\u5206\u914d\u5230\u5404\u4e2a\u6267\u884c\u5668JVM\u8282\u70b9\u4e4b\u540e\uff0c\u5e76\u4e0d\u4f1a\u5e72\u9884JVM\u7684\u5177\u4f53\u6267\u884c\u8fc7\u7a0b\uff0c\u6bcf\u4e2a\u6267\u884c\u5668JVM\u72ec\u7acb\u8fd0\u884c\uff0c\u5e76\u4e0d\u611f\u77e5\u5206\u5e03\u5f0f\u96c6\u7fa4\u4e2d\u5176\u5b83\u6267\u884c\u5668JVM\u7684\u6267\u884c\u60c5\u51b5\uff0c\u4f5c\u4e1a\u7684\u6574\u4f53\u8fdb\u5ea6\uff0c\u4ee5\u53ca\u96c6\u7fa4\u548c\u8282\u70b9\u7684\u5185\u5b58\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5\uff0c\u53ea\u662f\u6839\u636e\u81ea\u8eab\u7684\u8fd0\u884c\u72b6\u6001\u4f5c\u51fa\u89e6\u53d1GC\uff0c\u8c03\u6574\u5806\u5185\u5b58\uff0c\u8fdb\u884c\u4ee3\u7801\u5373\u65f6\u7f16\u8bd1\u7b49\u51b3\u7b56\uff0c\u800c\u8fd9\u4e9b\u51b3\u7b56\u4ece\u5386\u53f2\u548c\u5168\u5c40\u7684\u89d2\u5ea6\u4e0a\u89c2\u5bdf\u53ef\u80fd\u5e76\u4e0d\u662f\u6700\u4f18\u7684\u3002\u539f\u56e0\u5728\u4e8e\uff1a<\/p>\n \uff081\uff09JVM\u4e0d\u6e05\u695a\u4efb\u52a1\u6267\u884c\u4ea7\u751f\u7684\u6570\u636e\u5bf9\u8c61\u7279\u5f81\uff0c\u4f8b\u5982\u5bf9\u8c61\u6570\u91cf\u3001\u5185\u5b58\u5360\u7528\u5927\u5c0f\u3001\u751f\u547d\u5468\u671f\u7b49\uff0c\u53ea\u80fd\u6839\u636e\u5f31\u4e16\u4ee3\u5047\u8bf4\uff0c\u5bf9\u6240\u6709\u5bf9\u8c61\u8fdb\u884c\u7edf\u4e00\u7684\u7ba1\u7406\u3002\u7531\u4e8e\u5927\u6570\u636e\u5e94\u7528\u4ea7\u751f\u7684\u5927\u91cf\u5bf9\u8c61\u957f\u65f6\u95f4\u5b58\u6d3b\uff0cJVM\u7684\u5185\u5b58\u7ba1\u7406\u6548\u7387\u4f1a\u53d7\u5230\u4e25\u91cd\u5f71\u54cd\uff0c\u800c\u8fd9\u4e9b\u5bf9\u8c61\u672c\u53ef\u4ee5\u901a\u8fc7\u5927\u6570\u636e\u6846\u67b6\u5bf9\u7528\u6237\u4ee3\u7801\u548c\u6570\u636e\u6d41\u7684\u5168\u5c40\u9759\u6001\u5206\u6790\u8fdb\u884c\u7504\u522b\u3002<\/p>\n \uff082\uff09\u5927\u6570\u636e\u5904\u7406\u6846\u67b6\u5e76\u4e0d\u8003\u8651JVM\u5177\u4f53\u7684\u5185\u5b58\u7ba1\u7406\u673a\u5236\uff0c\u5c06\u6240\u6709JVM\u8282\u70b9\u7684\u5185\u5b58\u5f53\u505a\u8fde\u7eed\u7684\u5168\u5c40\u5730\u5740\u7a7a\u95f4\uff0c\u4f46\u662f\u5b9e\u9645\u4e0aJVM\u5728GC\u7b97\u6cd5\u4e0b\u5bf9\u5806\u5185\u5b58\u91c7\u53d6\u5206\u4ee3\u7ba1\u7406\uff0c\u5b58\u5728\u975e\u8fde\u7eed\u533a\u57df\uff0c\u5bf9\u8c61\u5728\u5185\u5b58\u4e2d\u79bb\u6563\u5206\u5e03\uff0c\u53e6\u5916\u5927\u6570\u636e\u5904\u7406\u6846\u67b6\u5728\u91c7\u7528\u5168\u5c40\u5730\u5740\u7a7a\u95f4\u7684\u7269\u7406\u67b6\u6784\u4e0b\uff0c\u53ef\u80fd\u4ea7\u751f\u5927\u91cf\u8de8\u8282\u70b9\u5bf9\u5bf9\u8c61\u5f15\u7528\uff0c\u7ed9JVM\u7684GC\u4efb\u52a1\u5e26\u6765\u4e86\u8fdc\u7a0b\u5185\u5b58\u8bbf\u95ee\u7684\u8d1f\u62c5\u3002<\/p>\n \uff083\uff09\u5927\u6570\u636e\u5904\u7406\u6846\u67b6\u4e0b\u7684JVM\u4e4b\u95f4\u4e0d\u6e05\u695a\u5f7c\u6b64\u7684\u8fd0\u884c\u60c5\u51b5\uff0c\u5982\u679c\u5927\u6570\u636e\u64cd\u4f5c\u9700\u8981\u5728\u5404\u4e2aJVM\u4e4b\u95f4\u540c\u6b65\uff0c\u7531\u4e8eJVM\u72ec\u7acb\u8fdb\u884cGC\u51b3\u7b56\uff0c\u5927\u6570\u636e\u64cd\u4f5c\u7684\u6267\u884c\u5c31\u53ef\u80fd\u88ab\u4e0d\u540c\u7684JVM\u7684GC\u8fde\u7eed\u6253\u65ad\uff0c\u53e6\u5916\u7531\u4e8e\u4e92\u76f8\u4e0d\u611f\u77e5\uff0c\u5904\u4e8e\u540c\u4e00\u7269\u7406\u8282\u70b9\u7684JVM\u4e4b\u95f4\u53ef\u80fd\u5185\u5b58\u8d44\u6e90\u5206\u914d\u4e0d\u5408\u7406\uff0c\u800c\u5927\u6570\u636e\u6846\u67b6\u5728\u76f8\u5173\u95ee\u9898\u4e0a\u7f3a\u5c11\u7edf\u7b79\u534f\u8c03\u3002<\/p>\n \u56e0\u6b64\uff0c\u5f00\u53d1\u8005\u4eec\u9700\u8981\u9488\u5bf9\u8fd9\u4e9b\u95ee\u9898\u4ea7\u751f\u7684\u539f\u56e0\uff0c\u8fdb\u884c\u9488\u5bf9\u6027\u4f18\u5316\u3002\u6211\u4eec\u4e0b\u6b21\u6587\u7ae0\u5c06\u4f1a\u7ee7\u7eed\u8ba8\u8bba\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u8fd1\u5e74\u4ee5\u6765\uff0c\u5927\u6570\u636e\u5e94\u7528\u53d6\u5f97\u4e86\u957f\u8db3\u7684\u8fdb\u5c55\uff0c\u5404\u79cd\u5927\u6570\u636e\u5904\u7406\u6846\u67b6\u4e5f\u5e94\u8fd0\u800c\u751f\uff0c\u5e76\u5f97\u5230\u4e86\u4e1a\u754c\u7684\u9ad8\u5ea6\u8ba4\u53ef\uff0c\u5982Hadoop\u751f\u6001 […]<\/p>\n","protected":false},"author":1329,"featured_media":262774,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-262768","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/262768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1329"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=262768"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/262768\/revisions"}],"predecessor-version":[{"id":262776,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/262768\/revisions\/262776"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/262774"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=262768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=262768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=262768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} |