-
Bug
-
Resolution: Done
-
Blocker
-
RH-SSO-7.6.0
1. Issue description
Procps-ng package is no longer part of RH-SSO image distribution since OCP/RH-SSO 7.5-26.
Procps-ng is the package which allows to run run command such as top and ps.
2. Consequence
It is no longer possible to run following command to capture identify high thread cpu on OpenShift and corrolate it with jstack snapshots.
Hence it is no longer possible to correlate high consuming cpu thread snapshots with jstack snapshots.
POD=<pod-name> ; PID=$(oc exec $POD jps | grep -iv jps | awk '{print $1}'); oc exec $POD – bash -c "for x in {1..6}; do jstack -l $PID >> /opt/eap/standalone/tmp/high-cpu-tdump.out; top -b -n 1 -H -p $PID >> /opt/eap/standalone/tmp/high-cpu.out; sleep 20; done"; oc rsync $POD:/opt/eap/standalone/tmp/high-cpu.out . ; oc rsync $POD:/opt/eap/standalone/tmp/high-cpu-tdump.out
Note:
This command is described in KCS article
It is also not possible to use the solution described in KCS https://access.redhat.com/solutions/6958299, as jstack command will not available through Ephemeral Containers.