# Performance tuning help

**URL:** https://discuss.elastic.co/t/performance-tuning-help/207121
**Category:** APM
**Tags:** server
**Created:** [November 8, 2019, 1:49pm UTC](https://discuss.elastic.co/t/performance-tuning-help/207121 "2019-11-08T13:49:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ronin](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@Ronin](https://discuss.elastic.co/u/Ronin)
#### Post date: [November 8, 2019, 1:49pm UTC](https://discuss.elastic.co/t/performance-tuning-help/207121/1 "2019-11-08T13:49:48Z")

</div>

Using an Elastic cloud instance with 3 x APM 512 MB instances, but no matter what config performance tuning I do, I cannot get the "queue is full" spikes to stop.

Current configuration is as follows:

```auto
output.elasticsearch.worker: 32
output.elasticsearch.bulk_max_size: 5000
queue.mem.events: 50000

```

`bulk_max_size` and `mem.events` are both set to the max that Elastic cloud will allow and looking at the memory usage chart, we still have plenty unused. I have attempted many different combinations for these values with no success. Next looking at the elastisearch instances they are showing fine for disk usage, index speed, and cpu usage.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/0/f08ec067a186084406b75fe69c6e48f901317f0e.png)

APM version 7.4.2

---

<div class="post-metadata">

### Author: ![Ronin](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@Ronin](https://discuss.elastic.co/u/Ronin)
#### Post date: [November 10, 2019, 11:09pm UTC](https://discuss.elastic.co/t/performance-tuning-help/207121/2 "2019-11-10T23:09:03Z")

</div>

I was able to solve the issue by scaling up to 3 x APM 2 GB in elastic cloud. But after scale up the cpu usage and memory still showed the same in `Stack Monitoring` as show in my original post.

---

<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: [December 1, 2019, 7:09pm UTC](https://discuss.elastic.co/t/performance-tuning-help/207121/3 "2019-12-01T19:09:06Z")

</div>

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