Skip to content

Dockerd eats 20GB of RAM #32711

@DmitriyMV

Description

@DmitriyMV

Dockerd eats up a huge chunk of memory when there are a lot of containers are starting and stopping on the same server.

Steps to reproduce:
while :; do docker run --rm busybox /bin/false; done

pprof output:
pprof001.zip

Output of docker version:

Client:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 05:33:38 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 05:33:38 2016
 OS/Arch:      linux/amd64

Output of docker info:

Containers: 17
 Running: 17
 Paused: 0
 Stopped: 0
Images: 38
Server Version: 1.12.1
Storage Driver: overlay2
 Backing Filesystem: xfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local local-persist
 Network: host overlay bridge null macvlan
Swarm: active
 NodeID: oojd1ntn6u5javok5gdb5dtmn
 Is Manager: true
 ClusterID: 2wjx7mbqdze2cp25qvfpvwg0l
 Managers: 4
 Nodes: 4
 Orchestration:
  Task History Retention Limit: 5
 Raft:
  Snapshot Interval: 10000
  Heartbeat Tick: 1
  Election Tick: 3
 Dispatcher:
  Heartbeat Period: 5 seconds
 CA Configuration:
  Expiry Duration: 3 months
 Node Address: 192.168.17.2
Runtimes: runc
Default Runtime: runc
Security Options: apparmor seccomp
Kernel Version: 4.4.0-34-generic
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 24
Total Memory: 94.41 GiB
Name: ds1
ID: 6CA2:ROZW:SCEA:EDTR:SZXT:47N4:GA5O:EAAD:6OVN:PK6U:NGQ4:23E6
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
 127.0.0.0/8

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions