# APM Java Agent max\_queue\_size

**URL:** <https://discuss.elastic.co/t/apm-java-agent-max-queue-size/231763>\
**Category:** APM\
**Tags:** java\
**Created:** [May 8, 2020, 3:42pm UTC](https://discuss.elastic.co/t/apm-java-agent-max-queue-size/231763 "2020-05-08T15:42:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Fink](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adam_fink/32/45742_2.png) [@Adam\_Fink](https://discuss.elastic.co/u/Adam_Fink)\
**Post date:** [May 8, 2020, 3:42pm UTC](https://discuss.elastic.co/t/apm-java-agent-max-queue-size/231763/1 "2020-05-08T15:42:50Z")

</div>

Hi team,

Documentation question here. For max\_queue\_size the documentation says "The maximum size of buffered events" and the default is 512.

Is that 512 events or does it refer to the memory size of the queue? And if it is memory size, is it in kilobytes, megabyte, or something else?

Max\_queue\_size  
[https://www.elastic.co/guide/en/apm/agent/java/current/config-reporter.html#config-max-queue-size](https://www.elastic.co/guide/en/apm/agent/java/current/config-reporter.html#config-max-queue-size)

Thanks!  
Adam

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [May 8, 2020, 3:52pm UTC](https://discuss.elastic.co/t/apm-java-agent-max-queue-size/231763/2 "2020-05-08T15:52:12Z")

</div>

The size is the number of events that can be buffered. An event can be a span, transaction, or error. The actual heap size can't be easily determined.

---

<div class="post-metadata">

**Author:** ![Adam\_Fink](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adam_fink/32/45742_2.png) [@Adam\_Fink](https://discuss.elastic.co/u/Adam_Fink)\
**Post date:** [May 8, 2020, 3:53pm UTC](https://discuss.elastic.co/t/apm-java-agent-max-queue-size/231763/3 "2020-05-08T15:53:28Z")

</div>

Roger that. Thank you for the quick response!

---

<div class="post-metadata">

**Author:** ![Adam\_Fink](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adam_fink/32/45742_2.png) [@Adam\_Fink](https://discuss.elastic.co/u/Adam_Fink)\
**Post date:** [May 29, 2020, 11:58am UTC](https://discuss.elastic.co/t/apm-java-agent-max-queue-size/231763/4 "2020-05-29T11:58:03Z")

</div>

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