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

Remove check for free memory return to OS in Softmx test #3304

Merged
merged 1 commit into from
Oct 18, 2018

Conversation

dmitripivkine
Copy link
Contributor

@dmitripivkine dmitripivkine commented Oct 16, 2018

An expectation of test that decommited heap memory is going to be
returned to OS is not reliable. It is a source of intermittent failures.
From another side ibmMemoryMBean.getHeapMemoryUsage().getCommitted()
always returns true amount of commited memory. So the main goal of the
test to verify -Xsoftmx functionality.

fixes #1470

Signed-off-by: Dmitri Pivkine [email protected]

An expectation of test that decommited heap memory is going to be
returned to OS is not reliable. It is a source of intermittent failures.
From another side ibmMemoryMBean.getHeapMemoryUsage().getCommitted()
always returns true amount of commited memory. So the main goal of the
test to verify -Xsoftmx functionality.

Signed-off-by: Dmitri Pivkine <[email protected]>
@dmitripivkine
Copy link
Contributor Author

I know this is a little bit confusing that this is a part of testDisclaimMemoryEffects_GC_Test and I removed Disclaimed Memory return check. Well if we treat "Disclaim Memory" as a Xsoftmx functionality check it makes sense. We can not control actual return memory to OS reliably so would be always a possibility of intermittent failure.

Copy link
Contributor

@smlambert smlambert left a comment

Choose a reason for hiding this comment

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

thanks Dmitri!

@smlambert
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[build test failure] testDisclaimMemoryEffects_GC_Test can't shrink heap within 5 minutes
2 participants