Skip to content

CAUTION: This site hosts draft documentation for the next release. For published content of the latest release, visit www.eclipse.org/openj9/docs

-XX:JITServerAOTmx

(Linux® only)

This option specifies the maximum amount of memory allocated to the JITServer AOT cache for storing the compiled code and for the associated data structures that are used in the cache's implementation.

Syntax

    -XX:JITServerAOTmx=<size>
Setting Effect Default
-XX:JITServerAOTmx=<size> Limits the amount of memory used by the JITServer AOT cache 300 MB

Explanation

When the JITServer receives an AOT compilation request, it checks its AOT cache for a compatible compiled method body. If one is not found, the server performs the AOT compilation, sends the response to the client JVM, then stores the compiled method in its local AOT cache, for future use. Multiple requests and storing of the compiled methods can use a lot of memory and degrade the system's overall performance.

You can specify the maximum memory limit for the AOT cache by using the -XX:JITServerAOTmx=<size> option, so that when the JITServer reaches that limit, it will not be able to add new AOT methods to its AOT cache. This will limit the amount of memory used for caching the compiled code and prevent memory shortages at JITServer that could lead to poor performance or even native out-of-memory events.

See also