# Why is indexing throughput higher at jmx 4GB than with jmx 24GB?

**URL:** <https://discuss.elastic.co/t/why-is-indexing-throughput-higher-at-jmx-4gb-than-with-jmx-24gb/175205>\
**Category:** Elasticsearch\
**Created:** [April 3, 2019, 1:24pm UTC](https://discuss.elastic.co/t/why-is-indexing-throughput-higher-at-jmx-4gb-than-with-jmx-24gb/175205 "2019-04-03T13:24:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [April 3, 2019, 1:24pm UTC](https://discuss.elastic.co/t/why-is-indexing-throughput-higher-at-jmx-4gb-than-with-jmx-24gb/175205/1 "2019-04-03T13:24:21Z")

</div>

Hi,

I am doing some comparison loadtests with esrally.  
I tested indexing 250 mio events with elasticlogs-1bn-load challenge of eventdata loadtest from github.

The big (!) green areas are the index-append-1000\_elasticlogs\_q\_write operations.  
First area on the left is running elasticsearch as native linux service, middle is running elasticsearch in docker with storing data in as in a docker volume. These bothe have 24GB heap configured.

Last testrun was configured to use docker volume, but only 4GB heap are defined.  
I am using 1 primary shard and 0 replicas in all three testcases.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/5/d5908a0aef1950d1dc9e79949fe79a3629f0ab1f.png)

Can anyone explain, why 4GB is faster on indexing than 24GB? The chart shows the throughput.

Thanks, Andreas

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 3, 2019, 2:25pm UTC](https://discuss.elastic.co/t/why-is-indexing-throughput-higher-at-jmx-4gb-than-with-jmx-24gb/175205/2 "2019-04-03T14:25:09Z")

</div>

It is [recommended to run with as small heap as possible](https://www.elastic.co/blog/a-heap-of-trouble) (as long as you do not run into problems). The difference does seem larger than expected though. Were there anything else running on the host or using the storage that could differ between the runs?

---

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [April 3, 2019, 2:28pm UTC](https://discuss.elastic.co/t/why-is-indexing-throughput-higher-at-jmx-4gb-than-with-jmx-24gb/175205/3 "2019-04-03T14:28:03Z")

</div>

the load generator is running as vm on esx infrastructure. There it is possible that sth else is struggling on the disk.

But the elasticsearch instance I am testing is running on bare metal with local HDD. Nothing else is running on this server.

---

<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:** [May 1, 2019, 2:28pm UTC](https://discuss.elastic.co/t/why-is-indexing-throughput-higher-at-jmx-4gb-than-with-jmx-24gb/175205/4 "2019-05-01T14:28:04Z")

</div>

Closed on May 1, 2019, 2:28pm UTC

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