# Ingest-Attachment performance issue

**URL:** <https://discuss.elastic.co/t/ingest-attachment-performance-issue/81039>\
**Category:** Elasticsearch\
**Created:** [April 3, 2017, 5:57pm UTC](https://discuss.elastic.co/t/ingest-attachment-performance-issue/81039 "2017-04-03T17:57:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rreverol](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@rreverol](https://discuss.elastic.co/u/rreverol)\
**Post date:** [April 3, 2017, 5:57pm UTC](https://discuss.elastic.co/t/ingest-attachment-performance-issue/81039/1 "2017-04-03T17:57:42Z")

</div>

I am upgrading from ES 1.6 to ES 5.3. Everything is working ok except the ingest-attachment. I installed the plugin and configured the mappings according to the documentation. I am even able to index small documents but ES consumes the whole heap when trying to index big documents which were correctly and smoothly indexed with the previous version.

I am trying to index 300 pdf documents with sizes between 400.000 and 1.500.000 characters. I am running just one ES Node in my local machine with 16 Gb. I have tried with serveral max heap configurations. I also installed the depracated mapping plugin and it worked just fine.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 3, 2017, 6:30pm UTC](https://discuss.elastic.co/t/ingest-attachment-performance-issue/81039/2 "2017-04-03T18:30:50Z")

</div>

Interesting. Can you open an issue and link to this thread?

May be there are some optimisations we can do in ingest? // cc @spinscale

---

<div class="post-metadata">

**Author:** ![rreverol](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@rreverol](https://discuss.elastic.co/u/rreverol)\
**Post date:** [April 3, 2017, 7:04pm UTC](https://discuss.elastic.co/t/ingest-attachment-performance-issue/81039/4 "2017-04-03T19:04:47Z")

</div>

Here it is [https://github.com/elastic/elasticsearch/issues/23882](https://github.com/elastic/elasticsearch/issues/23882)

---

<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, 2017, 7:04pm UTC](https://discuss.elastic.co/t/ingest-attachment-performance-issue/81039/5 "2017-05-01T19:04:54Z")

</div>

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