-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Quarkus App fail to restart: SmallRyeMetricsRecorder cause ArrayIndexOutOfBoundsException in CgroupV2Subsystem #27248
Comments
/cc @ebullient , since this looks related to quarkus-metrics, maybe you have an idea ? |
Does this happen if you use the micrometer extension instead? The micrometer extension also retrieves the OperatingSystemMxBean, but has a few different stop-gaps in place: (Note the Micrometer extension is the recommended metrics extension as of Quarkus 1.9). |
Thanks @ebullient , I will give it a try, but since the application is quite large I need to take some time to migrate all the metrics. |
@rmanibus I would try to upgrade the JDK first. It looks like a JDK issue to me. |
And even if Micrometer is now the way to go, SmallRye Metrics is still expected to work. |
thanks @gsmet , unfortunately I'm stuck to 15 for now due to snowflakedb/snowflake-jdbc#533 |
I have no idea. But I would try the latest 11 and the latest 17 and see if it fixes this particular issue. |
While the micrometer extension handles most of the MP Metrics API, you are right that it doesn't deal with some gauge usage patterns.. @gsmet: I was curious if the way micrometer deals with mxbeans would make a difference or not for the jdk it is on. It has a few more guards around mbean inspection than the quarkus smallrye metrics extension does, which is why I asked if the other extension could be tried. |
Very much this. I wouldn't stay on JDK 15 for any longer than I had too :) |
/cc @ebullient, @jmartisk |
I do not face this issue anymore after upgrading to 2.12.0.Final. I'm not sure what was causing this though. |
Thanks for the update. Let's close the issue, but feel free to comment if you encounter it in the future |
Describe the bug
I have a quarkus application with quarkus 2.10.1.Final running on a RHEEL vm. Everything is working fine when I start the app for the first time,
however when I stop it I am not able to restart it. I have to reboot the VM to make it start again.
The stacktrace indicates that the failure occurs in SmallRyeMetricsRecorder.
I am not sure I will be able to produce a reproducer for this one.
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
Linux [REDACTED] 3.10.0-1160.31.1.el7.x86_64 #1 SMP Thu Jun 10 13:32:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "15.0.2" 2021-01-19 OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.2+7) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.2+7, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.10.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: