CoreOS Single Container High Memory Usage

So I have a simple Go web app I deployed as a Docker container. I am running a t2.small instance on AWS with CoreOS AMI.

The container is very small, only using about 10MB of memory according to docker stat:

  • Tag a Docker image in Google Container Registry with additional tag via command line
  • save docker output to a text file
  • Bash variable inside third remote server
  • 403 on Laravel Docker setup
  • Route traffic to a docker container based on subdomain
  • DistributionNotFound when running pserve with docker-compose
  • CONTAINER           CPU %               MEM USAGE / LIMIT     MEM %               NET I/O               BLOCK I/O
    8e230506e99a        0.00%               11.11 MB / 2.101 GB   0.53%               49.01 MB / 16.39 MB   1.622 MB / 0 B

    However the CoreOS instance seems to be using a lot of memory:

    $ free
                 total       used       free     shared    buffers     cached
    Mem:       2051772    1686012     365760      25388     253096    1031836
    -/+ buffers/cache:     401080    1650692
    Swap:            0          0          0

    As you can see it’s using almost 1.7GB of memory of its 2GB total memory with only about 300MB left. And this seems to be slowly getting worse.

    I’ve had the instance running for about 3 days now and the free memory started at around 400MB after fresh launch and starting a single Docker container.

    Is this something I should worry about? Or is CoreOS supposed to use so so much memory when my little Go app in a container only uses tiny 10MB.

  • docker restore; lack of indication to go-dockerclient - FIXED
  • How to pass arguments to a Dockerfile?
  • Openshift pods crash
  • Changing disk space of container partition
  • Docker exit status 1 for Node app on AWS
  • Using docker-compose to collaborate on existing git repo Django project
  • One Solution collect form web for “CoreOS Single Container High Memory Usage”

    Because a lot of that memory usage is buffers and cache. The better indicator is your application from Docker (which is likely close if it is a small Go app) and the OS total usage minux buffers and cache on the second line (which is closer to 400 MB used).

    See for a decent explanation.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.