I have tried the JVM arguments like -XX:-CICompilerCountPerCPU -XX:+CICompilerCount=3
, -XX:CICompilerCountPerCPU=false -XX:+CICompilerCount=3
, but it still shows that CICompilerCountPerCPU=true
:
[~]$ java -XX:+PrintFlagsFinal -version| grep CI
ccstr ArchiveClassesAtExit = {JVMCI product} {default}
bool AutoCreateSharedArchive = false {JVMCI product} {default}
intx CICompilerCount = 3 {product} {ergonomic}
My purpose is to set the number of JIT threads to a fixed "3", and how can I verify that was effective?
Using the following does the trick:
The obvious difference with your attempt is that you tried with
-XX:+CICompilerCount=3
, which results in an error because the+
and-
are only valid for boolean options: