You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to deploy spring boot application built as a docker image it is consuming too much memory in docker integrated with open shift whereas the same image started in docker local consumes less than half of the memory.
Version
$ docker version
Client:
Version: 1.12.6
API version: 1.24
Go version: go1.6.4
Git commit: 78d1802
Built: Wed Jan 11 00:23:16 2017
OS/Arch: windows/amd64
Server:
Version: 1.13.1
API version: 1.26
Go version: go1.7.5
Git commit: 092cba3
Built: Wed Feb 8 08:47:51 2017
OS/Arch: linux/amd64
Steps To Reproduce
Create a hello-world microservice based on Spring Boot.
Build it as docker image
Run the docker image in docker local. Check memory consumption with docker stats
Current Result
Memory consumption is docker installed in local machine is 116.7 MiB. but when pulled the same image to docker installed in openshift it is twice the memory consumption in local docker which is 385.9 MiB. Please see the document attached for more info.
Expected Result
Memory Consumption should be somewhat similar to local.
The JVM is no stranger to this. If the maximum memory limit hasn’t been specified with -Xmx, the JVM will set it as a fraction of the physical memory (typically a fourth, but it may vary); this may not take into account the limits imposed by the container.
Description:
While trying to deploy spring boot application built as a docker image it is consuming too much memory in docker integrated with open shift whereas the same image started in docker local consumes less than half of the memory.
Version
$ docker version
Client:
Version: 1.12.6
API version: 1.24
Go version: go1.6.4
Git commit: 78d1802
Built: Wed Jan 11 00:23:16 2017
OS/Arch: windows/amd64
Server:
Version: 1.13.1
API version: 1.26
Go version: go1.7.5
Git commit: 092cba3
Built: Wed Feb 8 08:47:51 2017
OS/Arch: linux/amd64
Steps To Reproduce
Current Result
Memory consumption is docker installed in local machine is 116.7 MiB. but when pulled the same image to docker installed in openshift it is twice the memory consumption in local docker which is 385.9 MiB. Please see the document attached for more info.
Expected Result
Memory Consumption should be somewhat similar to local.
HelloWorldTestApllication - Docker.docx
The text was updated successfully, but these errors were encountered: