Is OpenJDK from Redhat supported for DX SaaS Infrastructure Agent
search cancel

Is OpenJDK from Redhat supported for DX SaaS Infrastructure Agent

book

Article ID: 267064

calendar_today

Updated On: 12-27-2023

Products

CA Application Performance Management SaaS

Issue/Introduction

I am looking to install more infrastructure agents on some Redhat Linux servers.   Is OpenJDK that ships with Redhat supported?

[root@server1 apmia]# /usr/bin/java -version
openjdk version "1.8.0_362"
OpenJDK Runtime Environment (build 1.8.0_362-b09)
OpenJDK 64-Bit Server VM (build 25.362-b09, mixed mode)

I was having trouble finding much detail about this. I would prefer to use the OpenJDK as it will be updated when the servers are updated and having a bundled java installed often ends up with a lot of security issues at some point and forced upgrades.

If it is supported, as it does look like it works, is changing the values below in the wrapper.conf file in the Infrastructure agent the proper way to change that?  In the text below you can see in the third line I commented out the default setting and added in the last line to point to the java installed by the system then removed the jre directory from the Infrastructure Agent install and it seems to be working fine, but wanted to confirm if this is the proper way to do it and if this is supported?

# Java Application
# set.JAVA_HOME=%JAVA_HOME%
#wrapper.java.command=jre/bin/java
wrapper.java.command=/usr/bin/java

Environment

Release : SAAS

Resolution

The SaaS Infrastructure Agent comes with its own JRE and it is indeed OpenJDK.  The latest IA version is 2023.3.0.4 and is bundled with OpenJDK 17.

See below from my test server.

[root@serverA bin]# pwd
/opt/asmagent/apmia/jre/bin

[root@serverA bin]# ./java -version
openjdk version "17.0.5" 2022-10-18
OpenJDK Runtime Environment Temurin-17.0.5+8 (build 17.0.5+8)
OpenJDK 64-Bit Server VM Temurin-17.0.5+8 (build 17.0.5+8, mixed mode, sharing)

As for changing the Java version, according to our compatibility guide below, the IA Agent supports OpenJDK 1.8 and higher.  The way you changed in wrapper.conf is the correct way and supported as long as you don't go below 1.8.

APM Compatibility Guide List