# Where can i set APM-Server Memory Settings?

**URL:** <https://discuss.elastic.co/t/where-can-i-set-apm-server-memory-settings/249665>\
**Category:** APM\
**Tags:** server\
**Created:** [September 23, 2020, 1:37pm UTC](https://discuss.elastic.co/t/where-can-i-set-apm-server-memory-settings/249665 "2020-09-23T13:37:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gruselglatz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gruselglatz/32/42675_2.png) [@gruselglatz](https://discuss.elastic.co/u/gruselglatz)\
**Post date:** [September 23, 2020, 1:37pm UTC](https://discuss.elastic.co/t/where-can-i-set-apm-server-memory-settings/249665/1 "2020-09-23T13:37:07Z")

</div>

Can I somewhere set the Memory Limits for APM-Server? Or is it defined by the queue.mem setting?

Thanks.

---

<div class="post-metadata">

**Author:** ![simitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simitt/32/106406_2.png) [@simitt](https://discuss.elastic.co/u/simitt)\
**Post date:** [September 23, 2020, 6:57pm UTC](https://discuss.elastic.co/t/where-can-i-set-apm-server-memory-settings/249665/2 "2020-09-23T18:57:03Z")

</div>

Hi @gruselglatz,  
there's no dedicated APM Server setting for limiting the memory, as you already mentioned you can set the size of the in-memory queue (however the actual memory consumption for it depends on the size of the events).

---

<div class="post-metadata">

**Author:** ![gruselglatz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gruselglatz/32/42675_2.png) [@gruselglatz](https://discuss.elastic.co/u/gruselglatz)\
**Post date:** [September 24, 2020, 5:30am UTC](https://discuss.elastic.co/t/where-can-i-set-apm-server-memory-settings/249665/3 "2020-09-24T05:30:13Z")

</div>

OK Thanks, is there some calc or estimation i can use like queue.mem.events: 16K = 1Gb memory?

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [September 24, 2020, 6:15am UTC](https://discuss.elastic.co/t/where-can-i-set-apm-server-memory-settings/249665/4 "2020-09-24T06:15:43Z")

</div>

As far as I know we do not have anything readily available to estimate memory usage, but I think you could get a rough approximation by using the storage size estimations at [https://www.elastic.co/guide/en/apm/server/current/sizing-guide.html#typical-storage](https://www.elastic.co/guide/en/apm/server/current/sizing-guide.html#typical-storage).

Just bear mind that the size depends heavily on the application, agent, and which instrumentation is enabled. The size of transactions and spans may vary considerably, based on their contents.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 15, 2020, 2:15am UTC](https://discuss.elastic.co/t/where-can-i-set-apm-server-memory-settings/249665/5 "2020-10-15T02:15:47Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
