-XX:[+|-]JITServerShareROMClasses
This option enables or disables the JITServer server to share cached ROM classes between JITServer clients.
Syntax
-XX:[+|-]JITServerShareROMClasses
Setting | Effect | Default |
---|---|---|
-XX:+JITServerShareROMClasses |
Enable | yes |
-XX:-JITServerShareROMClasses |
Disable |
Note: The JITServer AOT caching feature is now enabled at the server by default with the -XX:+JITServerUseAOTCache
option. Because the -XX:+JITServerShareROMClasses
option is a prerequisite for the -XX:+JITServerUseAOTCache
option, therefore the -XX:+JITServerShareROMClasses
option is also the default setting. If you disabled the JITServer AOT cache at the server (-XX:-JITServerUseAOTCache
), specify the -XX:+JITServerShareROMClasses
option explicitly to enable the sharing of the cached ROM classes feature.
Explanation
Enable this option when multiple clients that are running identical or similar applications connect to a single server.
This option enables a caching optimization that allows the server to use ROM classes that are cached for one client while compiling for a different client. This behavior reduces the memory usage at the server because only a single copy of a particular Java™ class is cached.