Skip to content

5705: Explain metaspace in rule results #654

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Suchitainf
Copy link
Collaborator

@Suchitainf Suchitainf commented Jun 8, 2025

This enhancement updates MetaspaceOomRule and IncreasingMetaspaceLiveSetRule with the proper explanation and relevant real time values which were missing.


Progress

  • Commit message must refer to an issue
  • Change must be properly reviewed (1 review required, with at least 1 Committer)

Issue

  • JMC-5705: Explain metaspace in rule results (Enhancement - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jmc.git pull/654/head:pull/654
$ git checkout pull/654

Update a local copy of the PR:
$ git checkout pull/654
$ git pull https://git.openjdk.org/jmc.git pull/654/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 654

View PR using the GUI difftool:
$ git pr show -t 654

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jmc/pull/654.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jun 8, 2025

👋 Welcome back schaturvedi! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Jun 8, 2025

@Suchitainf 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:

5705: Explain metaspace in rule results

Reviewed-by: hdafgard

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 no new commits pushed to the master branch. If another commit should be pushed before you perform the /integrate command, your PR will be automatically rebased. If you prefer to avoid any potential automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the rfr label Jun 8, 2025
@mlbridge
Copy link

mlbridge bot commented Jun 8, 2025

Webrevs

@thegreystone thegreystone requested a review from Gunde June 9, 2025 21:07
@@ -519,6 +520,8 @@ ManyRunningProcessesRule_TEXT_RECOMMENDATION=If this is a server environment, it
ManyRunningProcessesRule_INFO_LIMIT=Competing processes limit
ManyRunningProcessesRule_INFO_LIMIT_LONG=The number of simultaneous processes needed to trigger an info notice
MetaspaceOomRuleFactory_RULE_NAME=Metaspace Out of Memory
MetaspaceOomRuleFactory_TEXT_CAUSE=Java class metadata is allocated in native memory (metaspace). When the amount of native memory needed for a class metadata exceeds MaxMetaSpaceSize, a java.lang.OutOfMemoryError exception with a detail MetaSpace is thrown. The amount of metaspace that can be used for class metadata is limited by the parameter MaxMetaSpaceSize, which is specified on the command line.
MetaspaceOomRuleFactory_TEXT_ACTION=If MaxMetaSpaceSize, has been set on the command-line, increase its value. MetaSpace is allocated from the same address spaces as the Java heap. Reducing the size of the Java heap will make more space available for MetaSpace.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a blocker, but I think it'd be nice if we checked the flag events (if available). We can say both what the current value is, and if it was set on the command line adjust the text. Something like "MaxMetaspaceSize was set to {maxMetaspaceSize} on the command line, increasing this value may help resolve the error."

@@ -519,6 +520,8 @@ ManyRunningProcessesRule_TEXT_RECOMMENDATION=If this is a server environment, it
ManyRunningProcessesRule_INFO_LIMIT=Competing processes limit
ManyRunningProcessesRule_INFO_LIMIT_LONG=The number of simultaneous processes needed to trigger an info notice
MetaspaceOomRuleFactory_RULE_NAME=Metaspace Out of Memory
MetaspaceOomRuleFactory_TEXT_CAUSE=Java class metadata is allocated in native memory (metaspace). When the amount of native memory needed for a class metadata exceeds MaxMetaSpaceSize, a java.lang.OutOfMemoryError exception with a detail MetaSpace is thrown. The amount of metaspace that can be used for class metadata is limited by the parameter MaxMetaSpaceSize, which is specified on the command line.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be MaxMetaspaceSize, not MaxMetaSpaceSize.

@Suchitainf Suchitainf requested a review from Gunde June 14, 2025 18:32
@@ -519,10 +520,13 @@ ManyRunningProcessesRule_TEXT_RECOMMENDATION=If this is a server environment, it
ManyRunningProcessesRule_INFO_LIMIT=Competing processes limit
ManyRunningProcessesRule_INFO_LIMIT_LONG=The number of simultaneous processes needed to trigger an info notice
MetaspaceOomRuleFactory_RULE_NAME=Metaspace Out of Memory
MetaspaceOomRuleFactory_TEXT_CAUSE=Java class metadata is allocated in native memory (metaspace). When the amount of native memory needed for a class metadata exceeds MaxMetaspaceSize, a java.lang.OutOfMemoryError exception with a detail MetaSpace is thrown. The amount of metaspace that can be used for class metadata is limited by the parameter MaxMetaspaceSize, which is specified on the command line.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be Metaspace instead of MetaSpace here as well.

@Suchitainf Suchitainf requested a review from Gunde June 18, 2025 14:44
@openjdk openjdk bot added the ready label Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants