# How can I modify -XMX -XMS in Dynatrace Managed to add more heap

**URL:** <https://community.dynatrace.com/t/how-can-i-modify-xmx-xms-in-dynatrace-managed-to-add-more-heap/19797>\
**Category:** Dynatrace Managed\
**Tags:** dynatrace-managed, profiling-and-optimization\
**Created:** [February 27, 2019, 8:02am UTC](https://community.dynatrace.com/t/how-can-i-modify-xmx-xms-in-dynatrace-managed-to-add-more-heap/19797 "2019-02-27T08:02:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AskMe-Solutions](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/askme-solutions/32/33154_2.png) [@AskMe-Solutions](https://community.dynatrace.com/u/AskMe-Solutions)\
**Post date:** [February 27, 2019, 8:02am UTC](https://community.dynatrace.com/t/how-can-i-modify-xmx-xms-in-dynatrace-managed-to-add-more-heap/19797/1 "2019-02-27T08:02:55Z")

</div>

Hi everyone,

After I added more memory to Dynatrace Managed server form 32 GB to 48 GB, Then I need to modify -XMX -XMS in the Dynatrace Managed server to add more heap, can I modify it?

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [February 27, 2019, 9:17am UTC](https://community.dynatrace.com/t/how-can-i-modify-xmx-xms-in-dynatrace-managed-to-add-more-heap/19797/2 "2019-02-27T09:17:12Z")

</div>

You cannot, dynatrace is allocating available memory automatically (with reservation for each components). You have to know that there is not only Java server, but elasticsearch, cassandra nginx etc as well. All of those components has to have resources available. This is why it is possible that dynatrace is not using all available memory on host.

Sebastian

---

<div class="post-metadata">

**Author:** ![waikeat\_chan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/waikeat_chan/32/33405_2.png) [@waikeat\_chan](https://community.dynatrace.com/u/waikeat_chan)\
**Post date:** [March 2, 2019, 3:13pm UTC](https://community.dynatrace.com/t/how-can-i-modify-xmx-xms-in-dynatrace-managed-to-add-more-heap/19797/3 "2019-03-02T15:13:27Z")

</div>

In addition to Sebastian comment (which is also the answer from Dynatrace people), if you look at the content of the Dynatrace Managed installer you will also found this (which I BELIEVE is the percentage of memory allocation):

 ![19914-percent-allocation.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/8/08b314444bdee4c53cbcc11f38e37f9fded405eb.png)

---

<div class="post-metadata">

**Author:** ![AskMe-Solutions](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/askme-solutions/32/33154_2.png) [@AskMe-Solutions](https://community.dynatrace.com/u/AskMe-Solutions)\
**Post date:** [March 4, 2019, 7:19am UTC](https://community.dynatrace.com/t/how-can-i-modify-xmx-xms-in-dynatrace-managed-to-add-more-heap/19797/4 "2019-03-04T07:19:43Z")

</div>

Hello @Wai C.,

Thank for your addition. so how i can see the content in your picture.

Thank you

---

<div class="post-metadata">

**Author:** ![waikeat\_chan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/waikeat_chan/32/33405_2.png) [@waikeat\_chan](https://community.dynatrace.com/u/waikeat_chan)\
**Post date:** [March 5, 2019, 12:57am UTC](https://community.dynatrace.com/t/how-can-i-modify-xmx-xms-in-dynatrace-managed-to-add-more-heap/19797/5 "2019-03-05T00:57:16Z")

</div>

sure, you are welcome.

Just use vim command to look at the content of the managed installer. (it might take a while for vim to render the content)
