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

Limit heap usage to 128mb #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jroper
Copy link

@jroper jroper commented Jun 6, 2019

By default, Java will use a max heap size of 25% of the available system memory. So, let's say you're using n1-standard-4 compute nodes on GCE, system memory available to a container without setting any resource limets will be 15GB, so it's going to default to almost 4GB heaps, about 32x what this app really needs.

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.

1 participant