# Memory dump download for Kubernetes installations

**URL:** <https://community.dynatrace.com/t/memory-dump-download-for-kubernetes-installations/36912>\
**Category:** Container platforms\
**Tags:** activegate, memory-dump, kubernetes\
**Created:** [October 16, 2022, 6:49am UTC](https://community.dynatrace.com/t/memory-dump-download-for-kubernetes-installations/36912 "2022-10-16T06:49:49Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![hari-m94](https://avatars.discourse-cdn.com/v4/letter/h/f9ae1b/32.png) [@hari-m94](https://community.dynatrace.com/u/hari-m94)\
**Post date:** [October 16, 2022, 6:49am UTC](https://community.dynatrace.com/t/memory-dump-download-for-kubernetes-installations/36912/1 "2022-10-16T06:49:49Z")

</div>

Hi ,

We run all our workloads in AKS Clusters and we have Dynatrace integrated via the&nbsp;Kubernetes&nbsp;Classic full-stack injection or&nbsp;Cloud-native full-stack injection. With my current setup, I am able to trigger memory dump but I am not able to download the triggered dump directly from Dynatrace.

Upon some reading, I understand that the active gates have to be configured to enable such direct download, but I am having a hard time figuring out how I can accomplish that configuration in the Dynakube-based Kubernetes integration. I assume some configurations needed to be updated in the Dynakube to reflect the configurations outlines in&nbsp;[Configure ActiveGate for memory dump storage — Dynatrace Docs](https://www.dynatrace.com/support/help/how-to-use-dynatrace/diagnostics/memory-dump-analysis/configure-an-activegate-for-memory-dump-storage)

Need some help to get this set on my environment, thanks in advance.

---

<div class="post-metadata">

**Author:** ![The\_AM](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@The\_AM](https://community.dynatrace.com/u/The_AM)\
**Post date:** [October 16, 2022, 10:05pm UTC](https://community.dynatrace.com/t/memory-dump-download-for-kubernetes-installations/36912/2 "2022-10-16T22:05:51Z")

</div>

Hi [@hari-m94](https://community.dynatrace.com/user/50326) ,

Please note that as of now, I do not believe memory dumps are tested by Dynatrace in Kubernetes environments. Therefore, not officially supported.

However, I believe you could add custom properties to the activegate section of the Dynakube CR, similar to:

```notranslate
customProperties:
    value: |-
        [collector]
        DumpSupported = true
        [dump]
        dumpDir = dump
        downloadUrl = FQDN_OF_YOUR_INGRESS:PORT

```

You would also need an accessible downloadUrl to retrieve the memory dump files. I believe this requires an ingress (such as a gateway with Istio) to be able to retrieve the dump from outside of the cluster:

See further Kubernetes Ingress documentation - [Ingress | Kubernetes](https://kubernetes.io/docs/concepts/services-networking/ingress/)

I’ve heard of reported issues, such as the following:

- dump path not matching (eg: volume storage is/not used, so the relative path doesn’t match what ActiveGate is expecting)
- Memory dumps are a “stop-the-world” event, so they could cause liveness probes to fail, therefore K8s could kill and restart your container. This would interrupt the memory dump process.
- Memory dumps could cause additional memory load on your container, hitting limits. Again, K8s could kill and restart your container. This would interrupt the memory dump process.

---

<div class="post-metadata">

**Author:** ![edward\_ma](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@edward\_ma](https://community.dynatrace.com/u/edward_ma)\
**Post date:** [July 4, 2023, 1:13am UTC](https://community.dynatrace.com/t/memory-dump-download-for-kubernetes-installations/36912/3 "2023-07-04T01:13:42Z")

</div>

How to create the ingress to retrieve the dump from Activegate? Are there any Activegate APIs that can be used for this purpose?

---

<div class="post-metadata">

**Author:** ![The\_AM](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@The\_AM](https://community.dynatrace.com/u/The_AM)\
**Post date:** [July 6, 2023, 12:55am UTC](https://community.dynatrace.com/t/memory-dump-download-for-kubernetes-installations/36912/4 "2023-07-06T00:55:39Z")

</div>

The custom properties section also allows you to set a custom DNS load-balancer address for the ActiveGate like so:

```c-mrkdwn__pre
customProperties:
      value: |
        [connectivity]
        dnsEntryPoint=<a class="c-link" style="box-sizing: inherit; color: inherit; text-decoration: none;" href="https://dynakube-custom-activegate.dynatrace.svc.cluster.local/communication" target="_blank" rel="noopener noreferrer nofollow" data-stringify-link="https://dynakube-custom-activegate.dynatrace.svc.cluster.local:443/communication" data-sk="tooltip_parent">https://dynakube-custom-activegate.dynatrace.svc.cluster.local:443/communication</a> 

```

I haven’t tried to modify that to the ingress address, it might work. It’s in the realm of untested & unsupported & undocumented.

It’s also going to be creating a scenario where OA will use the ingress address for connectivity. That may be undesirable.

---

<div class="post-metadata">

**Author:** ![edward\_ma](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@edward\_ma](https://community.dynatrace.com/u/edward_ma)\
**Post date:** [August 7, 2023, 7:15pm UTC](https://community.dynatrace.com/t/memory-dump-download-for-kubernetes-installations/36912/5 "2023-08-07T19:15:49Z")

</div>

I have tried this configuration and unfortunately, failed in getting it work.

---

<div class="post-metadata">

**Author:** ![paum](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@paum](https://community.dynatrace.com/u/paum)\
**Post date:** [April 19, 2024, 6:28am UTC](https://community.dynatrace.com/t/memory-dump-download-for-kubernetes-installations/36912/6 "2024-04-19T06:28:36Z")

</div>

I was advised by Dynatrace to use an external ActiveGate(external to K8s). That works as intended, however I just find this whole setup a little weird due to quite a few of these interdependencies.

---

<div class="post-metadata">

**Author:** ![np9](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@np9](https://community.dynatrace.com/u/np9)\
**Post date:** [November 14, 2024, 3:21am UTC](https://community.dynatrace.com/t/memory-dump-download-for-kubernetes-installations/36912/7 "2024-11-14T03:21:45Z")

</div>

Hello&nbsp;[@paum](https://community.dynatrace.com/user/60344)&nbsp;,

Can you please share how you setup this for Kubernetes environment? We have similar requirement of generating a heap dump for a process running on the container of kubernetes cluster.

---

<div class="post-metadata">

**Author:** ![anthony\_sciarin](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/anthony_sciarin/32/1994_2.png) [@anthony\_sciarin](https://community.dynatrace.com/u/anthony_sciarin)\
**Post date:** [January 31, 2025, 6:15pm UTC](https://community.dynatrace.com/t/memory-dump-download-for-kubernetes-installations/36912/8 "2025-01-31T18:15:49Z")

</div>

Hey I hope you don’t mind chiming in here,

I have reached out to our product team and confirmed that this is not supported but can be suggested as a future enhancement via a product idea. I have asked that one of my clients who have also inquired about having memory dumps for container ActiveGates file and product idea. As soon as it is posted I highly recommend voting for this feature to warrant testing and investigation from the Dynatrace product management team.

Best regards,  
-Anthony (Dynatrace CSE)

---

<div class="post-metadata">

**Author:** ![JoYu](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@JoYu](https://community.dynatrace.com/u/JoYu)\
**Post date:** [February 16, 2026, 10:22am UTC](https://community.dynatrace.com/t/memory-dump-download-for-kubernetes-installations/36912/9 "2026-02-16T10:22:15Z")

</div>

DId anyone ever get this working? i.e.&nbsp;Memory dump uploads for k8s?  
We currently manually find the file on the nodes/containers, and move them somewhere e.g. S3 or download it directly.

---

<div class="post-metadata">

**Author:** ![dyn98007](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dyn98007](https://community.dynatrace.com/u/dyn98007)\
**Post date:** [February 26, 2026, 5:05pm UTC](https://community.dynatrace.com/t/memory-dump-download-for-kubernetes-installations/36912/10 "2026-02-26T17:05:26Z")

</div>

[https://community.dynatrace.com/t5/Product-ideas/Memory-dump-generation-and-upload-in-Kubernetes-Cloud-Native/idi-p/294944](https://community.dynatrace.com/post/294944)
