26 Aug 2024 05:49 PM - last edited on 27 Aug 2024 07:26 AM by MaciejNeumann
Hi,
Background, we have a Dynatyrace SaaS instance which is linked to a Kubernetes cluster. We install Dynatrace Operator, OneAgent and ActiveGate via Dynakube. We want to take a memory dump of a workload in K8s and without have the DynatraceURL to download and have access by `kubectl exec` to the ActiveGate pod. So, I followed these steps:
1. I activated Memory Dump Feature in Dynakube:
```
```
2. Increased the resource.limit.memory to way more than the limit of the process
3. Made sure pod and activegateway are on the same node, else it doesnt work
4. Selected the process and triggered a dump
Q1. The dump is not at the dumpDir specified, it goes to `/var/lib/dynatrace/oneagent/datastorage/memorydump`. Why?
5. Processes for which the heap dump was unsuccessful (size 0 bytes), I can `cat summary.json` as I have the permissions
For process it was a success (size ~1.5Gb), I can see the summary.json & dump.hprof, but I donot have read permissions for it
```
$ ls -lR
$ whoami
whoami: cannot find name for user ID 1001
```
Q2. Can somebody help me find a way to access this?
I see that due to the hardening, the read access is not available. But either the dump process makes no sense if we cant read it or the dumpDir flag is not working.
Thanks in advance!