{"id":69963,"date":"2023-11-02T15:30:55","date_gmt":"2023-11-02T15:30:55","guid":{"rendered":"https:\/\/www.azul.com\/?p=69963"},"modified":"2024-01-26T17:50:50","modified_gmt":"2024-01-26T17:50:50","slug":"how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling","status":"publish","type":"post","link":"https:\/\/www.azul.com\/zh-hans\/blog\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\/","title":{"rendered":"\u5982\u4f55\u901a\u8fc7\u4f18\u5316 CPU \u5229\u7528\u7387\u907f\u514d CPU \u81ea\u52a8\u6269\u7f29"},"content":{"rendered":"\n<p>\u5f53\u4eca\u7684 Java \u96c6\u7fa4\u5177\u6709\u73b0\u4ee3\u5316\u3001\u5bb9\u5668\u5316\u548c\u53ef\u5f39\u6027\u6269\u7f29\u7684\u7279\u70b9\uff0c\u901a\u5e38\u4e3b\u8981\u4f9d\u8d56 CPU \u5229\u7528\u7387\u6765\u6a2a\u5411\u6269\u5c55\u65b0\u5b9e\u4f8b\u3002\u5c3d\u7ba1\u8fd9\u4e00\u6307\u6807\u53ef\u80fd\u5e76\u4e0d\u5b8c\u7f8e\uff0c\u4f46\u6839\u636e CPU \u5229\u7528\u7387\u8d85\u8fc7\u67d0\u4e2a\u9650\u5236\u540e\u5c31\u8fdb\u884c\u6a2a\u5411\u6269\u5c55\u65b0\u5b9e\u4f8b\u7684\u505a\u6cd5\u5374\u5341\u5206\u5e38\u89c1\u3002\u8be5\u9650\u5236\u5f80\u5f80\u6781\u4f4e\uff0c\u5927\u7ea6\u5728 40% \u5230 50% \u4e4b\u95f4\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/www.azul.com\/products\/prime\">Azul Platform Prime<\/a> \u4f7f\u7528 <a href=\"https:\/\/www.azul.com\/products\/components\/falcon-jit-compiler\/\">Falcon JIT \u7f16\u8bd1\u5668<\/a>\u53d6\u4ee3\u4e86 OpenJDK \u7684 HotSpot C2 \u7f16\u8bd1\u5668\u3002Falcon \u751f\u6210\u7684\u4ee3\u7801\u8fd0\u884c\u8d77\u6765\u6bd4 OpenJDK \u5feb\u5f97\u591a\uff0c\u56e0\u6b64\uff0c\u5728\u8fbe\u5230 CPU \u5229\u7528\u7387\u9650\u5236\u4e4b\u524d\uff0c\u60a8\u53ef\u4ee5\u5728\u5bb9\u5668\u4e2d\u5904\u7406\u66f4\u591a\u4e8b\u52a1\u3002\u6b64\u5916\uff0cPrime \u5728\u6267\u884c\u4ee3\u7801\u65f6\u66f4\u6d41\u7545\u3001\u66f4\u4e00\u81f4\uff0c\u53ef\u4ee5\u8ba9\u60a8\u5b89\u5168\u5730\u5c06 CPU \u5229\u7528\u7387\u63d0\u9ad8\u5230 60-70%\uff0c\u4ece\u800c\u5927\u5e45\u63d0\u9ad8\u6bcf\u4e2a\u5bb9\u5668\u7684\u627f\u8f7d\u80fd\u529b\uff0c\u964d\u4f4e\u7528\u4e8e\u5904\u7406 Java \u6240\u6709\u5de5\u4f5c\u8d1f\u8f7d\u7684\u603b\u4f53\u4e91\u6210\u672c\u3002<\/p>\n\n\n\n<p>\u7136\u800c\uff0c\u4e00\u4e2a\u7ecf\u5e38\u51fa\u73b0\u7684\u95ee\u9898\u662f\uff0c\u5728 JVM \u9884\u70ed\u9636\u6bb5\uff0c\u8981\u5982\u4f55\u5e73\u8861\u57fa\u4e8e CPU \u7684\u81ea\u52a8\u6269\u7f29\u4e0e Falcon JIT \u7f16\u8bd1\u5668\u5bf9 CPU \u7684\u8f83\u5927\u9700\u6c42\u3002\u8bb8\u591a\u81ea\u52a8\u6269\u7f29\u7a0b\u5e8f\u4f1a\u7ed9 JVM \u4e00\u5c0f\u6bb5\u9884\u70ed\u5bbd\u9650\u671f\uff08\u901a\u5e38\u7ea6\u4e3a 1-2 \u5206\u949f\uff09\uff0c\u7136\u540e\u5c31\u5f00\u59cb\u901a\u8fc7\u8fd0\u884c\u72b6\u51b5\u68c0\u67e5\u76d1\u63a7 JVM\u3002\u5982\u679c\u5728 1-2 \u5206\u949f\u540e\uff0cCPU \u5229\u7528\u7387\u8d85\u8fc7\u4e00\u5b9a\u6bd4\u4f8b\uff08\u4f8b\u5982 50%\uff09\uff0c\u5b83\u4eec\u5c31\u4f1a\u6a2a\u5411\u6269\u5c55\uff0c\u6dfb\u52a0\u66f4\u591a\u8ba1\u7b97\u673a\u3002\u4f46\u662f\uff0c\u5982\u679c JIT \u7f16\u8bd1\u5230\u90a3\u65f6\u8fd8\u6ca1\u6709\u7a33\u5b9a\u4e0b\u6765\uff0c\u60a8\u5c31\u6709\u53ef\u80fd\u5728\u5f92\u7136\u6269\u5c55\u66f4\u591a\u5b9e\u4f8b\uff0c\u56e0\u4e3a CPU \u5229\u7528\u7387\u9ad8\u4e0d\u662f\u56e0\u4e3a\u6d41\u91cf\uff0c\u800c\u662f\u56e0\u4e3a JIT \u7f16\u8bd1\uff0c\u800c JIT \u7f16\u8bd1\u5f88\u5feb\u5c31\u4f1a\u8870\u51cf\u3002\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u60a8\u7684\u96c6\u7fa4\u9677\u5165\u4e00\u4e2a\u5faa\u73af\uff0c\u5373\uff1a\u96c6\u7fa4\u4e0d\u65ad\u542f\u52a8\u65b0\u7684\u8ba1\u7b97\u673a\uff0c\u8ba4\u4e3a\u5b83\u4eec\u5df2\u7ecf\u79ef\u538b\u5f88\u591a\u8d1f\u8f7d\uff0c\u7136\u540e\u53c8\u542f\u52a8\u66f4\u591a\u8ba1\u7b97\u673a\uff0c\u5982\u6b64\u53cd\u590d\u3002<\/p>\n\n\n\n<p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8 Azul Platform Prime \u5982\u4f55\u5e73\u8861 JIT \u7f16\u8bd1\u7684 CPU \u5f00\u9500\u548c\u57fa\u4e8e CPU \u7684\u81ea\u52a8\u6269\u7f29\uff0c\u4ece\u800c\u5728\u63d0\u4f9b\u6700\u9ad8\u6027\u80fd\u7684\u540c\u65f6\u907f\u514d\u51fa\u73b0\u8fd9\u4e9b\u4ee4\u4eba\u5934\u75bc\u7684\u6269\u7f29\u76f8\u5173\u95ee\u9898\u3002\u4e0b\u56fe\u662f\u524d\u540e\u5bf9\u6bd4\u7684\u6458\u8981\u3002\u6211\u4eec\u6765\u9010\u6b65\u4e86\u89e3\u4e00\u4e0b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"472\" src=\"https:\/\/azul.imgix.net\/wp-content\/uploads\/before_after-1024x472.png?auto=format&crop=faces,entropy&fit=max&q=80&s=c6a1e58df815ed86895f945e93311fff\" alt=\"\" class=\"wp-image-68636\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-\u7b2c-1-\u6b65-\u5f00\u542f\u8fd0\u884c\u4e4b\u65c5\">\u7b2c 1 \u6b65\uff1a\u5f00\u542f\u8fd0\u884c\u4e4b\u65c5<\/h2>\n\n\n\n<p>\u6211\u4eec\u6765\u4f7f\u7528\u524d\u9762\u63d0\u5230\u7684\u573a\u666f\uff1a\u542f\u52a8 Java \u5de5\u4f5c\u8d1f\u8f7d\uff0c\u5c06 JVM \u7a33\u5b9a\u6027\u80fd\/CPU \u5229\u7528\u7387\u7684\u9608\u503c\uff08\u5373\u6240\u8c13\u7684\u201c\u540e\u9884\u70ed\u9636\u6bb5\u201d\uff09\u8bbe\u7f6e\u4e3a 1 \u5206\u949f\u30021 \u5206\u949f\u8fc7\u540e\uff0c\u5982\u679c CPU \u5229\u7528\u7387\u8d85\u8fc7\u67d0\u4e2a\u9608\u503c\uff08\u4f8b\u5982 50%\uff09\uff0c\u5219\u6fc0\u6d3b\u81ea\u52a8\u6269\u7f29\u7a0b\u5e8f\u4ee5\u8fdb\u884c\u7eb5\u5411\u6269\u5c55\u3002\u4f5c\u4e3a JVM \u7684\u8fd0\u8425\u8005\uff0c\u6211\u4eec\u65e0\u6cd5\u63a7\u5236\u5e94\u7528\u7a0b\u5e8f\u672c\u8eab\u6d88\u8017\u591a\u5c11 CPU\uff08\u8fd9\u53d6\u51b3\u4e8e\u8d1f\u8f7d\uff09\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u7684\u76ee\u6807\u662f\u63a7\u5236 JIT \u7f16\u8bd1\u5668\u5728\u9884\u70ed\u540e\u9636\u6bb5\u6d88\u8017\u7684 CPU\uff0c\u4ee5\u786e\u4fdd\u6269\u5c55\u662f\u7531\u4e8e\u8d1f\u8f7d\u589e\u52a0\uff0c\u800c\u4e0d\u662f\u7531\u4e8e JIT \u6d3b\u52a8\u3002<\/p>\n\n\n\n<p>\u4e0b\u56fe\u5c55\u73b0\u4e86\u8be5\u7f16\u8bd1\u5668\u5904\u7406\u67d0 Java \u5de5\u4f5c\u8d1f\u8f7d\u65f6\u7684 CPU \u5229\u7528\u7387\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"472\" src=\"https:\/\/azul.imgix.net\/wp-content\/uploads\/cpu-utilization-blog-step1-line-1024x472.png?auto=format&crop=faces,entropy&fit=max&q=80&s=840c81da056f3c56104cbb57ad4429aa\" alt=\"\" class=\"wp-image-68717\"\/><\/figure>\n\n\n\n<p>\u4ece\u56fe\u4e2d\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0c\u7f16\u8bd1\u5668\u5728 1 \u5206\u949f\uff0860 \u79d2\uff09\u9650\u503c\u540e\u4ecd\u7136\u975e\u5e38\u6d3b\u8dc3\u3002\u8fd9\u662f\u56e0\u4e3a\u53ef\u80fd\u8fd8\u6709\u4e00\u4e9b\u65b9\u6cd5\u5c1a\u672a\u8fbe\u5230\u7f16\u8bd1\u9608\u503c\uff0c\u6216\u8005\u7f16\u8bd1\u5668\u961f\u5217\u88ab\u6700\u521d\u7206\u53d1\u7684\u6d3b\u52a8\u5360\u6ee1\u4e86\u3002<\/p>\n\n\n\n<p>\u4e3a\u4e86\u5b9e\u73b0\u6211\u4eec\u7684\u76ee\u6807\uff08\u5728 60 \u79d2\u540e\u6700\u5927\u9650\u5ea6\u51cf\u5c11 JIT \u7f16\u8bd1\u5668\u6d3b\u52a8\uff09\uff0c\u9075\u5faa\u7684\u4e3b\u8981\u7b56\u7565\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u5efa\u7acb\u57fa\u51c6\u3002<\/strong><\/li>\n\n\n\n<li><strong>\u4f7f\u7528<\/strong><strong> ReadyNow <\/strong><strong>\u5728\u8fd0\u884c\u521d\u671f\u5c3d\u53ef\u80fd\u591a\u5730\u9884\u5148\u52a0\u8f7d\u4f18\u5316\u3002<\/strong>\u6211\u4eec\u5df2\u7ecf\u901a\u8fc7 ReadyNow \u77e5\u9053\u9700\u8981\u54ea\u4e9b\u4f18\u5316\uff0c\u751a\u81f3\u53ef\u4ee5\u5728\u9996\u6b21\u8c03\u7528\u65b9\u6cd5\u524d\u5c31\u5f00\u59cb\u8fdb\u884c\u4f18\u5316\uff0c\u800c\u4e0d\u662f\u7b49\u5230\u5b83\u4eec\u8fbe\u5230\u7f16\u8bd1\u9608\u503c\u540e\u518d\u8fdb\u884c\u3002<\/li>\n\n\n\n<li>\u4f7f\u7528 -XX:CompilerWarmupPeriodSeconds \u6807\u8bb0\uff0c<strong>\u8bbe\u5b9a<\/strong><strong> 1 <\/strong><strong>\u5206\u949f\u7684\u9884\u70ed\u65f6\u95f4<\/strong>\u3002\u7136\u540e\u6211\u4eec\u53ef\u4ee5\u5229\u7528 <code>-XX:CompilerTier2BudgetingWarmupCPUPercent=100<\/code> \u7ed9\u7f16\u8bd1\u5668\u66f4\u591a\u8d44\u6e90\uff0c\u8ba9\u5b83\u5728\u9884\u70ed\u65f6\u95f4\u5185\u505a\u66f4\u591a\u5de5\u4f5c\u3002\u56e0\u6b64\uff0c\u5728\u8fd0\u884c\u72b6\u51b5\u68c0\u67e5\u542f\u52a8\u4e4b\u524d\uff0c\u6211\u4eec\u4f1a\u6295\u5165\u6700\u591a\u8d44\u6e90\u6765\u89e3\u51b3\u7f16\u8bd1\u5de5\u4f5c\u8d1f\u8f7d\u95ee\u9898\u3002<\/li>\n\n\n\n<li><strong>\u9650\u5236<\/strong><strong> JVM <\/strong><strong>\u5728\u9884\u70ed\u65f6\u95f4\u540e\u53ef\u7528\u4e8e\u7f16\u8bd1\u7684<\/strong><strong> CPU <\/strong><strong>\u7528\u91cf\u3002<\/strong>\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7 <code>-XX:CIMaxCompilerThreads<\/code> \u4f7f\u7528\u7ebf\u7a0b\u8ba1\u6570\u8fdb\u884c\u9759\u6001\u9650\u5236\uff0c\u6216\u4f7f\u7528 <code>-XX:CompilerTier2BudgetingCPUPercent<\/code> \u6807\u8bb0\u6309\u53ef\u7528 CPU \u7684\u767e\u5206\u6bd4\u8fdb\u884c\u52a8\u6001\u9650\u5236\u3002<\/li>\n\n\n\n<li><strong>\u901a\u8fc7\u7b5b\u9009\u51fa\u82b1\u4e86\u592a\u957f\u65f6\u95f4\uff08\u4f8b\u5982\u8d85\u8fc7<\/strong><strong> 1 <\/strong><strong>\u5206\u949f\uff09\u624d\u8fbe\u5230\u7f16\u8bd1\u9608\u503c\u7684\u65b9\u6cd5\uff0c\u8fdb\u4e00\u6b65\u51cf\u5c11\u7f16\u8bd1\u6570\u91cf\uff0c<\/strong>\u5982\u6b64\u7b5b\u9009\u51fa\u7684\u65b9\u6cd5\u610f\u5473\u7740\u5b83\u4eec\u4e0d\u662f\u201c\u771f\u6b63\u70ed\u95e8\u7684\u201d\u65b9\u6cd5\u3002\u4e3a\u6b64\uff0c\u6211\u4eec\u8981\u4f7f\u7528 <code>-XX:TopTierCompileThresholdTriggerMillis<\/code> \u6807\u8bb0\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9010\u4e00\u8be6\u7ec6\u4e86\u89e3\u8fd9\u4e9b\u65b9\u9762\uff0c\u67e5\u770b\u6bcf\u4e00\u6b65\u7684\u6548\u679c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-\u7b2c-2-\u6b65-\u4f7f\u7528-readynow-\u5c3d\u5feb\u7f16\u8bd1\">\u7b2c 2 \u6b65\uff1a\u4f7f\u7528 ReadyNow \u5c3d\u5feb\u7f16\u8bd1<\/h2>\n\n\n\n<p>JVM \u542f\u52a8\u540e\uff0c\u4fbf\u8981\u5c3d\u5feb\u5f00\u59cb\u7f16\u8bd1\u3002\u6211\u4eec\u7684\u6700\u7ec8\u76ee\u6807\u662f\u5728\u81ea\u52a8\u6269\u7f29\u7a0b\u5e8f\u5f00\u59cb\u76d1\u63a7\u4e4b\u524d\u5c3d\u53ef\u80fd\u591a\u5730\u7f16\u8bd1\uff0c\u6700\u597d\u662f\u5168\u90e8\u7f16\u8bd1\u5b8c\u6bd5\u3002\u4e3a\u6b64\uff0c\u5f00\u59cb\u65f6\u6211\u4eec\u8981\u5229\u7528 ReadyNow\uff0c\u5b83\u53ef\u4ee5\u5b9e\u73b0\u4ee5\u4e0b\u4e24\u70b9\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u51cf\u5c11\u7f16\u8bd1\u603b\u91cf\uff0c\u56e0\u4e3a JVM \u5df2\u7ecf\u4ece\u4e0a\u4e00\u6b21\u8fd0\u884c\u4e2d\u77e5\u9053\u54ea\u4e9b\u63a8\u6d4b\u662f\u9519\u8bef\u7684\uff0c\u56e0\u6b64\u5728\u540e\u7eed\u8fd0\u884c\u4e2d\u53ef\u4ee5\u5b8c\u5168\u8df3\u8fc7\u3002<\/li>\n\n\n\n<li>\u5728\u65b9\u6cd5\u88ab\u8c03\u7528\u4e4b\u524d\u5c31\u5f00\u59cb\u7f16\u8bd1\u3002\u901a\u8fc7\u63d0\u524d\u542f\u52a8\u7f16\u8bd1\uff0cJVM \u5c31\u53ef\u4ee5\u63d0\u524d\u5b8c\u6210\u7f16\u8bd1\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u6211\u4eec\u6765\u770b\u770b ReadyNow \u7684\u5b9e\u9645\u6548\u679c\u3002<\/p>\n\n\n\n<p><strong>\u4f7f\u7528\u7684<\/strong><strong> JVM <\/strong><strong>\u6807\u8bb0<\/strong><\/p>\n\n\n\n<p><code>-XX:ProfileLogIn=&lt;path to ReadyNow profile><\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"472\" src=\"https:\/\/azul.imgix.net\/wp-content\/uploads\/cpu-utilization-blog-step2-line-1024x472.png?auto=format&crop=faces,entropy&fit=max&q=80&s=688056240f2730bd4f347e92d25b5dbf\" alt=\"\" class=\"wp-image-68724\"\/><\/figure>\n\n\n\n<p>\u5e94\u7528 ReadyNow \u540e\uff0c\u6211\u4eec\u53d1\u73b0\u4e24\u70b9\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u9884\u70ed\u65f6\u95f4\u7f29\u77ed\u4e86\u5927\u7ea6<\/strong><strong> 10 <\/strong><strong>\u79d2\u3002<\/strong>\u8fd9\u4e3b\u8981\u662f\u56e0\u4e3a\u8fd0\u884c\u5f00\u59cb\u65f6\u7684\u6d3b\u52a8\u91cf\u53d8\u4e3a\u4e24\u500d\uff0c\u56e0\u6b64\u6211\u4eec\u5f97\u4ee5\u63d0\u524d\u5b8c\u6210\u4e00\u4e9b\u5de5\u4f5c\u3002\u5f53\u5f00\u542f <a href=\"https:\/\/www.azul.com\/products\/components\/readynow\/\">Azul \u7684 ReadyNow Java \u9884\u70ed\u529f\u80fd\u65f6<\/a>\uff0cAzul Platform Prime \u4f1a\u9ed8\u8ba4\u5728\u7f16\u8bd1\u7684\u524d\u4e3b\u8981\u9636\u6bb5\u589e\u52a0\u4e24\u4e2a\u7ebf\u7a0b\uff0c\u60a8\u53ef\u4ee5\u770b\u5230\u6b63\u597d\u53c8\u6709\u4e24\u4e2a\u6838\u5fc3\u88ab\u4f7f\u7528\u3002\u518d\u6e05\u695a\u8bf4\u660e\u4e00\u70b9\u3002\u5728\u8fd9\u4e00\u7279\u5b9a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u5b9e\u9645\u4e0a\u65e0\u6cd5\u770b\u5230 ReadyNow \u63d0\u524d\u542f\u52a8\u7f16\u8bd1\u7684\u771f\u6b63\u4f18\u52bf\uff0c\u56e0\u4e3a\u8fd9\u662f\u4e00\u4e2a\u53cd\u590d\u505a\u4e00\u4ef6\u4e8b\u7684\u5408\u6210\u57fa\u51c6\uff0c\u800c\u4e0d\u662f\u6709\u4e0d\u540c\u6267\u884c\u9636\u6bb5\u7684\u771f\u5b9e\u5e94\u7528\u7a0b\u5e8f\u3002\u771f\u6b63\u7684\u4f18\u52bf\u6765\u81ea\u6dfb\u52a0\u8d44\u6e90\uff08\u53ef\u901a\u8fc7 <code>-XX:ProfilePreMainTier2ExtraCompilerThreads<\/code> \u8fdb\u4e00\u6b65\u8c03\u6574\uff09\u540e\u7684\u9ed8\u8ba4\u884c\u4e3a\u3002\u4f46\u901a\u5e38\u6765\u8bf4\uff0c\u4f7f\u7528 ReadyNow \u5bf9\u4e8e\u83b7\u5f97\u6700\u4f73\u884c\u4e3a\u81f3\u5173\u91cd\u8981\u3002<\/li>\n\n\n\n<li><strong>\u9884\u70ed\u540e\u6d3b\u52a8\u660e\u663e\u51cf\u5c11\u3002<\/strong>\u53e6\u4e00\u65b9\u9762\uff0c\u5728\u8fd9\u91cc\u6211\u4eec\u770b\u5230 ReadyNow \u5df2\u5168\u529b\u53d1\u6325\u4f5c\u7528\u3002\u800c\u9884\u70ed\u540e\u6d3b\u52a8\u51cf\u5c11\u662f\u56e0\u4e3a\u6ca1\u6709\u6267\u884c\u4ece\u5148\u524d\u8fd0\u884c\u4e2d\u5df2\u77e5\u4e0d\u9700\u8981\u7684\u7f16\u8bd1\u6d3b\u52a8\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u4ee5\u6b64\u4f5c\u4e3a\u68c0\u67e5\u70b9\uff0c\u6211\u4eec\u5f97\u4ee5\u7a0d\u5fae\u7f29\u77ed\u9884\u70ed\u65f6\u95f4\uff0c\u5e76\u83b7\u5f97\u660e\u663e\u6709\u6539\u5584\u7684\u9884\u70ed\u540e\u884c\u4e3a\u3002\u4f46\u662f\uff0c\u6211\u4eec\u79bb 1 \u5206\u949f\u7684\u76ee\u6807\u8fd8\u5f88\u8fdc\u3002\u6211\u4eec\u8fd8\u80fd\u505a\u5f97\u66f4\u597d\u5417\uff1f<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-\u7b2c-3-4-\u6b65-\u8c03\u6574\u9884\u70ed\u671f\u95f4\u548c\u9884\u70ed\u540e\u7684\u53ef\u7528-cpu\">\u7b2c 3-4 \u6b65\uff1a\u8c03\u6574\u9884\u70ed\u671f\u95f4\u548c\u9884\u70ed\u540e\u7684\u53ef\u7528 CPU<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-\u6307\u5b9a\u9884\u70ed\u65f6\u95f4\">\u6307\u5b9a\u9884\u70ed\u65f6\u95f4<\/h3>\n\n\n\n<p>\u6307\u5b9a\u9884\u70ed\u65f6\u95f4\u5b9e\u8d28\u4e0a\u662f\u4e3a\u4e86\u544a\u8bc9 JVM\uff0c\u4ece JVM \u542f\u52a8\u5f00\u59cb\uff0c\u6709\u4e00\u6bb5\u65f6\u95f4\u95f4\u9694\u5b83\u9700\u8981\u7279\u522b\u5904\u7406\u3002\u6240\u8c13\u7279\u522b\u5904\u7406\uff0c\u662f\u6307\u80fd\u591f\u4e3a JIT \u7f16\u8bd1\u5668\u8bbe\u7f6e\u53e6\u4e00\u4e2a CPU \u9650\u5236\uff08\u4ec5\u4e3e\u4e00\u4f8b\uff09\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u9884\u70ed\u65f6\u95f4\u8bbe\u7f6e\u4e3a\u5230\u81ea\u52a8\u6269\u7f29\u7a0b\u5e8f\u5f00\u542f CPU \u76d1\u63a7\u65f6\u4e3a\u6b62\u3002\u5728\u90a3\u4e4b\u524d\uff0c\u6211\u4eec\u4f1a\u5c3d\u91cf\u4f7f\u7528\u66f4\u591a CPU \u6765\u7f16\u8bd1\u66f4\u591a\u65b9\u6cd5\u3002\u4f46\u662f\uff0c\u5f53\u9884\u70ed\u65f6\u95f4\u7ed3\u675f\uff0c\u6211\u4eec\u4f1a\u9650\u5236\u53ef\u7528 CPU \u7684\u6570\u91cf\uff0c\u4ee5\u63a7\u5236\u5f00\u9500\u5e76\u7ef4\u6301\u5728\u6240\u9700\u7684 CPU \u9650\u5236\u8303\u56f4\u5185\u3002<\/p>\n\n\n\n<p>\u8981\u6307\u5b9a\u5728\u54ea\u4e00\u65f6\u95f4\u6bb5\u9700\u5c06\u989d\u5916 CPU \u80fd\u529b\u7528\u4e8e\u7f16\u8bd1\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u6807\u8bb0\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-XX:CompilerWarmupPeriodSeconds<\/strong>\uff1a\u8bbe\u5b9a Falcon \u7f16\u8bd1\u5668\u9884\u70ed\u65f6\u95f4\u7684\u957f\u5ea6\uff08\u79d2\uff09\u3002\u9ed8\u8ba4\u503c\u4e3a 0\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u6307\u5b9a\u9884\u70ed\u65f6\u95f4\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u6309\u7167\u4e0a\u6587\u6240\u8ff0\u8c03\u6574\u53ef\u7528\u8d44\u6e90\u4e86\u3002\u4e3a\u6b64\uff0c\u6211\u4eec\u4f7f\u7528\u6784\u5efa\u7684 CPU \u9884\u7b97\u529f\u80fd\uff0c\u8be5\u529f\u80fd\u53ef\u4ee5\u8ba9\u6211\u4eec\u975e\u5e38\u7cbe\u7ec6\u5730\u9650\u5236 CPU \u8d44\u6e90\uff0c\u751a\u81f3\u80fd\u9650\u5236\u6838\u5fc3\/\u786c\u4ef6\u7ebf\u7a0b\u4e2d\u7684\u5404\u90e8\u5206\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-\u63a7\u5236-jit-\u7f16\u8bd1\u5668\u5360\u7528\u7684-cpu-\u8d44\u6e90\">\u63a7\u5236 JIT \u7f16\u8bd1\u5668\u5360\u7528\u7684 CPU \u8d44\u6e90<\/h3>\n\n\n\n<p>\u6307\u5b9a\u53ef\u7528 CPU \u8d44\u6e90\u7684\u6700\u5e38\u7528\u65b9\u6cd5\u662f\u4ee5\u53ef\u7528 CPU \u603b\u91cf\u7684\u767e\u5206\u6bd4\u4f5c\u4e3a\u57fa\u51c6\u3002\u6240\u8c13\u201c\u53ef\u7528 CPU\u201d\uff0c\u662f\u6307\u5728\u88f8\u673a\u4e0a\u8fd0\u884c\u65f6\u7684\u6838\u5fc3\u6570\u91cf\u3002\u5728\u6709\u5404\u79cd\u53ef\u80fd\u7684\u5bb9\u5668\u9650\u5236\u7684\u5bb9\u5668\u4e2d\uff0c\u76f8\u5173\u8ba1\u7b97\u7565\u4e3a\u590d\u6742\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u9009\u9879\u8bbe\u7f6e\u7f16\u8bd1\u5668\u7684 CPU \u9650\u5236\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-XX:+EnableTier2CompilerBudgeting<\/strong>\uff1a\u542f\u7528 CPU \u9884\u7b97\u529f\u80fd\u3002<\/li>\n\n\n\n<li><strong>-XX:CompilerTier2BudgetingCPUPercent<\/strong>\uff1a\u6307\u5b9a\u5728\u9884\u70ed\u540e\u9636\u6bb5\u53ef\u7528\u4e8e\u7f16\u8bd1\u7684 CPU \u7528\u91cf\uff08\u5360\u53ef\u7528 CPU \u603b\u91cf\u7684\u767e\u5206\u6bd4\uff09\u3002\u5f97\u51fa\u7684\u503c\u53ef\u5c0f\u4e8e\u4e00\u4e2a\u6838\u5fc3\u6216\u4e3a\u6838\u5fc3\u7684\u4efb\u4f55\u5176\u4ed6\u975e\u6574\u6570\u3002\u7136\u540e\uff0cFalcon \u7f16\u8bd1\u5668\u5c31\u4f1a\u53d7\u5230\u9650\u5236\uff0c\u4f7f\u5176\u6d88\u8017\u7684\u8d44\u6e90\u4e0d\u8d85\u8fc7\u6b64\u5904\u6307\u5b9a\u7684\u767e\u5206\u6bd4\u3002<\/li>\n\n\n\n<li><strong>-XX:CompilerTier2BudgetingWarmupCPUPercent<\/strong>\uff1a\u4e0e\u4e0a\u8ff0\u9009\u9879\u7c7b\u4f3c\uff0c\u6307\u5b9a\u9884\u70ed\u671f\u95f4\u53ef\u7528\u4e8e Falcon \u7f16\u8bd1\u7684 CPU \u7528\u91cf\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4e3e\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff1a\u5728\u4e00\u53f0\u6709 8 \u4e2a\u6838\u5fc3\u7684\u8ba1\u7b97\u673a\u4e0a\uff0c\u5982\u679c\u7f16\u8bd1\u5668\u7684 CPU \u9884\u7b97\u4e3a 40%\uff0c\u90a3\u4e48\u7cfb\u7edf\u5c06\u4e3a Falcon \u7f16\u8bd1\u5668\u5206\u914d 3.2 \u4e2a\u6838\u5fc3\u3002&nbsp;<\/p>\n\n\n\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u770b\u770b\u8fd9\u4e9b\u6807\u8bb0\u7684\u4f5c\u7528\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-\u5728\u9884\u70ed\u671f\u95f4\u6dfb\u52a0\u8d44\u6e90\">\u5728\u9884\u70ed\u671f\u95f4\u6dfb\u52a0\u8d44\u6e90<\/h3>\n\n\n\n<p>\u9996\u5148\uff0c\u6211\u4eec\u5728\u9884\u70ed\u671f\u95f4\u4e3a\u7f16\u8bd1\u5668\u6dfb\u52a0\u66f4\u591a CPU\u3002\u6211\u4eec\u5c06\u9884\u70ed\u65f6\u95f4\u8bbe\u7f6e\u4e3a 2 \u5206\u949f\uff08\u4e0d\u662f 1 \u5206\u949f\uff0c\u7a0d\u540e\u4f1a\u89e3\u91ca\uff09\uff0c\u5e76\u5141\u8bb8\u7f16\u8bd1\u5668\u4f7f\u7528\u6240\u6709\u53ef\u7528 CPU\u3002<\/p>\n\n\n\n<p><strong>JVM <\/strong><strong>\u6807\u8bb0<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><code>-XX:+EnableTier2CompilerBudgeting<\/code><br><code>-XX:CompilerWarmupPeriodSeconds=120<\/code>&nbsp;<br><code>-XX:CompilerTier2BudgetingWarmupCPUPercent=100<\/code>&nbsp;<br><code>-XX:ProfileLogIn=&lt;path to ReadyNow profile&gt;<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"472\" src=\"https:\/\/azul.imgix.net\/wp-content\/uploads\/cpu-utilization-blog-step3-line-1-1024x472.png?auto=format&crop=faces,entropy&fit=max&q=80&s=781370a9a638ecd518ce7efc5a3cc009\" alt=\"\" class=\"wp-image-68736\"\/><\/figure>\n\n\n\n<p>\u501f\u52a9 <code>-XX:CompilerTier2BudgetingWarmupCPUPercent=100<\/code>\uff0cFalcon \u7f16\u8bd1\u5668\u5728\u9884\u70ed\u671f\u95f4\u4f1a\u4f7f\u7528\u6240\u6709\u53ef\u7528 CPU\u3002\u4e0e\u6b64\u5f62\u6210\u9c9c\u660e\u5bf9\u6bd4\u7684\u662f\uff0c\u5728\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u542f\u53d1\u5f0f\u65b9\u6cd5\u4e0d\u4f1a\u4e3a Falcon \u7f16\u8bd1\u5668\u5206\u914d\u5982\u6b64\u591a\u7684 CPU \u8d44\u6e90\u3002<\/p>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u9884\u70ed\u65f6\u95f4\u4ece\u5927\u7ea6 140 \u79d2\u5927\u5e45\u7f29\u77ed\u5230\u5927\u7ea6 90 \u79d2\u3002\u7531\u4e8e\u6211\u4eec\u5728\u5f00\u59cb\u8fd0\u884c\u65f6\u5141\u8bb8\u7f16\u8bd1\u5668\u4f7f\u7528\u66f4\u591a\u8d44\u6e90\uff0c\u56e0\u6b64\u5b83\u80fd\u591f\u66f4\u5feb\u5b8c\u6210\u5de5\u4f5c\u3002\u5982\u679c\u5c06\u81ea\u52a8\u6269\u7f29\u7a0b\u5e8f\u914d\u7f6e\u4e3a\u5728 100 \u79d2\u540e\u5c31\u5f00\u59cb\u76d1\u63a7\uff0c\u6211\u4eec\u7684\u63a2\u7d22\u4e4b\u65c5\u53ef\u80fd\u5c31\u5230\u6b64\u7ed3\u675f\u4e86\u3002\u4f46\u4e8b\u5b9e\u5e76\u975e\u5982\u6b64\u3002<\/p>\n\n\n\n<p><em>\u6ce8\uff1a\u4e0b\u9762\u89e3\u91ca\u4e4b\u524d\u4e3a\u4f55\u5c06\u9884\u70ed\u65f6\u95f4\u8bbe\u4e3a<\/em><em> 2 <\/em><em>\u5206\u949f\u3002\u6211\u4eec\u77e5\u9053\u5982\u679c\u589e\u52a0\u8d44\u6e90\uff0c\u7f16\u8bd1\u5668\u5c31\u80fd\u5728\u8fd9\u6bb5\u65f6\u95f4\u5185\u5b8c\u6210\u6240\u6709\u5de5\u4f5c\u3002\u90a3\u65f6\u6211\u53ea\u662f\u60f3\u5c55\u793a\u589e\u52a0\u8d44\u6e90\u7684\u6548\u679c\uff0c\u800c\u4e14\u8fd9\u53ef\u80fd\u8fd8\u4e0d\u591f\uff0c\u6240\u4ee5\u6211\u9009\u62e9\u4e86\u4e00\u4e2a\u8db3\u591f\u957f\u7684\u65f6\u95f4\u95f4\u9694\u6765\u5b8c\u6210\u6240\u6709\u5de5\u4f5c\u3002<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-\u9650\u5236\u9884\u70ed\u540e\u7684\u8d44\u6e90\">\u9650\u5236\u9884\u70ed\u540e\u7684\u8d44\u6e90<\/h3>\n\n\n\n<p>\u9274\u4e8e\u4e00\u5f00\u59cb\u7684\u76ee\u6807\u662f\u5728 60 \u79d2\u540e\u63a7\u5236\u7f16\u8bd1\u5668\u7684 CPU \u5229\u7528\u7387\uff0c\u4ece\u4e0a\u4e00\u4e2a\u56fe\u4e2d\u6211\u4eec\u4ecd\u7136\u53ef\u4ee5\u770b\u5230\uff0c\u6709\u5f88\u591a\u6d3b\u52a8\u4f1a\u5bfc\u81f4\u81ea\u52a8\u6269\u7f29\u7a0b\u5e8f\u8fc7\u591a\u6dfb\u52a0\u8ba1\u7b97\u673a\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u4e5f\u8981\u8c03\u6574\u9884\u70ed\u540e\u7684 CPU \u5229\u7528\u7387\u3002&nbsp;<\/p>\n\n\n\n<p><strong>JVM <\/strong><strong>\u6807\u8bb0<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><code>-XX:+EnableTier2CompilerBudgeting<\/code><br><code>-XX:CompilerTier2BudgetingCPUPercent=33<\/code>&nbsp;<br><code>-XX:CompilerWarmupPeriodSeconds=60<\/code>&nbsp;<br><code>-XX:CompilerTier2BudgetingWarmupCPUPercent=100<\/code>&nbsp;<br><code>-XX:ProfileLogIn=&lt;path to ReadyNow profile&gt;<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"472\" src=\"https:\/\/azul.imgix.net\/wp-content\/uploads\/cpu-utilization-blog-step4-line-1024x472.png?auto=format&crop=faces,entropy&fit=max&q=80&s=770bb38dd208b563e429675c6d95a078\" alt=\"\" class=\"wp-image-68742\"\/><\/figure>\n\n\n\n<p>\u9884\u70ed\u65f6\u95f4\u8fc7\u540e\uff0c\u7f16\u8bd1\u5668\u7684\u53ef\u7528 CPU \u4f1a\u53d7\u5230 <code>-XX:CompilerTier2BudgetingCPUPercent=33<\/code> \u7684\u9650\u5236\uff0c\u8fd9\u4f7f\u5f97 CPU \u5229\u7528\u7387\u5728 60 \u79d2\u6307\u6807\u540e\u5927\u5927\u964d\u4f4e\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-\u6269\u5c55\u8fd8\u662f\u4e0d\u6269\u5c55-\u8fd9\u662f\u4e00\u4e2a\u95ee\u9898\">\u6269\u5c55\u8fd8\u662f\u4e0d\u6269\u5c55\uff0c\u8fd9\u662f\u4e00\u4e2a\u95ee\u9898<\/h3>\n\n\n\n<p>\u73b0\u5728\u975e\u5e38\u9002\u5408\u63d0\u9192\u4e00\u4e0b\u81ea\u5df1\uff0c\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u5e73\u8861\u7684\u884c\u4e3a\u3002\u7b2c 3 \u6b65\u548c\u7b2c 4 \u6b65\u4e4b\u95f4\u7684\u7f16\u8bd1\u91cf\u662f\u76f8\u540c\u7684\uff0c\u53ea\u662f\u5206\u6563\u5728\u4e0d\u540c\u7684\u65f6\u95f4\u6bb5\u3002\u60a8\u53ef\u80fd\u4f1a\u8bf4\uff0c\u5728\u81ea\u52a8\u6269\u7f29\u7a0b\u5e8f\u5f00\u59cb\u76d1\u63a7\u540e\u7684\u4e00\u6bb5\u65f6\u95f4\u5185\uff0c\u8f83\u665a\u5b8c\u6210\u7f16\u8bd1\u5b9e\u9645\u4f1a\u5bfc\u81f4\u6027\u80fd\u964d\u4f4e\uff08\u4e0e\u6700\u7ec8\u8fbe\u5230\u7684\u6700\u4f73\u6027\u80fd\u76f8\u6bd4\uff09\u3002\u60a8\u7684\u60f3\u6cd5\u662f\u5bf9\u7684\uff01\u4e0d\u8fc7\uff0c\u95ee\u9898\u662f\u8fd9\u79cd\u5f71\u54cd\u6709\u591a\u5927\uff0c\u5e76\u4e14\u662f\u5426\u503c\u5f97\u3002\u4e0b\u9762\u6211\u6765\u8be6\u7ec6\u8bf4\u660e\u3002<\/p>\n\n\n\n<p>\u6839\u636e\u4e0a\u56fe\uff0c\u81ea\u52a8\u6269\u7f29\u7a0b\u5e8f\u5f00\u59cb\u76d1\u63a7\u65f6\uff0c\u6838\u5fc3\u5229\u7528\u60c5\u51b5\u4fdd\u6301\u5728 60 \u79d2\u6307\u6807\u7684\u8303\u56f4\u5185\u3002\u8003\u8651\u4e00\u4e0b\u8fd9\u79cd\u60c5\u51b5\uff1aJIT \u7f16\u8bd1\u5668\u4f7f\u7528\u4e24\u4e2a\u4ee5\u4e0a\u6838\u5fc3\u65f6\u4f1a\u5bfc\u81f4 CPU \u603b\u5229\u7528\u7387\u8d85\u8fc7\u9608\u503c\uff0c\u8fdb\u800c\u8ba9\u81ea\u52a8\u6269\u7f29\u7a0b\u5e8f\u503e\u5411\u4e8e\u6a2a\u5411\u6269\u5c55\u3002\u5bf9\u4e8e\u7b2c 3 \u6b65\u7684\u884c\u4e3a\uff0c\u81ea\u52a8\u6269\u7f29\u7a0b\u5e8f\u4f1a\u5728 60 \u79d2\u540e\u7acb\u5373\u5f00\u59cb\u5927\u5e45\u81ea\u52a8\u6269\u5c55\uff0c\u4e4b\u540e\u53ef\u80fd\u4f1a\u7f29\u5c0f\u89c4\u6a21\u3002\u5bf9\u4e8e\u7b2c 4 \u6b65\u914d\u7f6e\uff0c\u81ea\u52a8\u6269\u7f29\u7a0b\u5e8f\u5b8c\u5168\u4e0d\u4f1a\u6a2a\u5411\u6269\u5c55\uff0c\u800c\u662f\u7ee7\u7eed\u4ee5\u8f83\u4f4e\u6027\u80fd\uff08\u4e0e\u6700\u4f73\u6027\u80fd\u76f8\u6bd4\uff09\u8fd0\u884c\u4e00\u6bb5\u65f6\u95f4\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u8ba4\u4e3a\uff0c\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u907f\u514d\u81ea\u52a8\u6269\u7f29\u5b9e\u9645\u662f\u6709\u76ca\u7684\uff0c\u539f\u56e0\u6709\u4e24\u4e2a\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u8981\u77e5\u9053\uff0c\u81ea\u52a8\u6269\u7f29\u901a\u5e38\u4f1a\u5bf9\u6027\u80fd\u9020\u6210\u4e0d\u5c0f\u7684\u5f71\u54cd\uff0c\u4f8b\u5982\uff0c\u7531\u4e8e\u91cd\u65b0\u5e73\u8861\u6570\u636e\u3001\u5efa\u7acb\u8fde\u63a5\u7b49\uff0c\u66f4\u4e0d\u7528\u8bf4\u8fd8\u4f1a\u5bfc\u81f4\u57fa\u7840\u8bbe\u65bd\u6210\u672c\u589e\u52a0\u4e86\u3002<\/li>\n\n\n\n<li>\u5728\u4e00\u6bb5\u65f6\u95f4\u5185\uff0c\u8f83\u4f4e\u7684\u6027\u80fd\u5b9e\u9645\u4e0a\u53ef\u80fd\u5df2\u201c\u8db3\u591f\u597d\u201d\uff0c\u800c\u4e14\u53ea\u4f1a\u8d8a\u6765\u8d8a\u597d\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5728 60 \u79d2\u5185\uff0c\u6211\u4eec\u5b8c\u6210\u4e86\u7ea6 75% \u7684\u7f16\u8bd1\u5de5\u4f5c\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u6709\u7406\u7531\u76f8\u4fe1\uff0c\u60a8\u6700\u7ec8\u4f1a\u8fbe\u5230\u201c\u8db3\u4ee5\u542f\u52a8\u7684\u826f\u597d\u201d\u6027\u80fd\u3002\u9700\u8981\u660e\u786e\u7684\u662f\uff0c\u5b8c\u6210 75% \u7684\u7f16\u8bd1\u5e76\u4e0d\u610f\u5473\u7740\u8fbe\u5230\u6700\u4f73\u6027\u80fd\u7684 75%\uff0c\u800c\u8fd9\u5176\u5b9e\u662f\u53e6\u4e00\u4e2a\u8bdd\u9898\u4e86\u3002<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"472\" src=\"https:\/\/azul.imgix.net\/wp-content\/uploads\/cpu-utilization-blog-step4-compilations-done-line-1024x472.png?auto=format&crop=faces,entropy&fit=max&q=80&s=baeb155603e202aa6e186c42172dfde7\" alt=\"\" class=\"wp-image-68748\"\/><\/figure>\n\n\n\n<p>\u8fd9\u4e9b\u65b9\u9762\u9700\u8981\u9488\u5bf9\u5177\u4f53\u5e94\u7528\u8fdb\u884c\u6d4b\u8bd5\u548c\u8bc4\u4f30\u3002\u4e0d\u8fc7\uff0c\u6b64\u5904\u7684\u4e00\u5927\u8981\u70b9\u662f\uff0c\u4e0e\u5176\u4ed6\u4efb\u4f55 JVM \u4e0d\u540c\uff0cAzul Platform Prime \u80fd\u63d0\u4f9b\u591a\u4e2a\u5de5\u5177\u4f9b\u60a8\u9009\u62e9\u3002\u6839\u636e\u6211\u4eec\u7684\u7ecf\u9a8c\uff0c\u5728\u4f7f\u7528\u5f97\u5f53\u7684\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u4ee5\u5b9e\u73b0\u597d\u5f97\u591a\u7684\u884c\u4e3a\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u8282\u7ea6\u8d44\u91d1\uff0c\u8fd8\u53ef\u4ee5\u51cf\u5c11\u81ea\u52a8\u6269\u7f29\u5e26\u6765\u7684\u4e0d\u5fc5\u8981\u5f71\u54cd\uff08\u4f8b\u5982\uff0c\u7531\u4e8e\u8fdd\u53cd SLA \u800c\u5bfc\u81f4\u7684\u9519\u8bef\uff09\u3002<br>\u4e3a\u4e86\u9526\u4e0a\u6dfb\u82b1\uff0c\u6211\u4eec\u6765\u8bd5\u7740\u518d\u7a0d\u5fae\u4f18\u5316\u4e0b\u7f16\u8bd1\u6d3b\u52a8\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-\u7b2c-5-\u6b65-\u8fdb\u4e00\u6b65\u964d\u4f4e\u7f16\u8bd1\u91cf\">\u7b2c 5 \u6b65\uff1a\u8fdb\u4e00\u6b65\u964d\u4f4e\u7f16\u8bd1\u91cf<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-\u7f16\u8bd1\u9608\u503c\u7b80\u4ecb\">\u7f16\u8bd1\u9608\u503c\u7b80\u4ecb<\/h3>\n\n\n\n<p>JVM \u4f1a\u76d1\u63a7\u6bcf\u4e2a\u65b9\u6cd5\uff0c\u5e76\u5f00\u59cb\u6784\u5efa\u4e00\u4e2a\u5305\u542b\u65b9\u6cd5\u88ab\u8c03\u7528\u7684\u6b21\u6570\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u7f16\u8bd1\u9608\u503c\u89c4\u5b9a\u4e86\u4e00\u4e2a\u65b9\u6cd5\u5fc5\u987b\u88ab\u8c03\u7528\u591a\u5c11\u6b21\u540e\u624d\u4f1a\u88ab\u6dfb\u52a0\u5230 Falcon \u7f16\u8bd1\u961f\u5217\u3002\u8fd9\u662f\u7f16\u8bd1\u5668\u4f18\u5316\u7406\u8bba\u4e2d\u7684\u4e00\u4e2a\u91cd\u8981\u56e0\u7d20\uff0c\u56e0\u4e3a\u4e0d\u5e38\u7528\u7684\u65b9\u6cd5\u4e0d\u9700\u8981\u4f18\u5316\u3002\u6211\u4eec\u53ef\u4ee5\u53ea\u5173\u6ce8\u7ecf\u5e38\u88ab\u8c03\u7528\u7684\u65b9\u6cd5\uff0c\u4ece\u800c\u8282\u7ea6\u8d44\u6e90\u3002\u6211\u4eec\u4f7f\u7528 <code>-XX:FalconCompileThreshold<\/code> \u6765\u8bbe\u5b9a\u7f16\u8bd1\u9608\u503c\u3002\u7f16\u8bd1\u9608\u503c\u89c4\u5b9a\u4e86\u4e00\u4e2a\u65b9\u6cd5\uff08\u6216\u65b9\u6cd5\u4e2d\u7684\u5faa\u73af\uff09\u5fc5\u987b\u88ab\u8c03\u7528\u591a\u5c11\u6b21\u540e\u624d\u4f1a\u88ab\u6dfb\u52a0\u5230 Falcon \u7f16\u8bd1\u961f\u5217\uff08\u9ed8\u8ba4\u4e3a 1 \u4e07\u6b21\uff09\u3002\u4e0d\u8fc7\uff0c\u76f4\u63a5\u8c03\u6574\u8be5\u9608\u503c\u5c5e\u4e8e\u975e\u5e38\u9ad8\u7ea7\u7684\u8c03\u6574\uff0c\u4e00\u822c\u4e0d\u5efa\u8bae\u4f7f\u7528\u3002\u6211\u4eec\u6765\u770b\u770b\u53e6\u4e00\u79cd\u65b9\u6cd5\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-\u4ec5\u7f16\u8bd1\u5e38\u7528\u70ed\u95e8\u65b9\u6cd5\">\u4ec5\u7f16\u8bd1\u5e38\u7528\u70ed\u95e8\u65b9\u6cd5<\/h3>\n\n\n\n<p>\u867d\u7136\u7f16\u8bd1\u6240\u6709\u8fbe\u5230\u7f16\u8bd1\u9608\u503c\u7684\u65b9\u6cd5\uff08\u8fd9\u662f\u9ed8\u8ba4\u884c\u4e3a\uff09\u5bf9\u4ee3\u7801\u4f18\u5316\u5f88\u6709\u5e2e\u52a9\uff0c\u4f46\u4ecd\u7136\u4f1a\u5bf9\u7cfb\u7edf\u8d44\u6e90\u5e26\u6765\u4e0d\u5fc5\u8981\u7684\u8d1f\u62c5\u3002\u8bd5\u60f3\u67d0\u4e2a\u65b9\u6cd5\u5728 JVM \u7684\u751f\u547d\u5468\u671f\u4e2d\u4e00\u76f4\u662f\u5076\u5c14\u88ab\u8c03\u7528\u4e00\u6b21\u3002\u7531\u4e8e\u8be5\u65b9\u6cd5\u88ab\u8c03\u7528\u7684\u9891\u7387\u4ecd\u7136\u8f83\u4f4e\uff0c\u6700\u7ec8\u4f1a\u8fbe\u5230\u9608\u503c\u5e76\u88ab\u5b89\u6392\u8fdb\u884c\u7f16\u8bd1\u3002\u4e0d\u8fc7\uff0c\u6211\u4eec\u53ef\u4ee5\u8ba4\u4e3a\uff0c\u7531\u4e8e\u8be5\u65b9\u6cd5\u53ea\u662f\u5076\u5c14\u88ab\u8c03\u7528\uff0c\u610f\u5373\u5b83\u5e76\u4e0d\u201c\u70ed\u95e8\u201d\uff0c\u56e0\u6b64\u53ef\u80fd\u4e0d\u4f1a\u5bf9\u5e94\u7528\u7a0b\u5e8f\u7684\u6574\u4f53\u6027\u80fd\u4ea7\u751f\u660e\u663e\u5f71\u54cd\u3002\u6240\u4ee5\uff0c\u6211\u4eec\u53ef\u4ee5\u8ba4\u4e3a\uff0c\u7528 Falcon \u7684\u5404\u79cd\u4f18\u5316\u65b9\u6cd5\u7f16\u8bd1\u8be5\u65b9\u6cd5\u7eaf\u7cb9\u662f\u6d6a\u8d39\u8d44\u6e90\u3002<\/p>\n\n\n\n<p>\u6b63\u56e0\u5982\u6b64\uff0cAzul \u5728 Optimizer Hub \u548c Azul Platform Prime \u4e2d\u5e94\u7528\u4e86\u4e00\u4e2a\u9009\u9879\uff0c\u8ba9\u7f16\u8bd1\u5668\u4ec5\u5728\u67d0\u65b9\u6cd5\u5728\u6307\u5b9a\u65f6\u95f4\u5185\u8fbe\u5230\u7f16\u8bd1\u9608\u503c\u65f6\uff0c\u624d\u5c06\u5176\u52a0\u5165\u7f16\u8bd1\u961f\u5217\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u53ea\u6709\u201c\u70ed\u95e8\u201d\u65b9\u6cd5\uff08\u5373\uff0c\u4ecd\u88ab\u7ecf\u5e38\u8c03\u7528\u7684\u65b9\u6cd5\uff09\u624d\u4f1a\u88ab\u5b89\u6392\u8fdb\u884c\u4f18\u5316\u3002\u8fbe\u5230\u7f16\u8bd1\u9608\u503c\u7684\u65f6\u95f4\u9650\u5236\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u884c\u53c2\u6570\u6307\u5b9a\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-XX:TopTierCompileThresholdTriggerMillis<\/strong>\uff1a\u5f53\u67d0\u65b9\u6cd5\u5728\u6307\u5b9a\u65f6\u95f4\u5185\u81f3\u5c11\u8fbe\u5230\u4e00\u6b21\u7f16\u8bd1\u9608\u503c\uff08\u7531 <code>FalconCompileThreshold<\/code> \u6307\u5b9a\uff09\u65f6\uff0c\u8ba9\u7f16\u8bd1\u5668\u5c06\u8be5\u65b9\u6cd5\u6dfb\u52a0\u5230 Falcon \u7f16\u8bd1\u5668\u961f\u5217\u3002\u65f6\u95f4\u503c\u4ee5\u6beb\u79d2\u4e3a\u5355\u4f4d\u3002\u4f8b\u5982\uff0c\u5c06 <code>TopTierCompileThresholdTriggerMillis<\/code> \u8bbe\u7f6e\u4e3a 60,000 \u65f6\uff0c\u53ea\u6709\u5f53\u8be5\u65b9\u6cd5\u5728\u8fc7\u53bb\u4e00\u5206\u949f\uff0860,000 \u6beb\u79d2\uff09\u5185\u88ab\u8c03\u7528 10,000 \u6b21\uff08\u9ed8\u8ba4\u7f16\u8bd1\u9608\u503c\uff09\u65f6\uff0c\u7f16\u8bd1\u5668\u624d\u4f1a\u5c06\u8be5\u65b9\u6cd5\u52a0\u5165 Falcon \u7f16\u8bd1\u5668\u961f\u5217\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>JVM <\/strong><strong>\u6807\u8bb0<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><code>-XX:TopTierCompileThresholdTriggerMillis=60000<\/code>&nbsp;<br><code>-XX:+EnableTier2CompilerBudgeting<\/code><br><code>-XX:CompilerTier2BudgetingCPUPercent=33<\/code>&nbsp;<br><code>-XX:CompilerWarmupPeriodSeconds=120<\/code>&nbsp;<br><code>-XX:CompilerTier2BudgetingWarmupCPUPercent=100<\/code>&nbsp;<br><code>-XX:ProfileLogIn=&lt;path to ReadyNow profile&gt;<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"472\" src=\"https:\/\/azul.imgix.net\/wp-content\/uploads\/cpu-utilization-blog-step5-line-1024x472.png?auto=format&crop=faces,entropy&fit=max&q=80&s=edbf90ef11cc4eb9934e4d6d5e24ecc1\" alt=\"\" class=\"wp-image-68754\"\/><\/figure>\n\n\n\n<p>\u8bbe\u7f6e <code>-XX:TopTierCompileThresholdTriggerMillis<\/code> \u7684\u6548\u679c\u5c24\u5176\u4f53\u73b0\u5728\u8fd0\u884c\u540e\u671f JIT \u7f16\u8bd1\u5668\u7684 CPU \u5229\u7528\u7387\u964d\u4f4e\u65f6\u3002\u5728\u4e0a\u56fe\u4e2d\uff0c\u6bd4\u8f83\u4e00\u4e0b\u5927\u6982 140 \u79d2\u540e\u5cf0\u503c\u51fa\u73b0\u7684\u6b21\u6570\u3002\u8fd9\u5f88\u53ef\u80fd\u662f\u56e0\u4e3a\u6240\u6709\u91cd\u8981\u7684\u65b9\u6cd5\u5728\u90a3\u65f6\u90fd\u5df2\u7f16\u8bd1\u5b8c\u6bd5\uff0c\u901a\u8fc7\u8fc7\u6ee4\u6389\u4e0d\u592a\u70ed\u95e8\u7684\u65b9\u6cd5\uff0c\u7f16\u8bd1\u5668\u7684\u5de5\u4f5c\u91cf\u51cf\u5c11\u4e86\u3002<\/p>\n\n\n\n<p>\u663e\u7136\uff0c\u4f7f\u7528\u8be5\u9009\u9879\u662f\u4e00\u79cd\u5fae\u8c03\u3002\u5982\u679c\u5c06\u8fd9\u4e00\u65f6\u95f4\u95f4\u9694\u8bbe\u7f6e\u5f97\u592a\u77ed\uff0c\u7f16\u8bd1\u5668\u53ef\u80fd\u4f1a\u653e\u5f03\u8fc7\u591a\u65b9\u6cd5\uff0c\u4ece\u800c\u5f71\u54cd\u6027\u80fd\u3002\u6839\u636e\u6211\u4eec\u7684\u7ecf\u9a8c\uff0c\u9488\u5bf9\u57fa\u4e8e Spring Boot \u7684\u5fae\u670d\u52a1\u7b49\u5b9e\u9645\u5e94\u7528\u7a0b\u5e8f\uff0c\u5728\u5f00\u59cb\u65f6\u8bbe\u7f6e 60 \u79d2\u7684\u65f6\u95f4\u9608\u503c\u662f\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-\u6700\u7ec8\u6bd4\u8f83\">\u6700\u7ec8\u6bd4\u8f83<\/h2>\n\n\n\n<p>\u4e3a\u603b\u7ed3\u672c\u6587\u5185\u5bb9\uff0c\u6211\u4eec\u518d\u770b\u770b\u524d\u540e\u5bf9\u6bd4\u56fe\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"472\" src=\"https:\/\/azul.imgix.net\/wp-content\/uploads\/before_after-1-1024x472.png?auto=format&crop=faces,entropy&fit=max&q=80&s=c39b34c739c6eccfbc2b323433cb0290\" alt=\"\" class=\"wp-image-68673\"\/><\/figure>\n\n\n\n<p>\u6211\u4eec\u53ef\u4ee5\u6e05\u695a\u770b\u5230\uff0c\u5728\u5e94\u7528\u4e86\u672c\u6587\u6982\u8ff0\u7684\u6240\u6709\u8c03\u4f18\u65b9\u6cd5\u540e\uff0c\u6211\u4eec\u5f97\u4ee5\u7cbe\u7ec6\u63a7\u5236\u7f16\u8bd1\u5668\u7684 CPU \u5229\u7528\u7387\uff0c\u5e76\u4f18\u5316 CPU \u8d1f\u8f7d\uff0c\u5b9e\u73b0\u5728 60 \u79d2\u540e\u964d\u4f4e CPU \u8d1f\u8f7d\u7684\u76ee\u6807\u3002\u5728\u5c3d\u91cf\u907f\u514d\u8fdb\u884c\u4e0d\u5fc5\u8981\u7684\u6269\u5c55\u7684\u540c\u65f6\uff0c\u6211\u4eec\u8fd8\u4f18\u5316\u4e86\u603b\u9884\u70ed\u65f6\u95f4\uff0c\u4ece\u800c\u66f4\u5feb\u83b7\u5f97\u6700\u4f73\u6027\u80fd\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-\u8bf7\u4eb2\u81ea\u5c1d\u8bd5-\u5e76\u968f\u65f6\u8054\u7cfb\u6211\u4eec\">\u8bf7\u4eb2\u81ea\u5c1d\u8bd5\uff0c\u5e76\u968f\u65f6\u8054\u7cfb\u6211\u4eec\uff01<\/h2>\n\n\n\n<p>Azul Platform Prime \u53ef\u514d\u8d39\u4e0b\u8f7d\u5e76\u5728\u975e\u751f\u4ea7\u73af\u5883\u4e2d\u8fdb\u884c\u6d4b\u8bd5\u3002\u6b22\u8fce\u8bd5\u7528\uff0c\u4e5f\u6b22\u8fce\u8054\u7cfb\u6211\u4eec\u3002Azul Platform Prime \u4e0d\u4ec5\u4ec5\u80fd\u7ba1\u7406 CPU \u6d3b\u52a8\uff08\u5982\u672c\u6587\u6240\u793a\uff09\uff0c\u8fd8\u80fd\u8ba9\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u5927\u5e45\u63d0\u5347\uff0c\u5b9e\u73b0\u9ad8\u541e\u5410\u91cf\u3001\u4f4e\u5ef6\u8fdf\uff0c\u5e76\u8ba9\u60a8\u80fd\u591f\u63a7\u5236\u57fa\u7840\u8bbe\u65bd\u7684\u6210\u672c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-\u9644\u5f55-a-\u901a\u8fc7\u7ebf\u7a0b\u8ba1\u6570\u63a7\u5236\u7f16\u8bd1\u5668\u5360\u7528\u7684-cpu-\u8d44\u6e90\">\u9644\u5f55 A\uff1a\u901a\u8fc7\u7ebf\u7a0b\u8ba1\u6570\u63a7\u5236\u7f16\u8bd1\u5668\u5360\u7528\u7684 CPU \u8d44\u6e90<\/h2>\n\n\n\n<p>JIT \u7f16\u8bd1\u5668\u5bf9 CPU \u8d44\u6e90\u7684\u63a7\u5236\u5386\u6765\u662f\u901a\u8fc7\u8c03\u6574\u7ebf\u7a0b\u8ba1\u6570\uff08\u4e0e\u672c\u6587\u5c55\u793a\u7684 CPU \u767e\u5206\u6bd4\u9650\u5236\u76f8\u6bd4\uff09\u6765\u5b9e\u73b0\uff0c\u56e0\u6b64\u4e3a\u6c42\u5168\u9762\uff0c\u5e94\u63d0\u5230\u8fd9\u4e9b\u9009\u9879\u3002\u4e0d\u8fc7\uff0c\u6211\u4eec\u9009\u62e9\u5217\u51fa\u8fd9\u4e9b\u9009\u9879\u4e0d\u4ec5\u4ec5\u662f\u4e3a\u4e86\u5168\u9762\u3002\u5728\u4e00\u79cd\u975e\u5e38\u7279\u6b8a\u7684\u7528\u4f8b\u4e2d\uff0c\u901a\u8fc7\u7ebf\u7a0b\u8ba1\u6570\u8c03\u6574 CPU \u8d44\u6e90\u6bd4\u4f7f\u7528 CPU \u9884\u7b97\u529f\u80fd\u66f4\u5408\u9002\u3002\u8be5\u7528\u4f8b\u5c31\u662f\u5f53 JVM \u5728\u5bb9\u5668\u4e2d\u8fd0\u884c\uff0c\u5e76\u8bbe\u7f6e\u4e86 CPU \u9650\u5236\u800c\u5bfc\u81f4 CPU \u8282\u6d41\u65f6\u3002\u8fd9\u4e2a\u8bdd\u9898\u672c\u8eab\u503c\u5f97\u7528\u4e00\u6574\u7bc7\u6587\u7ae0\u6765\u63a2\u8ba8\uff0c\u4f46\u5728\u672c\u6587\u4e2d\uff0c\u4e3a\u8282\u7701\u7bc7\u5e45\uff0c\u6211\u4eec\u7b80\u5355\u8bf4\u660e\u4e00\u4e0b\u3002<\/p>\n\n\n\n<p>CPU \u8282\u6d41\u9020\u6210\u7684\u5ef6\u8fdf\uff08\u5ef6\u8fdf\u5f02\u5e38\uff09\u901a\u5e38\u5927\u4e8e\u8c03\u5ea6\u5ef6\u8fdf\uff08\u7ebf\u7a0b\u4e89\u593a CPU \u65f6\u95f4\uff09\uff0c\u8fd9\u662f\u56e0\u4e3a\u8282\u6d41\u4f1a\u6682\u505c\u6240\u6709\u8fdb\u7a0b\u7684\u7ebf\u7a0b\uff0c\u800c\u8c03\u5ea6\u5ef6\u8fdf\u53ea\u4f1a\u6682\u505c\u4e00\u90e8\u5206\u7ebf\u7a0b\u3002\u603b\u4e4b\uff0c\u5982\u679c CPU \u51fa\u73b0\u4e25\u91cd\u8282\u6d41\uff0c\u60a8\u53ef\u4ee5\u8003\u8651\u901a\u8fc7\u7ebf\u7a0b\u8ba1\u6570\u6765\u8c03\u6574\u8d44\u6e90\u3002\u5982\u679c\u60a8\u5bf9\u8fd9\u4e2a\u8bdd\u9898\u611f\u5174\u8da3\uff0c\u8bf7\u544a\u8bc9\u6211\u4eec\uff0c\u6211\u4eec\u53ef\u4ee5\u6df1\u5165\u63a2\u8ba8\u3002<\/p>\n\n\n\n<p>\u7528\u4e8e\u63a7\u5236 Falcon JIT \u7f16\u8bd1\u5668\u7ebf\u7a0b\u8ba1\u6570\u7684\u9009\u9879\u5305\u62ec\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>-XX:CIMaxCompilerThreads<\/strong>\uff1a\u8bbe\u5b9a\u53ef\u4e13\u7528\u4e8e\u7f16\u8bd1\u5668\u7684 CPU \u7ebf\u7a0b\u6570\u3002\u8fd9\u5c06\u544a\u8bc9\u7f16\u8bd1\u5668\u6709\u591a\u5c11\u7ebf\u7a0b\uff08\u6700\u5927\u503c\uff09\u5e94\u8be5\u7528\u4e8e\u7f16\u8bd1\u3002\u9ed8\u8ba4\u503c\u53d6\u51b3\u4e8e CPU \u6570\u91cf\u3002<\/li>\n\n\n\n<li><strong>-XX:CompilerWarmupExtraThreads<\/strong>\uff1a\u5141\u8bb8 Falcon \u7f16\u8bd1\u5668\u5728\u9884\u70ed\u671f\u95f4\u8d85\u8fc7\u6700\u5927\u7ebf\u7a0b\u6570\u3002\u8be5\u9009\u9879\u53ef\u8bbe\u5b9a Falcon \u7f16\u8bd1\u5668\u5728\u9884\u70ed\u671f\u95f4\u5728 <code>CIMaxCompilerThreads<\/code> \u4e0a\u53ef\u4ee5\u4f7f\u7528\u7684\u989d\u5916\u7ebf\u7a0b\u6570\u3002\u9884\u70ed\u540e\uff0c\u5e94\u9650\u5236\u5728 <code>CIMaxCompilerThreads<\/code> \u7684\u503c\u5185\u3002\u9ed8\u8ba4\u503c\u4e3a 0\u3002<\/li>\n\n\n\n<li><strong>-XX:ProfilePreMainTier2ExtraCompilerThreads<\/strong>\uff1a\u8bbe\u5b9a Falcon \u7f16\u8bd1\u5668\u5728\u6267\u884c <code>main()<\/code> \u65b9\u6cd5\u4e4b\u524d\u5728 <code>CIMaxCompilerThreads<\/code> \u4e0a\u53ef\u4ee5\u4f7f\u7528\u7684\u989d\u5916\u7ebf\u7a0b\u6570\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u4eca\u7684 Java \u96c6\u7fa4\u5177\u6709\u73b0\u4ee3\u5316\u3001\u5bb9\u5668\u5316\u548c\u53ef\u5f39\u6027\u6269\u7f29\u7684\u7279\u70b9\uff0c\u901a\u5e38\u4e3b\u8981\u4f9d\u8d56 CPU \u5229\u7528\u7387\u6765\u6a2a\u5411\u6269\u5c55\u65b0\u5b9e\u4f8b\u3002\u5c3d\u7ba1 [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":68696,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[212,266],"tags":[85],"resource_categories":[],"industry":[],"product":[],"role":[],"resource_topic":[],"class_list":["post-69963","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-212","category-java-news-updates","tag-java-performance"],"acf":{"article_smart_summary":null,"article_sidebar_nav_items":null,"article_cta":null,"block_background_image":null,"block_background_image_sizing":null,"block_background_overflow":null,"block_background_color":null,"inline_link":null,"text_color":null,"block_margin_top":null,"block_padding_top":null,"block_padding_bottom":null,"block_margin_bottom":null,"link":null,"appearance":null,"color":null,"show_arrow":null,"style":null,"image":null,"background_color":null,"background_image":null,"overline":null,"overline_options":null,"headline":null,"headline_options":null,"description":null,"description_options":null,"cta":null,"text_align":null,"chart_type":null,"chart_options":null,"chart_labels":null,"chart_datasets":null,"countdown_date_time":null,"countdown_clock_color":null,"countdown_label_color":null,"size":null,"use_gradient_text":null,"start_color":null,"end_color":null,"name":null,"iconify":null,"logos":null,"form_headline":null,"form_number":null,"form_redirect_enabled":null,"redirect":null,"form_translation_disable":null,"zi_id":null,"zi_fields":null,"zi_lookup_field":null,"cookie_name":null,"cookie_redirect":null,"drift_playbook_campaign_id":null,"input":null,"button":null,"logo":null,"ctas":null,"alignment":null,"cta_alignment":null,"grid_layout":null,"show_featured_images":null,"show_excerpts":null,"featured_image_size":null,"cards":null,"thank_you_page_enable":null,"banner_image":null,"subheadline":null,"download_button":null,"featured_video":null,"additional_videos":null,"smart_content":null,"animation":null,"video_type":null,"vimeo_video_id":null,"youtube_video_id":null,"upload":null},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>\u5982\u4f55\u901a\u8fc7\u4f18\u5316 CPU \u5229\u7528\u7387\u907f\u514d CPU \u81ea\u52a8\u6269\u7f29 - Azul | Better Java Performance, Superior Java Support<\/title>\n<meta name=\"description\" content=\"\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8 Azul Platform Prime \u5982\u4f55\u5e73\u8861 JIT \u7f16\u8bd1\u7684 CPU \u5f00\u9500\u548c\u57fa\u4e8e CPU \u7684\u81ea\u52a8\u6269\u7f29\uff0c\u4ece\u800c\u5728\u63d0\u4f9b\u6700\u9ad8\u6027\u80fd\u7684\u540c\u65f6\u907f\u514d\u51fa\u73b0\u8fd9\u4e9b\u4ee4\u4eba\u5934\u75bc\u7684\u6269\u7f29\u76f8\u5173\u95ee\u9898\u3002\u4e0b\u56fe\u662f\u524d\u540e\u5bf9\u6bd4\u7684\u6458\u8981\u3002\u6211\u4eec\u6765\u9010\u6b65\u4e86\u89e3\u4e00\u4e0b\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.azul.com\/blog\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u901a\u8fc7\u4f18\u5316 CPU \u5229\u7528\u7387\u907f\u514d CPU \u81ea\u52a8\u6269\u7f29\" \/>\n<meta property=\"og:description\" content=\"\u5f53\u4eca\u7684 Java \u96c6\u7fa4\u5177\u6709\u73b0\u4ee3\u5316\u3001\u5bb9\u5668\u5316\u548c\u53ef\u5f39\u6027\u6269\u7f29\u7684\u7279\u70b9\uff0c\u901a\u5e38\u4e3b\u8981\u4f9d\u8d56 CPU \u5229\u7528\u7387\u6765\u6a2a\u5411\u6269\u5c55\u65b0\u5b9e\u4f8b\u3002\u5c3d\u7ba1\u8fd9\u4e00\u6307\u6807\u53ef\u80fd\u5e76\u4e0d\u5b8c\u7f8e\uff0c\u4f46\u6839\u636e CPU \u5229\u7528\u7387\u8d85\u8fc7\u67d0\u4e2a\u9650\u5236\u540e\u5c31\u8fdb\u884c\u6a2a\u5411\u6269\u5c55\u65b0\u5b9e\u4f8b\u7684\u505a\u6cd5\u5374\u5341\u5206\u5e38\u89c1\u3002\u8be5\u9650\u5236\u5f80\u5f80\u6781\u4f4e\uff0c\u5927\u7ea6\u5728 40% \u5230 50% \u4e4b\u95f4\u3002 Azul Platform Prime \u4f7f\u7528\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.azul.com\/blog\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\/\" \/>\n<meta property=\"og:site_name\" content=\"Azul | Better Java Performance, Superior Java Support\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/AzulSystemsInc\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-02T15:30:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-26T17:50:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.azul.com\/wp-content\/uploads\/2023-11-02-CPU-Utilization.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Matt Van Order\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@azulsystems\" \/>\n<meta name=\"twitter:site\" content=\"@azulsystems\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Matt Van Order\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\\\/\"},\"author\":{\"name\":\"Matt Van Order\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/#\\\/schema\\\/person\\\/7581071a5e05b817e06a8cce1218ce71\"},\"headline\":\"\u5982\u4f55\u901a\u8fc7\u4f18\u5316 CPU \u5229\u7528\u7387\u907f\u514d CPU \u81ea\u52a8\u6269\u7f29\",\"datePublished\":\"2023-11-02T15:30:55+00:00\",\"dateModified\":\"2024-01-26T17:50:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\\\/\"},\"wordCount\":202,\"publisher\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.azul.com\\\/wp-content\\\/uploads\\\/2023-11-02-CPU-Utilization.png\",\"keywords\":[\"Java performance\"],\"articleSection\":{\"1\":\"Java News &amp; Updates\"},\"inLanguage\":\"zh-CN\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\\\/\",\"url\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\\\/\",\"name\":\"\u5982\u4f55\u901a\u8fc7\u4f18\u5316 CPU \u5229\u7528\u7387\u907f\u514d CPU \u81ea\u52a8\u6269\u7f29 - Azul | Better Java Performance, Superior Java Support\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.azul.com\\\/wp-content\\\/uploads\\\/2023-11-02-CPU-Utilization.png\",\"datePublished\":\"2023-11-02T15:30:55+00:00\",\"dateModified\":\"2024-01-26T17:50:50+00:00\",\"description\":\"\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8 Azul Platform Prime \u5982\u4f55\u5e73\u8861 JIT \u7f16\u8bd1\u7684 CPU \u5f00\u9500\u548c\u57fa\u4e8e CPU \u7684\u81ea\u52a8\u6269\u7f29\uff0c\u4ece\u800c\u5728\u63d0\u4f9b\u6700\u9ad8\u6027\u80fd\u7684\u540c\u65f6\u907f\u514d\u51fa\u73b0\u8fd9\u4e9b\u4ee4\u4eba\u5934\u75bc\u7684\u6269\u7f29\u76f8\u5173\u95ee\u9898\u3002\u4e0b\u56fe\u662f\u524d\u540e\u5bf9\u6bd4\u7684\u6458\u8981\u3002\u6211\u4eec\u6765\u9010\u6b65\u4e86\u89e3\u4e00\u4e0b\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\\\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.azul.com\\\/blog\\\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.azul.com\\\/wp-content\\\/uploads\\\/2023-11-02-CPU-Utilization.png\",\"contentUrl\":\"https:\\\/\\\/www.azul.com\\\/wp-content\\\/uploads\\\/2023-11-02-CPU-Utilization.png\",\"width\":1280,\"height\":500,\"caption\":\"How to Optimize CPU Utilization to Avoid CPU Autoscaling\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/blog\\\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.azul.com\\\/zh-hans\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u901a\u8fc7\u4f18\u5316 CPU \u5229\u7528\u7387\u907f\u514d CPU \u81ea\u52a8\u6269\u7f29\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/#website\",\"url\":\"https:\\\/\\\/www.azul.com\\\/\",\"name\":\"Azul | Better Java Performance, Superior Java Support\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.azul.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/#organization\",\"name\":\"Azul\",\"alternateName\":\"Azul Systems\",\"url\":\"https:\\\/\\\/www.azul.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.azul.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/logo.svg\",\"contentUrl\":\"https:\\\/\\\/www.azul.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/logo.svg\",\"width\":112,\"height\":48,\"caption\":\"Azul\"},\"image\":{\"@id\":\"https:\\\/\\\/www.azul.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/AzulSystemsInc\",\"https:\\\/\\\/x.com\\\/azulsystems\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCSoJZa--HhjV9iXtbHUmm8A\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/azul-systems\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.azul.com\\\/#\\\/schema\\\/person\\\/7581071a5e05b817e06a8cce1218ce71\",\"name\":\"Matt Van Order\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fad944a7430456461683bbda9870e4db55341e06735ab8f3e823211c2012225a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fad944a7430456461683bbda9870e4db55341e06735ab8f3e823211c2012225a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fad944a7430456461683bbda9870e4db55341e06735ab8f3e823211c2012225a?s=96&d=mm&r=g\",\"caption\":\"Matt Van Order\"},\"description\":\"Senior Technical Writer\",\"url\":\"https:\\\/\\\/www.azul.com\\\/zh-hans\\\/blog\\\/author\\\/mattvanorderazul-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u901a\u8fc7\u4f18\u5316 CPU \u5229\u7528\u7387\u907f\u514d CPU \u81ea\u52a8\u6269\u7f29 - Azul | Better Java Performance, Superior Java Support","description":"\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8 Azul Platform Prime \u5982\u4f55\u5e73\u8861 JIT \u7f16\u8bd1\u7684 CPU \u5f00\u9500\u548c\u57fa\u4e8e CPU \u7684\u81ea\u52a8\u6269\u7f29\uff0c\u4ece\u800c\u5728\u63d0\u4f9b\u6700\u9ad8\u6027\u80fd\u7684\u540c\u65f6\u907f\u514d\u51fa\u73b0\u8fd9\u4e9b\u4ee4\u4eba\u5934\u75bc\u7684\u6269\u7f29\u76f8\u5173\u95ee\u9898\u3002\u4e0b\u56fe\u662f\u524d\u540e\u5bf9\u6bd4\u7684\u6458\u8981\u3002\u6211\u4eec\u6765\u9010\u6b65\u4e86\u89e3\u4e00\u4e0b\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.azul.com\/blog\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u901a\u8fc7\u4f18\u5316 CPU \u5229\u7528\u7387\u907f\u514d CPU \u81ea\u52a8\u6269\u7f29","og_description":"\u5f53\u4eca\u7684 Java \u96c6\u7fa4\u5177\u6709\u73b0\u4ee3\u5316\u3001\u5bb9\u5668\u5316\u548c\u53ef\u5f39\u6027\u6269\u7f29\u7684\u7279\u70b9\uff0c\u901a\u5e38\u4e3b\u8981\u4f9d\u8d56 CPU \u5229\u7528\u7387\u6765\u6a2a\u5411\u6269\u5c55\u65b0\u5b9e\u4f8b\u3002\u5c3d\u7ba1\u8fd9\u4e00\u6307\u6807\u53ef\u80fd\u5e76\u4e0d\u5b8c\u7f8e\uff0c\u4f46\u6839\u636e CPU \u5229\u7528\u7387\u8d85\u8fc7\u67d0\u4e2a\u9650\u5236\u540e\u5c31\u8fdb\u884c\u6a2a\u5411\u6269\u5c55\u65b0\u5b9e\u4f8b\u7684\u505a\u6cd5\u5374\u5341\u5206\u5e38\u89c1\u3002\u8be5\u9650\u5236\u5f80\u5f80\u6781\u4f4e\uff0c\u5927\u7ea6\u5728 40% \u5230 50% \u4e4b\u95f4\u3002 Azul Platform Prime \u4f7f\u7528","og_url":"https:\/\/www.azul.com\/blog\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\/","og_site_name":"Azul | Better Java Performance, Superior Java Support","article_publisher":"https:\/\/www.facebook.com\/AzulSystemsInc","article_published_time":"2023-11-02T15:30:55+00:00","article_modified_time":"2024-01-26T17:50:50+00:00","og_image":[{"width":1280,"height":500,"url":"https:\/\/www.azul.com\/wp-content\/uploads\/2023-11-02-CPU-Utilization.png","type":"image\/png"}],"author":"Matt Van Order","twitter_card":"summary_large_image","twitter_creator":"@azulsystems","twitter_site":"@azulsystems","twitter_misc":{"\u4f5c\u8005":"Matt Van Order","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.azul.com\/blog\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\/#article","isPartOf":{"@id":"https:\/\/www.azul.com\/blog\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\/"},"author":{"name":"Matt Van Order","@id":"https:\/\/www.azul.com\/#\/schema\/person\/7581071a5e05b817e06a8cce1218ce71"},"headline":"\u5982\u4f55\u901a\u8fc7\u4f18\u5316 CPU \u5229\u7528\u7387\u907f\u514d CPU \u81ea\u52a8\u6269\u7f29","datePublished":"2023-11-02T15:30:55+00:00","dateModified":"2024-01-26T17:50:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.azul.com\/blog\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\/"},"wordCount":202,"publisher":{"@id":"https:\/\/www.azul.com\/#organization"},"image":{"@id":"https:\/\/www.azul.com\/blog\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\/#primaryimage"},"thumbnailUrl":"https:\/\/www.azul.com\/wp-content\/uploads\/2023-11-02-CPU-Utilization.png","keywords":["Java performance"],"articleSection":{"1":"Java News &amp; Updates"},"inLanguage":"zh-CN"},{"@type":"WebPage","@id":"https:\/\/www.azul.com\/blog\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\/","url":"https:\/\/www.azul.com\/blog\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\/","name":"\u5982\u4f55\u901a\u8fc7\u4f18\u5316 CPU \u5229\u7528\u7387\u907f\u514d CPU \u81ea\u52a8\u6269\u7f29 - Azul | Better Java Performance, Superior Java Support","isPartOf":{"@id":"https:\/\/www.azul.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.azul.com\/blog\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\/#primaryimage"},"image":{"@id":"https:\/\/www.azul.com\/blog\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\/#primaryimage"},"thumbnailUrl":"https:\/\/www.azul.com\/wp-content\/uploads\/2023-11-02-CPU-Utilization.png","datePublished":"2023-11-02T15:30:55+00:00","dateModified":"2024-01-26T17:50:50+00:00","description":"\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8 Azul Platform Prime \u5982\u4f55\u5e73\u8861 JIT \u7f16\u8bd1\u7684 CPU \u5f00\u9500\u548c\u57fa\u4e8e CPU \u7684\u81ea\u52a8\u6269\u7f29\uff0c\u4ece\u800c\u5728\u63d0\u4f9b\u6700\u9ad8\u6027\u80fd\u7684\u540c\u65f6\u907f\u514d\u51fa\u73b0\u8fd9\u4e9b\u4ee4\u4eba\u5934\u75bc\u7684\u6269\u7f29\u76f8\u5173\u95ee\u9898\u3002\u4e0b\u56fe\u662f\u524d\u540e\u5bf9\u6bd4\u7684\u6458\u8981\u3002\u6211\u4eec\u6765\u9010\u6b65\u4e86\u89e3\u4e00\u4e0b\u3002","breadcrumb":{"@id":"https:\/\/www.azul.com\/blog\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.azul.com\/blog\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\/"]}]},{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/www.azul.com\/blog\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\/#primaryimage","url":"https:\/\/www.azul.com\/wp-content\/uploads\/2023-11-02-CPU-Utilization.png","contentUrl":"https:\/\/www.azul.com\/wp-content\/uploads\/2023-11-02-CPU-Utilization.png","width":1280,"height":500,"caption":"How to Optimize CPU Utilization to Avoid CPU Autoscaling"},{"@type":"BreadcrumbList","@id":"https:\/\/www.azul.com\/blog\/how-to-optimize-cpu-utilization-to-avoid-cpu-autoscaling\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.azul.com\/zh-hans\/"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u901a\u8fc7\u4f18\u5316 CPU \u5229\u7528\u7387\u907f\u514d CPU \u81ea\u52a8\u6269\u7f29"}]},{"@type":"WebSite","@id":"https:\/\/www.azul.com\/#website","url":"https:\/\/www.azul.com\/","name":"Azul | Better Java Performance, Superior Java Support","description":"","publisher":{"@id":"https:\/\/www.azul.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.azul.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-CN"},{"@type":"Organization","@id":"https:\/\/www.azul.com\/#organization","name":"Azul","alternateName":"Azul Systems","url":"https:\/\/www.azul.com\/","logo":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/www.azul.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.azul.com\/wp-content\/uploads\/2021\/01\/logo.svg","contentUrl":"https:\/\/www.azul.com\/wp-content\/uploads\/2021\/01\/logo.svg","width":112,"height":48,"caption":"Azul"},"image":{"@id":"https:\/\/www.azul.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/AzulSystemsInc","https:\/\/x.com\/azulsystems","https:\/\/www.youtube.com\/channel\/UCSoJZa--HhjV9iXtbHUmm8A","https:\/\/www.linkedin.com\/company\/azul-systems"]},{"@type":"Person","@id":"https:\/\/www.azul.com\/#\/schema\/person\/7581071a5e05b817e06a8cce1218ce71","name":"Matt Van Order","image":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/secure.gravatar.com\/avatar\/fad944a7430456461683bbda9870e4db55341e06735ab8f3e823211c2012225a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fad944a7430456461683bbda9870e4db55341e06735ab8f3e823211c2012225a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fad944a7430456461683bbda9870e4db55341e06735ab8f3e823211c2012225a?s=96&d=mm&r=g","caption":"Matt Van Order"},"description":"Senior Technical Writer","url":"https:\/\/www.azul.com\/zh-hans\/blog\/author\/mattvanorderazul-com\/"}]}},"_links":{"self":[{"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/posts\/69963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=69963"}],"version-history":[{"count":0,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/posts\/69963\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/media\/68696"}],"wp:attachment":[{"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=69963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=69963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=69963"},{"taxonomy":"resource_categories","embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/resource_categories?post=69963"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/industry?post=69963"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/product?post=69963"},{"taxonomy":"role","embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/role?post=69963"},{"taxonomy":"resource_topic","embeddable":true,"href":"https:\/\/www.azul.com\/zh-hans\/wp-json\/wp\/v2\/resource_topic?post=69963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}