Merged by openshift-bot
OpenShift Bot authored on 2015/10/17 03:10:07... | ... |
@@ -421,9 +421,15 @@ In order to start the server in CPU profiling mode, run: |
421 | 421 |
|
422 | 422 |
$ OPENSHIFT_PROFILE=cpu sudo ./_output/local/bin/linux/amd64/openshift start |
423 | 423 |
|
424 |
-To view profiles, you use [pprof] which is part of `go tool`. You must pass the binary you are debugging (for symbols) and a captured pprof. For instance, to view a `cpu` profile from above, you would run OpenShift to completion, and then run: |
|
424 |
+Or, if running OpenShift under systemd, append this to /etc/sysconfig/openshift-master |
|
425 |
+ |
|
426 |
+ OPENSHIFT_PROFILE=cpu |
|
427 |
+ |
|
428 |
+To view profiles, you use [pprof](http://goog-perftools.sourceforge.net/doc/cpu_profiler.html) which is part of `go tool`. You must pass the binary you are debugging (for symbols) and a captured pprof. For instance, to view a `cpu` profile from above, you would run OpenShift to completion, and then run: |
|
425 | 429 |
|
426 | 430 |
$ go tool pprof ./_output/local/bin/linux/amd64/openshift cpu.pprof |
431 |
+ or |
|
432 |
+ $ go tool pprof /bin/openshift /var/lib/openshift/cpu.pprof |
|
427 | 433 |
|
428 | 434 |
This will open the `pprof` shell, and you can then run: |
429 | 435 |
|