# Memory dump time to live on OneAgent

**URL:** <https://community.dynatrace.com/t/memory-dump-time-to-live-on-oneagent/11650>\
**Category:** Open Q&A\
**Tags:** oneagent, java\
**Created:** [March 27, 2018, 9:28am UTC](https://community.dynatrace.com/t/memory-dump-time-to-live-on-oneagent/11650 "2018-03-27T09:28:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gautier\_begin](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@gautier\_begin](https://community.dynatrace.com/u/gautier_begin)\
**Post date:** [March 27, 2018, 9:28am UTC](https://community.dynatrace.com/t/memory-dump-time-to-live-on-oneagent/11650/1 "2018-03-27T09:28:18Z")

</div>

Hello,

How long remains a memory dump in the OneAgent directory ?  
I would like to have it only on the Security Gateway, not on the OneAgent.

Regards,

---

<div class="post-metadata">

**Author:** ![Lukasz\_Wrona](https://avatars.discourse-cdn.com/v4/letter/l/aca169/32.png) [@Lukasz\_Wrona](https://community.dynatrace.com/u/Lukasz_Wrona)\
**Post date:** [March 27, 2018, 2:40pm UTC](https://community.dynatrace.com/t/memory-dump-time-to-live-on-oneagent/11650/2 "2018-03-27T14:40:35Z")

</div>

With default settings, memory dumps are kept agent-side for up to 7 days. Oldest ones are also deleted if there are more than 10 dumps or total size of memory dumps is exceeded (this condition is disabled by default).

It is possible to configure any of the three parameters mentioned above, with aid of DevOps.

We are looking to add option to immediately delete memorydumps after they are sent, but there is no timeline for that yet.

---

<div class="post-metadata">

**Author:** ![markie\_struble](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@markie\_struble](https://community.dynatrace.com/u/markie_struble)\
**Post date:** [April 20, 2018, 3:25am UTC](https://community.dynatrace.com/t/memory-dump-time-to-live-on-oneagent/11650/3 "2018-04-20T03:25:26Z")

</div>

As an additional question. How long are the dumps subsequently keep on the Security Gateway?

---

<div class="post-metadata">

**Author:** ![Joe\_Hoffman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/joe_hoffman/32/30752_2.png) [@Joe\_Hoffman](https://community.dynatrace.com/u/Joe_Hoffman)\
**Post date:** [April 20, 2018, 4:13am UTC](https://community.dynatrace.com/t/memory-dump-time-to-live-on-oneagent/11650/4 "2018-04-20T04:13:24Z")

</div>

7 Days on the SG.

[Configuration properties and parameters of ActiveGate — Dynatrace Docs](https://www.dynatrace.com/support/help/installation/security-gateway/how-do-i-configure-a-security-gateway/) (note the MaxAgeDays parameter)

---

<div class="post-metadata">

**Author:** ![jaroslaw\_orlows](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jaroslaw_orlows/32/29074_2.png) [@jaroslaw\_orlows](https://community.dynatrace.com/u/jaroslaw_orlows)\
**Post date:** [March 4, 2021, 4:02pm UTC](https://community.dynatrace.com/t/memory-dump-time-to-live-on-oneagent/11650/5 "2021-03-04T16:02:23Z")

</div>

Hello! This behavior has changed. Now you can control the location for the memory dumps using DATA\_STORAGE parameter and the dir is a subject to OneAgent file aging mechanism. Current rule is:

Files are removed when any of these conditions are true:

- Any of the files in this directory is older than 2 hours
- The files in this directory use more than 20 GB in total

See&nbsp;[OneAgent file aging mechanism — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/oneagent-aging-mechanism#data-storage-directory)
