-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDK wasn't initialized with JRE #2036
Comments
Hi @kumachop2. There are several vendors that provide different builds/distributions of OpenJDK 17. Can you please be very specific and show us exactly which version from which vendor you are using? Maybe you can provide a download link here. Can you paste the error message you are seeing? What makes you believe that the SDK is not being initialized? Furthermore, please provide the full commandline you are using when launching the JVM. Thanks. |
@breedx-splk Thanks much for the prompt response. Please find below the requested details. What makes you believe that the SDK is not being initialized? -- I'm not seeing any traces as well as there is no java agent references in Pod logs. I haven't made any changes to command line other than switching runtime. OpenJDK17 JDK- UBI8 - https://catalog.redhat.com/software/containers/ubi8/openjdk-17/618bdbf34ae3739687568813 OpenJDK17 JRE - UBI8 - https://catalog.redhat.com/software/containers/ubi8/openjdk-17-runtime/618bdc5f843af1624c4e4ba8?architecture=arm64&image=66bcc05ba3857fbc34f4dd89 Command: from Docker file Copy over our Java Agent JAR to our runtime containerCOPY --chown=jboss --from=explodeJar /deployments/BOOT-INF/lib/splunk-otel-javaagent-*.jar /deployments/lib/ Environment variables provided within the UBI imageENV JAVA_OPTIONS="-javaagent:/deployments/lib/splunk-otel-javaagent-1.32.0.jar -XX:+UseZGC -Xms1024m -Xmx1024m -XX:+PrintCommandLineFlags" Please let me know for additional information |
@kumachop2 thanks for the info. I was able to confirm that the agent works with the RedHat JRE mentioned above. I think your problem might be the use of Here is a Dockerfile I hacked together that does indeed fire up with the agent:
Also note that I added the |
@breedx-splk Thank you for your inputs. Will try and revert. I'm using OTEL_JAVAAGENT_DEBUG environment variable to true in deployment yaml. |
Team, We have been using OpenJDK JDK version last two years in AKS. We have direction to switch it to JRE instead of JDK. Based on documentation JVMs are compatible with JDK or JRE, hence we switched to JRE but SDK is not getting initialized. I tried to enable otel javaagent debug mode but not much help in the pod logs. This could be due to missing some dependent libraries. Would you please assist here
Command: RUN chmod -R go+r /splunk-otel-javaagent.jar
Java Version: OPenJDK17
Splunk SDK: v1.32.0
Please let me know for additional information. Much appreciated timely response.
The text was updated successfully, but these errors were encountered: