# Cluster-issue with import and query at same time

**URL:** <https://discuss.elastic.co/t/cluster-issue-with-import-and-query-at-same-time/200518>\
**Category:** Elasticsearch\
**Created:** [September 21, 2019, 7:30am UTC](https://discuss.elastic.co/t/cluster-issue-with-import-and-query-at-same-time/200518 "2019-09-21T07:30:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yashwantbokadia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yashwantbokadia/32/54649_2.png) [@Yashwantbokadia](https://discuss.elastic.co/u/Yashwantbokadia)\
**Post date:** [September 21, 2019, 7:30am UTC](https://discuss.elastic.co/t/cluster-issue-with-import-and-query-at-same-time/200518/1 "2019-09-21T07:30:37Z")

</div>

Hello All,  
I'm importing data on my cluster using elasticdump in bulk, I want to run query on Cluster while the import is going on, but when I do that, the import stops with an error "heap out of memory". I want to complete the import with the query on a cluster at the same time. Any Suggestion?

---

<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:** [September 21, 2019, 7:35am UTC](https://discuss.elastic.co/t/cluster-issue-with-import-and-query-at-same-time/200518/2 "2019-09-21T07:35:46Z")

</div>

Sounds like you need to scale up your cluster and add more heap to handle that workload. Another option would be to optimise your data, queries and bulk size to reduce heap usage.

---

<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:** [October 19, 2019, 7:35am UTC](https://discuss.elastic.co/t/cluster-issue-with-import-and-query-at-same-time/200518/3 "2019-10-19T07:35:47Z")

</div>

Closed on October 19, 2019, 7:35am UTC

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