# DT\_STORAGE env variable usage?

**URL:** <https://community.dynatrace.com/t/dt-storage-env-variable-usage/20463>\
**Category:** Open Q&A\
**Tags:** oneagent\
**Created:** [April 26, 2019, 11:28am UTC](https://community.dynatrace.com/t/dt-storage-env-variable-usage/20463 "2019-04-26T11:28:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enrico\_F](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/enrico_f/32/23774_2.png) [@Enrico\_F](https://community.dynatrace.com/u/Enrico_F)\
**Post date:** [April 26, 2019, 11:28am UTC](https://community.dynatrace.com/t/dt-storage-env-variable-usage/20463/1 "2019-04-26T11:28:10Z")

</div>

In the process of migrating our monitoring from AppMon to Dynatrace I just found out the hard way that setting the env variable DT\_STORAGE in the context of an application process (Java in this case) will have an impact on where the Deep Monitoring Agent (which monitors the process) will write its logs and memory dumps, namely:

$DT\_STORAGE/java  
$DT\_STORAGE/memorydumps

Although this seems to be an undocumented feature (probably a remnant of sorts from the AppMon agent “DNA”) it is quite neat as we would want to keep all process-specific logs (incl. memdumps) to a process-specific location. This was actually the whole point of defining DT\_STORAGE during the AppMon days.

The only problem is that this seems to break memdump uploads to the ActiveGate and therefore they will never appear for download via the UI. Unfortunately “unsetting” DT\_STORAGE is not easily possible for the apps we’re trying to migrate.

I’m curious if anyone made a similar experience and if perhaps any “insiders” can comment/confirm the current usage of DT\_STORAGE and the impact on memory dump storage.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [July 20, 2020, 3:48pm UTC](https://community.dynatrace.com/t/dt-storage-env-variable-usage/20463/2 "2020-07-20T15:48:33Z")

</div>

Hey [@Enrico F.](https://answers.dynatrace.com/users/3956/view.html) were you able to get this resolved? If so what did you do to resolve it? did you run into any other issues? any Lessons learned?

---

<div class="post-metadata">

**Author:** ![Enrico\_F](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/enrico_f/32/23774_2.png) [@Enrico\_F](https://community.dynatrace.com/u/Enrico_F)\
**Post date:** [July 20, 2020, 4:29pm UTC](https://community.dynatrace.com/t/dt-storage-env-variable-usage/20463/3 "2020-07-20T16:29:26Z")

</div>

Hi [@Chad T.,](https://answers.dynatrace.com/users/36422/view.html)

This was “resolved” via a support case where it was stated that setting DT\_STORAGE is not supported and that it “changes the directory where agent stores data like dumps, log files, downloaded config and so on”…

Unfortunately support could not provide me with any additional insights regarding possible issues associated with setting the variable in the context of a monitored process - other than what I had established myself through trial and error. The reason given was:

_Once a variable is set to be restricted, as in this case, not all the ways it impacts the environment are fully known._

We’ve learned to live with this issue by manually retrieving and purging memdumps from the file system after we trigger them via the UI. Thankfully this only affects one of our legacy J2EE platforms of diminishing criticality and whose remaining days are already counted…

HTH

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [July 20, 2020, 5:09pm UTC](https://community.dynatrace.com/t/dt-storage-env-variable-usage/20463/4 "2020-07-20T17:09:16Z")

</div>

Thank you so much for this update!
