# The unit of the max\_queue\_size reporter config option

**URL:** <https://discuss.elastic.co/t/the-unit-of-the-max-queue-size-reporter-config-option/213159>\
**Category:** APM\
**Tags:** java\
**Created:** [December 27, 2019, 8:48am UTC](https://discuss.elastic.co/t/the-unit-of-the-max-queue-size-reporter-config-option/213159 "2019-12-27T08:48:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![WassimDhib](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wassimdhib/32/43786_2.png) [@WassimDhib](https://discuss.elastic.co/u/WassimDhib)\
**Post date:** [December 27, 2019, 8:48am UTC](https://discuss.elastic.co/t/the-unit-of-the-max-queue-size-reporter-config-option/213159/1 "2019-12-27T08:48:00Z")

</div>

Hi,

What is the unit of the `max_queue_size` configuration option ?  
Is it a number of events or an absolute size in Ko/Mo ??

---

<div class="post-metadata">

**Author:** ![nugusbayevkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nugusbayevkk/32/126683_2.png) [@nugusbayevkk](https://discuss.elastic.co/u/nugusbayevkk)\
**Post date:** [December 27, 2019, 9:09am UTC](https://discuss.elastic.co/t/the-unit-of-the-max-queue-size-reporter-config-option/213159/2 "2019-12-27T09:09:53Z")

</div>

It is a number of events.

---

<div class="post-metadata">

**Author:** ![WassimDhib](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wassimdhib/32/43786_2.png) [@WassimDhib](https://discuss.elastic.co/u/WassimDhib)\
**Post date:** [December 27, 2019, 9:36am UTC](https://discuss.elastic.co/t/the-unit-of-the-max-queue-size-reporter-config-option/213159/3 "2019-12-27T09:36:58Z")

</div>

from what I see in [https://github.com/elastic/apm-agent-java/blob/c0d561735997b528e7f0bd964e27c66562f86a05/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/ElasticApmTracer.java](https://github.com/elastic/apm-agent-java/blob/c0d561735997b528e7f0bd964e27c66562f86a05/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/ElasticApmTracer.java)

It seems that there is 3 pools of objects : transactionPool, spanPool and errorPool with a total size of 5 times the `max_queue_size`

---

<div class="post-metadata">

**Author:** ![nugusbayevkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nugusbayevkk/32/126683_2.png) [@nugusbayevkk](https://discuss.elastic.co/u/nugusbayevkk)\
**Post date:** [December 27, 2019, 9:54am UTC](https://discuss.elastic.co/t/the-unit-of-the-max-queue-size-reporter-config-option/213159/4 "2019-12-27T09:54:46Z")

</div>

You should see in [ApmServerReporter](https://github.com/elastic/apm-agent-java/blob/c0d561735997b528e7f0bd964e27c66562f86a05/apm-agent-core/src/main/java/co/elastic/apm/agent/report/ApmServerReporter.java)

---

<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:** [January 17, 2020, 5:59am UTC](https://discuss.elastic.co/t/the-unit-of-the-max-queue-size-reporter-config-option/213159/5 "2020-01-17T05:59:21Z")

</div>

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