-
Notifications
You must be signed in to change notification settings - Fork 6.2k
JDK-8260571: Add PrintMetaspaceStatistics to print metaspace statistics upon VM exit #2283
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
JDK-8260571: Add PrintMetaspaceStatistics to print metaspace statistics upon VM exit #2283
Conversation
|
👋 Welcome back stuefe! A progress list of the required criteria for merging this PR into |
fc18548 to
9959026
Compare
Webrevs
|
|
I am wondering if we should use UL to avoid adding new command-line options. How about this in Eventually we should move |
I rather would leave the translation of the "XXAtExit" flags to UL - if it even happens in that way - for anther patch instead of mixing those two unrelated issues together. Easier to backport, for one thing. Note that I am also not convinced that is the right way to do. I'm not completely against it but tbh I find the way UL handles tags very strange, with the tags being a jumble of component names, phase descriptors and what feels like just random words. It is certainly a uncommon system and has a number of drawbacks. So I wonder whether it would make sense to have a discussion before further going down this road. |
coleenp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
|
I agree with Thomas. I think there's a way to make UL not print the decorations with these PrintAtExit, but otherwise the decorations are noisy. We purposefully didn't not translate the options that print a lot of output to UL because the decorations and the timestamps aren't interesting. eg. PrintSystemDictionaryAtExit or PrintInterpreter. If someone wants to change this so that these options suppress decorations and translate to UL, we can change metspace printing at exit also. As a diagnostic flag, there isn't any promise of it's longevity in the code. ie. we can change it if we want. |
OK, I withdraw my objection. |
|
@tstuefe This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 59 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
Coleen, Ioi, thank you!
Thanks, Coleen! |
Thanks! |
|
/integrate |
|
@tstuefe Since your change was applied there have been 60 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit ddd2951. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This patch adds a new diagnostic boolean switch
PrintMetaspaceStatistics. When set, it will cause the VM to print a brief report about metaspace occupancy when exiting. It follows the same logic asPrintNMTStatisticsand similar switches.Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/2283/head:pull/2283$ git checkout pull/2283