Skip to content

Commit 0dd37fa

Browse files
committed
Add performance-data-setup.sh and usage docs
1 parent 13374fa commit 0dd37fa

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- [Logging](#logging)
1010
- [Session Caching](#session-caching)
1111
- [Applying Interim Fixes](#applying-interim-fixes)
12+
- [Running Liberty MustGather](#running-liberty-mustgather)
1213
- [Known Issues](#known-issues)
1314
- [Generating system dumps for pods in Kubernetes](#generating-system-dumps-for-pods-in-kubernetes)
1415
- [Contributions](#contributions)
@@ -265,6 +266,19 @@ The Liberty session caching feature builds on top of an existing technology call
265266

266267
The process to apply interim fixes (iFix) is defined [here](releases/applying-ifixes/README.md).
267268

269+
## Running Liberty MustGather
270+
271+
The [Liberty MustGather script](https://www.ibm.com/support/pages/mustgather-performance-hang-or-high-cpu-issues-liberty-linux) can be run within your container to collect critical data for debugging issues relating to performance degradation, hang, no response, hung threads, CPU starvation, high CPU utilization, or deadlocks with Liberty on Linux.
272+
273+
Include the following snippet into your Dockerfile definition to install the required packages for running `linperf.sh` in the Liberty container.
274+
275+
```
276+
# Temporarily provide root access to install required packages
277+
USER 0
278+
RUN performance-data-setup.sh
279+
USER 1001
280+
```
281+
268282
## Known Issues
269283
270284
### Generating system dumps for pods in Kubernetes
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
. /opt/ol/helpers/build/internal/logger.sh
4+
5+
set -Eeox pipefail
6+
7+
pkgcmd=yum
8+
if ! command $pkgcmd
9+
then
10+
pkgcmd=microdnf
11+
fi
12+
13+
$pkgcmd update -y
14+
$pkgcmd install -y procps-ng net-tools ncurses hostname
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
. /opt/ol/helpers/build/internal/logger.sh
4+
5+
set -Eeox pipefail
6+
7+
pkgcmd=yum
8+
if ! command $pkgcmd
9+
then
10+
pkgcmd=microdnf
11+
fi
12+
13+
$pkgcmd update -y
14+
$pkgcmd install -y procps-ng net-tools ncurses hostname
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
. /opt/ol/helpers/build/internal/logger.sh
4+
5+
set -Eeox pipefail
6+
7+
pkgcmd=yum
8+
if ! command $pkgcmd
9+
then
10+
pkgcmd=microdnf
11+
fi
12+
13+
$pkgcmd update -y
14+
$pkgcmd install -y procps-ng net-tools ncurses hostname

0 commit comments

Comments
 (0)