-
Notifications
You must be signed in to change notification settings - Fork 18
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
Exception with openjdk #78
Comments
Is it possible to get more information about the JDK you observed this exception on? The following would help greatly:
Please not that the not found class is platform specific and might not be available in the OS JDK combination. |
I use a Docker image with openjdk and maven ( maven:3.9.9-eclipse-temurin-17 https://github.com/carlossg/docker-maven/blob/8cfe24baffa5b250f7bb2d31ce233fc28f3c4f20/eclipse-temurin-17/Dockerfile ) on Ubuntu. The full java distribution information : OpenJDK 64-Bit Server VM Temurin-17.0.13+11 (17.0.13+11, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64). |
Hi, it may be possible that OperatingSystemMXBean class isn't available in your Java distribution in Docker. |
I failed to reproduce your issue with the JDK base image used in the Dockerfile you linked. Running the JDK on a bare metal Ubuntu 24.04 worked as expected
This means the JDK should not throw the Running in a Docker container exits early for me since the RAPL interface is not available in the container
The Dockerfile I used FROM eclipse-temurin:17-jdk
RUN apt-get update \
&& apt-get install -y ca-certificates curl git openssh-client --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
COPY target/joularjx-3.0.0.jar /root/
CMD ["java", "-javaagent:/root/joularjx-3.0.0.jar", "-version"] Have you done any specific mounts for your Docker container to be able to use the RAPL interface? Anything changed in the properties file to get the agent to try and initialize the |
The text was updated successfully, but these errors were encountered: