Visit Support

Connecting a JVM to Cloud Native Compiler

Need help?
Schedule a consultation with an Azul performance expert.
Contact Us
Talk about OpenJDK?
Discuss with the community on the Foojay Forum.
Go to Forum

Whether you are using a Cloud Native Compiler instance to provide compilations, ReadyNow profiles, or both, the first step is creating a connection between the JVM and the CNC instance. Ask your CNC service admin for the host address and port of the CNC host and enter it in the -XX:CNCHost=host:port JVM parameter flag.

By default, establishing a connection to CNC forces the JVM to fetch compilations from CNC and not perform compilations locally. If you are only using CNC for Profile Log Service, your CNC administrator can disable Compiler Service globally using the compilations.parallelism.limitPerVm setting.

In some cases, you may also need to enter an additional -XX:CNCEngineUploadAddress=host:port flag. Ask your CNC service admin if this is needed.