summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/note/links/links.txt3
-rw-r--r--doc/note/openshift/dbg-mem-issues.txt15
2 files changed, 18 insertions, 0 deletions
diff --git a/doc/note/links/links.txt b/doc/note/links/links.txt
index 20eb16b..ab09e60 100644
--- a/doc/note/links/links.txt
+++ b/doc/note/links/links.txt
@@ -547,3 +547,6 @@ Links (Aka argument amplifiers)
## Git paisa complain about rebase stuff
- [Complain about force-pushes](https://gitit.post.ch/projects/ISA/repos/lazlar/pull-requests/3/overview?commentId=311142)
+## Angular is terrible
+- [Why angular sucks](https://medium.com/dirtyjs/why-angular-2-4-5-6-sucks-afb36567ad68)
+
diff --git a/doc/note/openshift/dbg-mem-issues.txt b/doc/note/openshift/dbg-mem-issues.txt
index bf402e6..07baaff 100644
--- a/doc/note/openshift/dbg-mem-issues.txt
+++ b/doc/note/openshift/dbg-mem-issues.txt
@@ -52,6 +52,21 @@ true `# log JMX stuff` \
&& sleep $(expr 14400 - \( $(date +%s) % 14400 \)) || break; done \
&& true)
+
+`# Create heap dump`
+com.sun.management.dumpHeap("/usr/local/vertx/houston-storage-file/houston-___-heap-2023____-____Z.hprof", true)
+
+`# Inspect`
+ocprod exec -i "$(ocprod get pods|egrep ston-[1-9]|cut -f1 -d' ')" -- sh -c 'cd /usr/local/vertx/houston-storage-file && ls -Ahl'
+
+true `# Get made heap dump` \
+ && echo create checksum. \
+ && ocprod exec -i "$(ocprod get pods|egrep ston-[1-9]|cut -f1 -d' ')" -- sh -c 'cd /usr/local/vertx/houston-storage-file && md5sum -b houston-*.hprof >> MD5SUM-$(date -u +%Y%m%d-%H%M%SZ)' \
+ && echo checksum done. Begin dload. \
+ && ocprod exec -i "$(ocprod get pods|egrep ston-[1-9]|cut -f1 -d' ')" -- sh -c 'cd /usr/local/vertx/houston-storage-file && tar c houston-*.hprof MD5SUM*' | (cd heapDump && tar x) \
+ && echo dload done \
+ && true
+
true \
&& ONE="houston-prod-pmap-20231102-163425.txt" \
&& TWO="houston-prod-pmap-20231103-074301.txt" \