- -server -XX:+TieredCompilation
Comparison
You can tune JVM's performance by tuning either memory management or code generaion. Here we have tuned code generator by turning tiered compilation mode on. With tiered compilation on, more classes are compiled (or compiled more efficiently) and so they execute faster (i.e., +15%).Using ATG CRM Demo benchmark, we saw the following KPI changes:
-XX:-TieredCompilation | -XX:+TieredCompilation | % Change | |
Total Footprint | 4431MB | 4686MB | -5.4% |
Application Server CPU | 23% | 20% | +15% |
Average Response Time | 0.234 | 0.217 | +7.8% |
Notes
- Here is our setting for ReservedCodeCacheSize[2]:
-TieredCompilation: 128MB
+TieredCompilation: 256MB - When we turned on tiered compilation mode, we also reserve larger code cache for it (i.e., 256 MB vs. 128 MB). Code cache is allocated out of native memory (vs. heap). Total footprint shown in the table includes native memory. So, we see total footprint is larger when tiered compilation mode is turned on.