Skip to content

CAUTION: This site hosts draft documentation for the next release. For published content of the latest release, visit


This option enables the caching of AOT-compiled methods in the JITServer server.


Setting Effect Default
-XX:+JITServerUseAOTCache Enable
-XX:-JITServerUseAOTCache Disable yes


When you enable this option, the JITServer server caches the AOT-compiled methods. When a JITServer client requests an AOT compilation and the requested method exists in the cache, the server does not have to recompile the method. This feature, therefore, improves the CPU utilization of the JITServer technology and of the cluster.

Note: This option has the following requirements:

  • You must specify this option both at the client JVM and at the server.
  • The client JVM must have the shared classes cache feature enabled and be allowed to generate AOT compilation requests.

The -XX:+JITServerShareROMClasses option is enabled by default at the server on specifying the-XX:+JITServerUseAOTCache option.

See also