Skip to content
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

[GR-42460] Add support for CgroupMetrics.getTotalMemory0 #5390

Merged
merged 1 commit into from
Nov 18, 2022

Conversation

jerboaa
Copy link
Collaborator

@jerboaa jerboaa commented Nov 8, 2022

Latest JDK code received an update to bound the
reported container memory above by the total physical memory
of the host running the container. See JDK-8292541

Implement the same in GraalVM, only substituting the class/methods
if they exist in the JDK.

Closes #5387

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 8, 2022
Copy link
Collaborator

@zakkak zakkak left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you @jerboaa

@zakkak
Copy link
Collaborator

zakkak commented Nov 8, 2022

Note: This should also be backported to 22.3.1.

Copy link
Collaborator

@zakkak zakkak left a comment

Choose a reason for hiding this comment

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

There are two style issues with the copyright.

@jerboaa
Copy link
Collaborator Author

jerboaa commented Nov 8, 2022

Note: This should also be backported to 22.3.1.

Yes. Thanks for the review!

@jerboaa jerboaa force-pushed the metrics_improvements_graal_5387 branch from f01f8d7 to 90d5c6b Compare November 8, 2022 17:43
Latest JDK code received an update to bound the
reported container memory above by the total physical
memory of the host running the container. Implement
the same in GraalVM, only substituting the class/methods
if they exist in the JDK.

Closes oracle#5387
@jerboaa jerboaa force-pushed the metrics_improvements_graal_5387 branch from 90d5c6b to 3dcf7c7 Compare November 8, 2022 18:58
@zakkak
Copy link
Collaborator

zakkak commented Nov 9, 2022

@oubidar-Abderrahim can you please help us with assigning this PR to the right person?

@jerboaa
Copy link
Collaborator Author

jerboaa commented Nov 15, 2022

@fniephaus Could you please help us getting this integrated/reviewed? It's causing integration test failures on our end.

@fniephaus fniephaus self-assigned this Nov 15, 2022
@fniephaus fniephaus changed the title Add support for CgroupMetrics.getTotalMemory0 [GR-42460] Add support for CgroupMetrics.getTotalMemory0 Nov 15, 2022
Copy link
Member

@fniephaus fniephaus left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@jerboaa
Copy link
Collaborator Author

jerboaa commented Nov 15, 2022

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
native-image OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[GR-42460] JFR jdk.ContainerConfiguration event fails with GraalVM master and JDK 17.0.6+1 (EA)
4 participants