The CreatorCon Call for Content is officially open! Get started here.

Replace Oracle version of JAVA with OpenJDK on MID Server

Daniel Falarde1
Tera Contributor

I was task with replacing version of costly Oracle versions on our MID Servers with OpenJDK.

I am told I can use the version that is bundled with ServiceNow however, I do not know how to replace this without breaking the MID server functionnality.

Has anyone experienced this ?

1 REPLY 1

Punit S
Giga Guru

Yes, replacing the Oracle JDK with OpenJDK on MID servers can be done, but it requires some caution and planning to avoid any disruption to MID server functionality. Here are some general steps you can follow:

  1. Review the MID Server documentation: Before making any changes, review the ServiceNow MID Server documentation to understand the supported JDK versions, as well as any requirements or recommendations for upgrading.

  2. Test in a non-production environment: Perform the OpenJDK replacement on a test MID server in a non-production environment. This will allow you to validate that the MID server functions as expected with the new JDK.

  3. Backup the existing JDK: Before making any changes, backup the existing Oracle JDK. This will allow you to roll back to the previous version if any issues occur.

  4. Install the OpenJDK: Install the OpenJDK on the MID server. The OpenJDK can be obtained from a variety of sources, including your operating system's package manager or the OpenJDK website.

  5. Update the environment variables: Update the environment variables on the MID server to point to the OpenJDK installation. This typically involves setting the JAVA_HOME variable to the path of the OpenJDK installation and updating the PATH variable to include the bin directory of the OpenJDK installation.

  6. Restart the MID server: Restart the MID server to ensure that it is using the new OpenJDK.

  7. Test the MID server: Test the MID server to ensure that it is functioning properly with the new JDK. This should include verifying that MID server processes are running, that MID server is able to communicate with ServiceNow instances, and that any integrations or other functionality are working as expected.

  8. Monitor performance: Monitor the performance of the MID server after the OpenJDK replacement to ensure that there are no performance issues or unexpected errors.

  9. Roll back if necessary: If any issues occur with the OpenJDK, roll back to the previous Oracle JDK version by restoring the backup taken in step 3.

Note that the specific steps for replacing the Oracle JDK with OpenJDK on a MID server may vary depending on your environment and the version of ServiceNow you are using. Always consult the ServiceNow documentation and seek assistance from ServiceNow SME or your ServiceNow partner if you are unsure about any aspect of this process.

 

Please mark my answer as a solution/helpful in case it adds value and moves you a step closer to your desired ServiceNow solution goal.

Thanks,
Punit