Changing the Java Virtual Machine (JVM) used to run the Denodo Platform servers and tools in an installation with a desktop environment is easy. Open the Denodo Control Center, click on Configure, then Edit and click on the plus icon to add a new JVM if needed. To add the new JVM the path of the JVM installation and a description are needed.
Once the JVM has been added to the default JVM to be used by the Denodo Platform, it can be selected from the list of Installed Java Virtual Machines. The JVM selected will be the one used any time a Denodo server or tool is started.
To do the same for a Denodo installation on a headless environment (without a graphical interface or desktop environment) these steps must be followed:
- Stop all the Denodo Platform components.
- Edit the file <DENODO_HOME>/metadata/launcher/launcher-settings.xml to change content inside the <currentJVM> tag. For instance, if the JVM to use is installed under /opt/java/jdk11.0.7 replace
<currentJVM> <description>Default</description> </currentJVM> |
with
<currentJVM> <denodoJVM>false</denodoJVM> <description>My JVM</description> <path>/opt/java/jdk11.0.7</path> </currentJVM> |
- Execute the script <DENODO_HOME>/bin/regenerateFiles.{bat,.sh}
- Start the Denodo Platform components needed.
After following these steps the next time the Denodo Platform components are started they will be using the new JVM configured.
NOTE: In Linux systems take into account that, if the default JVM used by the Denodo Platform is changed, the Denodo Monitor will continue using the default JVM, to change this you must declare the DENODO_JAVA_HOME environment variable to point to the new JVM and restart the Denodo Monitor. For example:
$ export DENODO_JAVA_HOME=<PATH TO THE NEW JDK> |
Starting from Denodo 7.0, users can also add or change a Java Virtual Machine for the Denodo Solution Manager, if needed. To do this, open the Denodo Solution Manager, click on Configure, then Edit and click on the plus icon to add a new JVM if needed.
To do the same for a Solution Manager installation on a headless environment follow the same steps as described for Denodo Platform by modifying the below files.
<SOLUTION_MANAGER_HOME>/metadata/launcher/launcher-settings.xml
and running the script in the following path:
<SOLUTION_MANAGER_HOME>/bin/regenerateFiles.{bat,.sh}
The information provided in the Denodo Knowledge Base is intended to assist our users in advanced uses of Denodo. Please note that the results from the application of processes and configurations detailed in these documents may vary depending on your specific environment. Use them at your own discretion.
For an official guide of supported features, please refer to the User Manuals. For questions on critical systems or complex environments we recommend you to contact your Denodo Customer Success Manager.