File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ LABEL org.opencontainers.image.source="https://github.com/nginx/nginx-supportpkg
9
9
LABEL org.opencontainers.image.licenses="Apache-2.0"
10
10
11
11
COPY --chmod=744 nginx-utils/api_stats.sh /root/api_stats.sh
12
+ COPY --chmod=744 nginx-utils/memory_stats.sh /root/memory_stats.sh
12
13
13
14
RUN set -ex \
14
15
&& apk --update add --no-cache \
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ echo " "
4
+ echo " **** Output of memory.stat ****"
5
+ cat /sys/fs/cgroup/memory.stat
6
+
7
+ echo " "
8
+ echo " **** Output of pmap for nginx and nginx-ingress processes ****"
9
+ for p in $( pidof nginx nginx-ingress) ; do pmap ${p} -x; done
10
+
11
+ echo " "
12
+ echo " **** Output of /proc/pid/status for nginx and nginx-ingress processes ****"
13
+ for p in $( pidof nginx nginx-ingress) ; do cat /proc/${p} /status; done
You can’t perform that action at this time.
0 commit comments