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

Reduce the default min heap size and remove the default max heap size #2840

Merged
merged 1 commit into from
Oct 15, 2021

Conversation

lmsurpre
Copy link
Member

@lmsurpre lmsurpre commented Oct 6, 2021

For historical reasons we were setting the initial heap size to the same
value as the max heap size: 4GiB.
However, based on experimentation, our memory pool usage is only around
512MB for a lightly used ingestion workload.
The cost dynamics of cloud make it more important to set an appropriate
initial heap size and memory management in the JVM has gotten better
over time.

As for the max heap size, OpenJ9 has intelligent defaults when running
within a container, and so we should use those instead of guessing at a
default of our own:
https://www.eclipse.org/openj9/docs/xxusecontainersupport

Signed-off-by: Lee Surprenant lmsurpre@us.ibm.com

For historical reasons we were setting the initial heap size to the same
value as the max heap size: 4GiB.
However, based on experimentation, our memory pool usage is around
512MB for an idle server.
The cost dynamics of cloud make it more important to set an appropriate
initial heap size and memory management in the JVM has gotten better
over time.

As for the max heap size, OpenJ9 has intelligent defaults when running
within a container, and so we should use those instead of guessing at a
default of our own:
https://www.eclipse.org/openj9/docs/xxusecontainersupport

Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
Copy link
Contributor

@prb112 prb112 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@michaelwschroeder michaelwschroeder left a comment

Choose a reason for hiding this comment

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

LGTM

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

Successfully merging this pull request may close these issues.

3 participants