Docker Community Forums

Share and learn in the Docker community.

"/tmp/docker -c /tmp/k.conf" process use more than 100% CPU

docker

(Zong4) #1

“/tmp/docker -c /tmp/k.conf” process use more than 100% CPU
and this process will restart when I killed it.
what’s wrong?

top - 09:33:31 up 18:02,  2 users,  load average: 9.59, 9.13, 6.96
Tasks: 211 total,   2 running, 209 sleeping,   0 stopped,   0 zombie
%Cpu(s): 79.8 us, 20.1 sy,  0.0 ni,  0.1 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  8043956 total,  2832356 free,  2356916 used,  2854684 buff/cache
KiB Swap:        0 total,        0 free,        0 used.  5308876 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                  
25540 root      20   0  406464  11284   1492 S 152.5  0.1  21:55.30 /tmp/docker -c /tmp/k.conf                               
25029 root      20   0  406464  12680   1364 S 143.2  0.2  26:28.79 /tmp/docker -c /tmp/k.conf                               
23265 dockeri+  20   0    1992    108     64 R  98.3  0.0  24:58.45 40f4huf4nhf4jpqm mp/k.conf                               
13112 root      20   0  904708  86160  40792 S   1.3  1.1   0:58.38 /usr/bin/dockerd -H fd://                                
13303 root      20   0  675924 105524  50816 S   1.3  1.3   1:33.96 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/+
15348 root      20   0   44520  31544  20760 S   0.7  0.4   0:25.17 calico-felix                                             
    3 root      20   0       0      0      0 S   0.3  0.0   0:37.95 [ksoftirqd/0]                                
13119 14400 14400 13119 ?           -1 Sl       0   0:00      \_ docker-containerd-shim -namespace moby -workdir /var/lib/dock
14400 14417 14417 14417 ?           -1 Ss    1000   0:00      |   \_ /sbin/tini -- /usr/local/bin/jenkins.sh
14417 14464 14464 14417 ?           -1 Sl    1000   0:30      |   |   \_ java -Duser.home=/var/jenkins_home -jar /usr/share/je
14400 23264 23264 23264 ?           -1 Ss    1000   0:00      |   \_ 40f4huf4nhf4jpqm mp/k.conf
23264 23265 23264 23264 ?           -1 R     1000  11:49      |       \_ 40f4huf4nhf4jpqm mp/k.conf
13119 14528 14528 13119 ?           -1 Sl       0   0:00      \_ docker-containerd-shim -namespace moby -workdir /var/lib/dock
14528 14545 14545 14545 ?           -1 Ssl   1000   0:02      |   \_ /usr/lib/jvm/java-1.8-openjdk/jre/bin/java -Dzookeeper.lo
14528 25029 25029 25029 ?           -1 Ssl      0   7:15      |   \_ /tmp/docker -c /tmp/k.conf

13119 16147 16147 13119 ?           -1 Sl       0   0:00      \_ docker-containerd-shim -namespace moby -workdir /var/lib/dock
16147 16172 16172 16172 ?           -1 Ssl      0   0:00      |   \_ webproc --config /etc/dnsmasq.conf -- dnsmasq --no-daemon
16172 16214 16172 16172 ?           -1 S        0   0:00      |   |   \_ /usr/sbin/dnsmasq --no-daemon
16147 25540 25540 25540 ?           -1 Ssl      0   1:37      |   \_ /tmp/docker -c /tmp/k.conf
root@k8s-node1:/var/log/containers# docker info
Containers: 45
 Running: 22
 Paused: 0
 Stopped: 23
Images: 38
Server Version: 17.12.1-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9b55aab90508bd389d7654c4baf173a981477d55
runc version: 9f9c96235cc97674e935002fc3d78361b696a69e
init version: 949e6fa
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.4.0-91-generic
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.671GiB
Name: k8s-node1.bxr.cn
ID: EHIM:VEHY:774Y:TYMX:YAT4:KH4E:FLYN:POF6:Y4LB:6RQI:QUMI:MZYW
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 registry.bxr.cn
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support
root@k8s-node1:/var/log/containers# docker version 
Client:
 Version:       17.12.1-ce
 API version:   1.35
 Go version:    go1.9.4
 Git commit:    7390fc6
 Built: Tue Feb 27 22:17:40 2018
 OS/Arch:       linux/amd64

Server:
 Engine:
  Version:      17.12.1-ce
  API version:  1.35 (minimum version 1.12)
  Go version:   go1.9.4
  Git commit:   7390fc6
  Built:        Tue Feb 27 22:16:13 2018
  OS/Arch:      linux/amd64
  Experimental: false

(Virajput) #2

i am also having same issue and its killing my production application any update on this. seem bug in docker.

platform OS - Ubuntu 16.04

docker version - Docker version 1.12.6, build 78d1802

Thanks,
Vijendra