# RabbitMQ river causes Java heap space error

**URL:** <https://discuss.elastic.co/t/rabbitmq-river-causes-java-heap-space-error/13939>\
**Category:** Elasticsearch\
**Created:** [October 14, 2013, 12:58pm UTC](https://discuss.elastic.co/t/rabbitmq-river-causes-java-heap-space-error/13939 "2013-10-14T12:58:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ku3ia](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@ku3ia](https://discuss.elastic.co/u/ku3ia)\
**Post date:** [October 14, 2013, 12:58pm UTC](https://discuss.elastic.co/t/rabbitmq-river-causes-java-heap-space-error/13939/1 "2013-10-14T12:58:04Z")

</div>

Hi all!  
Please advice. I'm using RMQ river to post data. When a queue has near 45K messages and I create river, after maybe 20-25 seconds on 4GB of heap size I take java heap space error. I was tried to use threadpool "index" and "bulk" parameters in my cluster, but no positive results. Also tried to set up a different parameters on merge and store - the same. I reviewed a same questions at mail-lists, and src of river and seems the problem that river sends too much bulk requests. I didn't tried, but at src of a couchdb river there is a blocking queue, which seems blocks too much bulk requests.

My question is: Has anybody configure RMQ river properly with ES, or maybe I'm wrong somewhere? Thanks.

---

<div class="post-metadata">

**Author:** ![11124](https://avatars.discourse-cdn.com/v4/letter/1/b5a626/32.png) [@11124](https://discuss.elastic.co/u/11124)\
**Post date:** [October 15, 2013, 7:03am UTC](https://discuss.elastic.co/t/rabbitmq-river-causes-java-heap-space-error/13939/2 "2013-10-15T07:03:10Z")

</div>

Hi Dennis,

I am using rabbitmq-river and have been testing it under heavy load last  
week. In some situations I observed the same error. After some  
investigations I discovered that source of my problems is that I have  
defined very agressive analyzer. Changing it to more relaxed fixed this  
problem.  
I still have some issues with stability of this plugin.

On server side my configuration is:  
threadpool.bulk.type: fixed  
threadpool.bulk.size: 60  
threadpool.bulk.queue\_size: 300

Best regards,  
Nickolay Kolev

14 октомври 2013, понеделник, 15:58:04 UTC+3, dennis yermakov написа:

> Hi all!  
> Please advice. I'm using RMQ river to post data. When a queue has near 45K  
> messages and I create river, after maybe 20-25 seconds on 4GB of heap size  
> I  
> take java heap space error. I was tried to use threadpool "index" and  
> "bulk"  
> parameters in my cluster, but no positive results. Also tried to set up a  
> different parameters on merge and store - the same. I reviewed a same  
> questions at mail-lists, and src of river and seems the problem that river  
> sends too much bulk requests. I didn't tried, but at src of a couchdb  
> river  
> there is a blocking queue, which seems blocks too much bulk requests.
> 
> My question is: Has anybody configure RMQ river properly with ES, or maybe  
> I'm wrong somewhere? Thanks.
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/RabbitMQ-river-causes-Java-heap-space-error-tp4042511.html](http://elasticsearch-users.115913.n3.nabble.com/RabbitMQ-river-causes-Java-heap-space-error-tp4042511.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:12am UTC](https://discuss.elastic.co/t/rabbitmq-river-causes-java-heap-space-error/13939/3 "2017-07-06T02:12:24Z")

</div>

Closed on July 6, 2017, 2:12am UTC


