-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
direct_max stats missing on newer JDKs #47210
Comments
Pinging @elastic/es-core-infra |
I'm reviewing this issue for the Core/Infra team issue triage. I'd like to discuss whether we should consider removing stats that we can't correctly report from the node info APIs. Note that the intent of the JDK developers is that classes in |
We discussed this in a team meeting today. We know that we use If one of those conditions is not met for one of these stats, that is, if the value changes or can't be retrieved at start time, then we should deprecate and remove that stat. |
The
MaxDirectMemorySize
information, which is reported asdirect_max
in the node info APIs, is no longer correctly reported on newer JDKs. In particular, it's missing with the bundled JDK. The reason is thatVM
class has moved from thesun.misc
to thejdk.internal.misc
package, which means that the following lines of code are not working anymore on newer JDKs:elasticsearch/server/src/main/java/org/elasticsearch/monitor/jvm/JvmInfo.java
Lines 61 to 62 in 2b8c7c5
The text was updated successfully, but these errors were encountered: