# Queue is full after restarting the server

**URL:** <https://discuss.elastic.co/t/queue-is-full-after-restarting-the-server/277274>\
**Category:** APM\
**Tags:** server\
**Created:** [June 29, 2021, 1:41am UTC](https://discuss.elastic.co/t/queue-is-full-after-restarting-the-server/277274 "2021-06-29T01:41:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Post date:** [June 29, 2021, 1:41am UTC](https://discuss.elastic.co/t/queue-is-full-after-restarting-the-server/277274/1 "2021-06-29T01:41:12Z")

</div>

apm-server, logstash and elastic version: 7.5.1

Hi, after a server restart i keep getting this error:

```auto
ERROR [request] middleware/log_middleware.go:74 queue is full

```

the more I increase queue.mem.events the more I get this logs:

`[request] middleware/log_middleware.go:76 request accepted`  
but eventually the errors come back, what this logs means?

Ive tried some changes in the apm-server.yml with no luck

```auto

output.logstash:
  enabled: true
  hosts: ["191.163.222.53:5044"]
  max_retries: 0
  bulk_max_size: 10000
  worker: 8
  timeout: 120

queue.mem.events: 80000
event_rate.limit: 100

```

using logstash output, apm-server is on docker

---

<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:** [June 29, 2021, 2:45pm UTC](https://discuss.elastic.co/t/queue-is-full-after-restarting-the-server/277274/2 "2021-06-29T14:45:01Z")

</div>

Have you checked the apm-server logs for any connection errors to logstash? It seems like it cannot reach the output, which then leads to a full queue.

---

<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:** [July 20, 2021, 10:45am UTC](https://discuss.elastic.co/t/queue-is-full-after-restarting-the-server/277274/3 "2021-07-20T10:45:04Z")

</div>

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