-XX:[+|-]JITServerShareROMClasses
This option enables the JITServer server to share cached ROM classes between JITServer clients.
Syntax
-XX:[+|-]JITServerShareROMClasses
Setting | Effect | Default |
---|---|---|
-XX:+JITServerShareROMClasses |
Enable | |
-XX:-JITServerShareROMClasses |
Disable | yes |
Note: The -XX:+JITServerShareROMClasses
option is enabled by default at the server on specifying the -XX:+JITServerUseAOTCache
option.
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.