# Out of memory after bulk rejection

**URL:** <https://discuss.elastic.co/t/out-of-memory-after-bulk-rejection/188618>\
**Category:** Elasticsearch\
**Created:** [July 3, 2019, 6:20am UTC](https://discuss.elastic.co/t/out-of-memory-after-bulk-rejection/188618 "2019-07-03T06:20:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prashant\_Rana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_rana/32/42952_2.png) [@Prashant\_Rana](https://discuss.elastic.co/u/Prashant_Rana)\
**Post date:** [July 3, 2019, 6:20am UTC](https://discuss.elastic.co/t/out-of-memory-after-bulk-rejection/188618/1 "2019-07-03T06:20:36Z")

</div>

I have a setup in which I am sending request to ES (5.6.4) using bulkProcessor.

The problem is that the requests sent to es are more than it can process and the queue is getting full.

The rejected requests are still in my program's memory and it is creating OOM exception in my server.

But in other scenario, if I send all the requests with the same index name(just a test), then everything is working fine.

My question is, where can I check for the rejected request?(not coming in afterbulk)  
And how do I clear it from the memory?

---

<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 31, 2019, 6:20am UTC](https://discuss.elastic.co/t/out-of-memory-after-bulk-rejection/188618/2 "2019-07-31T06:20:39Z")

</div>

Closed on July 31, 2019, 6:20am UTC

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