Repository navigation
Description
When I run the latest OSE image in Docker container, everything works normally but after some time and after I start some builds and deploy stuff the "openshift" process start eating >100% CPU and it keeps doing that until I stop the container. This sometimes takes couple minutes to happen, sometimes it happens in few seconds...
Here is heap dump: http://omicron.mifo.sk/heap.txt
Here is goroutine dump: http://omicron.mifo.sk/go.txt
And here is loglevel=5 openshift log: http://omicron.mifo.sk/ose.txt
[vagrant@localhost ~]$ docker run openshift3/ose version
openshift v3.0.2.902
kubernetes v1.2.0-alpha.1-1107-g4c8e6f4
etcd 2.1.2The container is started like this (on the RHEL 7.1 VM with docker 1.7.1:
$ docker run -d --name "ose" --privileged --net=host --pid=host \
-v /:/rootfs:ro \
-v /var/run:/var/run:rw \
-v /sys:/sys:ro \
-v /var/lib/docker:/var/lib/docker:rw \
-v #{ORIGIN_DIR}/openshift.local.volumes:#{ORIGIN_DIR}/openshift.local.volumes:z \
-v #{ORIGIN_DIR}/openshift.local.config:#{ORIGIN_DIR}/openshift.local.config:z \
-v #{ORIGIN_DIR}/openshift.local.etcd:#{ORIGIN_DIR}/openshift.local.etcd:z \
openshift3/ose start \
--master="https://#{PUBLIC_ADDRESS}:8443" \
--etcd-dir="#{ORIGIN_DIR}/openshift.local.etcd"PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
24806 root 20 0 1456368 240616 19092 S 193.4 12.8 2:46.28 openshift The registry and router are also installed and running properly.
It seems like something got stuck on decoding/encoding JSON, but I can't see anything in the container logs...
(since this is very reproducible and it is happening with the OSE Docker image, this should get P1?)
Activity
hferentschik commentedon Oct 23, 2015
+1 I have been experiencing the same. The only way to move on was to restart the container
mfojtik commentedon Oct 23, 2015
@sdodson FYI
liggitt commentedon Oct 23, 2015
Are you running the all in one, or can you tell whether it is the master or node process that is eating CPU?
mfojtik commentedon Oct 23, 2015
@liggitt all-in-one
smarterclayton commentedon Oct 23, 2015
Please capture a CPU dump
On Fri, Oct 23, 2015 at 7:24 AM, Michal Fojtik [email protected]
wrote:
maxandersen commentedon Oct 26, 2015
@smarterclayton sorry for my ignorance but what kind of CPU dump would like to have ? is a plain top dump enough ?
smarterclayton commentedon Oct 26, 2015
Michal's on vacation unfortunately so I was mostly asking him - basically a
CPU profile from OpenShift when at 100% CPU so we can see what's hot. I
don't think this is something you have to gather, whomever ends up owning
this will need to recreate and verify.
On Mon, Oct 26, 2015 at 11:19 AM, Max Rydahl Andersen <
[email protected]> wrote:
maxandersen commentedon Oct 26, 2015
okey.
liggitt commentedon Oct 26, 2015
Were you following build logs in the CLI or the web console? Seeing 250% CPU usage after viewing logs in the web console. I did this:
liggitt commentedon Oct 26, 2015
Captured profile by starting with
OPENSHIFT_PROFILE=web, and grabbing withgo tool pprof http://localhost:6060/debug/pprof/profilewhen at 250% CPU:smarterclayton commentedon Oct 26, 2015
Suspect this is a hot read loop for zero byte reads in the websocket code.
On Mon, Oct 26, 2015 at 12:30 PM, Jordan Liggitt [email protected]
wrote:
smarterclayton commentedon Oct 26, 2015
Need to isolate where this is caused by a websocket client (browser vs not)
or the server.
On Mon, Oct 26, 2015 at 12:33 PM, Clayton Coleman [email protected]
wrote:
liggitt commentedon Oct 26, 2015
For the record, CLI log streaming doesn't cause it (
oc start-build ... --followoroc build-logs ...)liggitt commentedon Oct 26, 2015
Error being hotlooped:
liggitt commentedon Oct 26, 2015
Guessing this is the issue, since
wsstream.ignoreReceivesappears in @mfojtik's goroutine dump at #5355 (comment)mfojtik commentedon Oct 29, 2015
@liggitt @smarterclayton this is not yet fixed in the OSE image @sdodson is building and pushing to the RCM registry
@sdodson can you please rebuild/push image that will include the fix above?
The version I pulled today is: openshift v3.0.2.903-29-g49953d6
sdodson commentedon Oct 29, 2015
Michal,
I've rebuilt the image, please give it a shot. You should get
openshift v3.0.2.903-114-g2849767
On Thu, Oct 29, 2015 at 6:41 AM, Michal Fojtik [email protected]
wrote:
mfojtik commentedon Oct 29, 2015
@sdodson thanks, testing now