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 memory consumption of Docker images #76 #77

Merged
merged 2 commits into from
May 2, 2018
Merged

Reduce memory consumption of Docker images #76 #77

merged 2 commits into from
May 2, 2018

Conversation

mrumpf
Copy link

@mrumpf mrumpf commented May 2, 2018

The fix switches from an outdated Oracle Java 8 Docker image
to the current openjdk:8 image. The Java VM of this image
supports the parameters to make the Java VM Docker aware.
With this option it becomes possible to set the memory
limit to 256MB which reduces the memory consumption by
75% and leaves the application still operational.

Michael Rumpf added 2 commits May 2, 2018 11:08
The fix switches from an outdated Oracle Java 8 Docker image
to the current openjdk:8 image. The Java VM of this image
supports the parameters to make the Java VM Docker aware.
With this option it becomes possible to set the memory
limit to 256MB which reduces the memory consumption by
75% and leaves the application still operational.
This closes #76 and hopefully improves the first time user-experience
of the Docker compose way of running the demo microservices.
Copy link
Collaborator

@mszarlinski mszarlinski left a comment

Choose a reason for hiding this comment

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

Good job, thank you!

@mszarlinski mszarlinski merged commit 387f824 into spring-petclinic:master May 2, 2018
@arey
Copy link
Member

arey commented May 3, 2018

Thank you @mrumpf

@mrumpf mrumpf deleted the docker-memory-limit branch May 3, 2018 17:57
talha-01 pushed a commit to talha-01/microservices-ci-cd-pipeline-with-petclinic-app that referenced this pull request Nov 13, 2020
…g-petclinic#77)

* Reduce memory consumption of Docker images spring-petclinic#76

The fix switches from an outdated Oracle Java 8 Docker image
to the current openjdk:8 image. The Java VM of this image
supports the parameters to make the Java VM Docker aware.
With this option it becomes possible to set the memory
limit to 256MB which reduces the memory consumption by
75% and leaves the application still operational.

* Added a NOTE about the Docker VM resource usage on Mac and Win

This closes spring-petclinic#76 and hopefully improves the first time user-experience
of the Docker compose way of running the demo microservices.
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