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

UseCGroupMemoryLimitForHeap replaced UseContainerSupport #25

Merged
merged 2 commits into from
Oct 12, 2021

Conversation

patsevanton
Copy link
Contributor

@patsevanton patsevanton commented Sep 17, 2021

@arey
Copy link
Member

arey commented Sep 17, 2021

Thank you @patsevanton. @odedia are you ok for this PR?
Not sure that the UnlockExperimentalVMOptions option is still necessary.

@patsevanton
Copy link
Contributor Author

patsevanton commented Sep 17, 2021

Change -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap to -XX:MinRAMPercentage=50.0 -XX:MaxRAMPercentage=80.0

jenkinsci/kubernetes-operator@59d522c

@odedia
Copy link
Contributor

odedia commented Sep 19, 2021

Is this change only for docker-compose? I would expect similar change to be necessary for Kubernetes deployments. On the other hand, if you're building the images using mvn spring-boot:build-image that it should already be optimized for containerised workloads.

@patsevanton
Copy link
Contributor Author

Now only for docker-compose. I can add java option for Kubernetes. But you don`t use them.

@patsevanton
Copy link
Contributor Author

https://bugs.openjdk.java.net/browse/JDK-8194086 - Remove deprecated experimental flag UseCGroupMemoryLimitForHeap

@arey
Copy link
Member

arey commented Sep 21, 2021

In this repository, we provide a Dockerfile that is using for base image the latest image for Java 11: adoptopenjdk:11-jre-hotspot. The UseCGroupMemoryLimitForHeap option should be removed.

The README.md references the usage of Buildpacks through the mvn spring-boot:build-image command line (configured in the pom.xml to with the name odedia/${project.artifactId}). I suppose the base image is a Java 11. As @odedia said, the generated image should be optimized for Docker. No need of this old option.

So we propose 2 ways to build Docker image. And I suggest to accept this PR.

@patsevanton
Copy link
Contributor Author

patsevanton commented Oct 1, 2021

Added Relocate skaffold.yaml to root directory.
Merge this PR or create another pull request for Relocate skaffold.yaml to root directory?

@patsevanton
Copy link
Contributor Author

Hello.
Added Relocate skaffold.yaml to root directory.
Merge this PR or create another pull request for Relocate skaffold.yaml to root directory?

@arey arey merged commit 833fdb5 into spring-petclinic:master Oct 12, 2021
HakjunMIN pushed a commit to HakjunMIN/spring-petclinic-cloud that referenced this pull request Mar 20, 2024
UseCGroupMemoryLimitForHeap replaced UseContainerSupport
HakjunMIN pushed a commit to HakjunMIN/spring-petclinic-cloud that referenced this pull request Mar 20, 2024
UseCGroupMemoryLimitForHeap replaced UseContainerSupport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants