# Kibana working very slow and showing errors randomly

**URL:** <https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238>\
**Category:** Elasticsearch\
**Created:** [March 5, 2020, 9:02am UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238 "2020-03-05T09:02:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![cravinder489](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cravinder489/32/62858_2.png) [@cravinder489](https://discuss.elastic.co/u/cravinder489)\
**Post date:** [March 5, 2020, 9:02am UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/1 "2020-03-05T09:02:06Z")

</div>

My kibana is working very slow. I only have 4 indices in it with 300, 45000, 66000 and 12000 documents respectively.  
Also once I start the server, after some time it gives circuit break exception.  
This did not happen in the beginning when I started using ElasticSearch and Kibana in Jan 2020.  
Why is this happening??  
What should I do to rectify this situation?

---

<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:** [March 5, 2020, 9:39am UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/2 "2020-03-05T09:39:20Z")

</div>

Could you share the elasticsearch logs?

---

<div class="post-metadata">

**Author:** ![cravinder489](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cravinder489/32/62858_2.png) [@cravinder489](https://discuss.elastic.co/u/cravinder489)\
**Post date:** [March 5, 2020, 9:42am UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/3 "2020-03-05T09:42:57Z")

</div>

How do i share the file?

---

<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:** [March 5, 2020, 9:43am UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/4 "2020-03-05T09:43:45Z")

</div>

You can copy its content here and format with markdown or `</>` icon.  
If too big, share it on [gist.github.com](http://gist.github.com) and put the link here.

---

<div class="post-metadata">

**Author:** ![cravinder489](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cravinder489/32/62858_2.png) [@cravinder489](https://discuss.elastic.co/u/cravinder489)\
**Post date:** [March 5, 2020, 10:20am UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/5 "2020-03-05T10:20:16Z")

</div>

> <https://gist.github.com/cravinder-c/c968cf6612cec6255f105a4208112b0a>

---

<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:** [March 5, 2020, 10:49am UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/6 "2020-03-05T10:49:11Z")

</div>

I'm surprised that I can't see any "circuit break exception" in the logs.  
Could you share the Kibana logs or a screenshot when this is happening?

---

<div class="post-metadata">

**Author:** ![cravinder489](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cravinder489/32/62858_2.png) [@cravinder489](https://discuss.elastic.co/u/cravinder489)\
**Post date:** [March 5, 2020, 11:11am UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/7 "2020-03-05T11:11:21Z")

</div>

![Screenshot (340)](https://us1.discourse-cdn.com/elastic/original/3X/f/8/f8e5b076a3650f79118c4ad1e7430947bcc897e4.png)

You can see here that when I'm searching for word: deadlines in field: body, I'm getting all 300 documents as a result (even the ones that don't contain that word or its synonyms). Also with this operation, I get an internal server error, as you can see at the top.

 ![Screenshot (341)](https://us1.discourse-cdn.com/elastic/original/3X/7/5/7510e23f50169943f2f36e73f6c8b5bb4a42ae9a.png)

This is what it shows then on my cmd where I started my kibana server.

Also, this is my mapping for body field:

```
    "body" : {
              "type" : "text",
              "analyzer" : "synonym_analyzer"
            }

```

And this is my synonym\_analyzer:

```
    "filter" : {
            "synonym_filter" : {
              "type" : "synonym",
              "synonyms_path" : "wn_s.txt",
              "updateable" : "true"
            }
          },
          "analyzer" : {
            "synonym_analyzer" : {
              "filter" : [
                "lowercase",
                "synonym_filter"
              ],
              "tokenizer" : "standard"
            }
          }

```

Here wn\_s.txt is the sense dictionary of wordnet

---

<div class="post-metadata">

**Author:** ![cravinder489](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cravinder489/32/62858_2.png) [@cravinder489](https://discuss.elastic.co/u/cravinder489)\
**Post date:** [March 5, 2020, 11:12am UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/8 "2020-03-05T11:12:40Z")

</div>

```
log [09:38:18.661] [info][listening] Server running at http://localhost:5601
 error [11:08:06.495] [circuit_breaking_exception] [parent] Data too large, data for [<http_request>] would be [994882004/948.7mb], which is larger than the limit of [986061209/940.3mb], real usage: [994880832/948.7mb], new bytes reserved: [1172/1.1kb], with { bytes_wanted=994882004 & bytes_limit=986061209 & durability="PERMANENT" } :: {"path":"/_msearch","query":{"rest_total_hits_as_int":"true","ignore_throttled":"true"},"body":"{\"index\":\"idxquesanswer\",\"ignore_unavailable\":true,\"preference\":1583406382581}\n{\"version\":true,\"size\":500,\"sort\":[{\"_score\":{\"order\":\"desc\"}}],\"_source\":{\"excludes\":[]},\"stored_fields\":[\"*\"],\"script_fields\":{},\"docvalue_fields\":[{\"field\":\"creationDate\",\"format\":\"date_time\"}],\"query\":{\"bool\":{\"must\":[],\"filter\":[{\"bool\":{\"should\":[{\"match\":{\"body\":\"deadlines\"}}],\"minimum_should_match\":1}}],\"should\":[],\"must_not\":[]}},\"highlight\":{\"pre_tags\":[\"@kibana-highlighted-field@\"],\"post_tags\":[\"@/kibana-highlighted-field@\"],\"fields\":{\"*\":{}},\"fragment_size\":2147483647},\"timeout\":\"30000ms\"}\n","statusCode":429,"response":"{\"error\":{\"root_cause\":[{\"type\":\"circuit_breaking_exception\",\"reason\":\"[parent] Data too large, data for [<http_request>] would be [994882004/948.7mb], which is larger than the limit of [986061209/940.3mb], real usage: [994880832/948.7mb], new bytes reserved: [1172/1.1kb]\",\"bytes_wanted\":994882004,\"bytes_limit\":986061209,\"durability\":\"PERMANENT\"}],\"type\":\"circuit_breaking_exception\",\"reason\":\"[parent] Data too large, data for [<http_request>] would be [994882004/948.7mb], which is larger than the limit of [986061209/940.3mb], real usage: [994880832/948.7mb], new bytes reserved: [1172/1.1kb]\",\"bytes_wanted\":994882004,\"bytes_limit\":986061209,\"durability\":\"PERMANENT\"},\"status\":429}"}
at respond (C:\Users\Ravinder\Desktop\chatbot\kibana-7.1.1-windows-x86_64\node_modules\elasticsearch\src\lib\transport.js:308:15)
at checkRespForFailure (C:\Users\Ravinder\Desktop\chatbot\kibana-7.1.1-windows-x86_64\node_modules\elasticsearch\src\lib\transport.js:267:7)
at HttpConnector.<anonymous> (C:\Users\Ravinder\Desktop\chatbot\kibana-7.1.1-windows-x86_64\node_modules\elasticsearch\src\lib\connectors\http.js:166:7)
at IncomingMessage.wrapper (C:\Users\Ravinder\Desktop\chatbot\kibana-7.1.1-windows-x86_64\node_modules\elasticsearch\node_modules\lodash\lodash.js:4935:19)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1103:12)
at process._tickCallback (internal/process/next_tick.js:63:19)

```

If it's unclear in the second screenshot, you can see here what it shows.

---

<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:** [March 5, 2020, 1:06pm UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/9 "2020-03-05T13:06:10Z")

</div>

Hard to know. May be increase the heap allocated to elasticsearch? You are using only 1gb. May be 2gb would help.

---

<div class="post-metadata">

**Author:** ![cravinder489](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cravinder489/32/62858_2.png) [@cravinder489](https://discuss.elastic.co/u/cravinder489)\
**Post date:** [March 6, 2020, 5:10am UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/11 "2020-03-06T05:10:34Z")

</div>

I updated the heap size to 2 GB, still the problem isn't solved.

---

<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:** [March 6, 2020, 7:15am UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/12 "2020-03-06T07:15:07Z")

</div>

What is the error message? What are elasticsearch logs?

Please don't post images of text as they are hard to read, may not display correctly for everyone, and are not searchable.

Instead, paste the text and format it with `</>` icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

---

<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:** [March 6, 2020, 7:40am UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/13 "2020-03-06T07:40:05Z")

</div>

How large are your documents? How much space do they take up on disk? Are you using patent-child or nested documents? How large is the synonyms file?

---

<div class="post-metadata">

**Author:** ![cravinder489](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cravinder489/32/62858_2.png) [@cravinder489](https://discuss.elastic.co/u/cravinder489)\
**Post date:** [March 6, 2020, 8:42am UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/14 "2020-03-06T08:42:17Z")

</div>

I don't know the exact size of my documents, but they contain 8 to 24 fields (I have 4 indices, so different for each index), and data stored in those fields are of type string.

Also, yes I'm using parent-child relationships is one of my index. And it is only when I insert data in my this index when it throws Circuit\_break\_exception which says "Data too large".

My Synonym file is 7527 kb in size.

---

<div class="post-metadata">

**Author:** ![cravinder489](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cravinder489/32/62858_2.png) [@cravinder489](https://discuss.elastic.co/u/cravinder489)\
**Post date:** [March 7, 2020, 2:45pm UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/15 "2020-03-07T14:45:31Z")

</div>

Please reply what should i do??

---

<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:** [March 7, 2020, 4:33pm UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/16 "2020-03-07T16:33:12Z")

</div>

Read [this](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and specifically the "Also be patient" part.

It's fine to answer on your own thread after 2 or 3 days (not including weekends) if you don't have an answer.

---

<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:** [March 7, 2020, 5:04pm UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/17 "2020-03-07T17:04:34Z")

</div>

And please reply to the question I also asked. Thanks

---

<div class="post-metadata">

**Author:** ![cravinder489](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cravinder489/32/62858_2.png) [@cravinder489](https://discuss.elastic.co/u/cravinder489)\
**Post date:** [March 7, 2020, 5:25pm UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/18 "2020-03-07T17:25:14Z")

</div>

I deeply regret being impatient. I apologize for that David.

Here are my elastic search logs:

> <https://gist.github.com/cravinder-c/c968cf6612cec6255f105a4208112b0a>

And this is what I get at my cmd where I initialized kibana server:

```
log [09:38:18.661] [info][listening] Server running at http://localhost:5601
error [11:08:06.495] [circuit_breaking_exception] [parent] Data too large, data for [<http_request>] would be [994882004/948.7mb], which is larger than the limit of [986061209/940.3mb], real usage: [994880832/948.7mb], new bytes reserved: [1172/1.1kb], with { bytes_wanted=994882004 & bytes_limit=986061209 & durability="PERMANENT" } :: {"path":"/_msearch","query":{"rest_total_hits_as_int":"true","ignore_throttled":"true"},"body":"{\"index\":\"idxquesanswer\",\"ignore_unavailable\":true,\"preference\":1583406382581}\n{\"version\":true,\"size\":500,\"sort\":[{\"_score\":{\"order\":\"desc\"}}],\"_source\":{\"excludes\":[]},\"stored_fields\":[\"*\"],\"script_fields\":{},\"docvalue_fields\":[{\"field\":\"creationDate\",\"format\":\"date_time\"}],\"query\":{\"bool\":{\"must\":[],\"filter\":[{\"bool\":{\"should\":[{\"match\":{\"body\":\"deadlines\"}}],\"minimum_should_match\":1}}],\"should\":[],\"must_not\":[]}},\"highlight\":{\"pre_tags\":[\"@kibana-highlighted-field@\"],\"post_tags\":[\"@/kibana-highlighted-field@\"],\"fields\":{\"*\":{}},\"fragment_size\":2147483647},\"timeout\":\"30000ms\"}\n","statusCode":429,"response":"{\"error\":{\"root_cause\":[{\"type\":\"circuit_breaking_exception\",\"reason\":\"[parent] Data too large, data for [<http_request>] would be [994882004/948.7mb], which is larger than the limit of [986061209/940.3mb], real usage: [994880832/948.7mb], new bytes reserved: [1172/1.1kb]\",\"bytes_wanted\":994882004,\"bytes_limit\":986061209,\"durability\":\"PERMANENT\"}],\"type\":\"circuit_breaking_exception\",\"reason\":\"[parent] Data too large, data for [<http_request>] would be [994882004/948.7mb], which is larger than the limit of [986061209/940.3mb], real usage: [994880832/948.7mb], new bytes reserved: [1172/1.1kb]\",\"bytes_wanted\":994882004,\"bytes_limit\":986061209,\"durability\":\"PERMANENT\"},\"status\":429}"}
at respond (C:\Users\Ravinder\Desktop\chatbot\kibana-7.1.1-windows-x86_64\node_modules\elasticsearch\src\lib\transport.js:308:15)
at checkRespForFailure (C:\Users\Ravinder\Desktop\chatbot\kibana-7.1.1-windows-x86_64\node_modules\elasticsearch\src\lib\transport.js:267:7)
at HttpConnector.<anonymous> (C:\Users\Ravinder\Desktop\chatbot\kibana-7.1.1-windows-x86_64\node_modules\elasticsearch\src\lib\connectors\http.js:166:7)
at IncomingMessage.wrapper (C:\Users\Ravinder\Desktop\chatbot\kibana-7.1.1-windows-x86_64\node_modules\elasticsearch\node_modules\lodash\lodash.js:4935:19)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1103:12)
at process._tickCallback (internal/process/next_tick.js:63:19)

```

Also as you instructed earlier, I updated my heap size to 2 GB, But still the problem I'm facing remains unsolved.

---

<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:** [March 7, 2020, 5:58pm UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/19 "2020-03-07T17:58:03Z")

</div>

The logs report that you still have 1gb of heap.  
Check the installation guide on how to configure the heap and until the logs show you have 2gb, it's useless to run the same tests.

---

<div class="post-metadata">

**Author:** ![cravinder489](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cravinder489/32/62858_2.png) [@cravinder489](https://discuss.elastic.co/u/cravinder489)\
**Post date:** [March 8, 2020, 7:19am UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/20 "2020-03-08T07:19:01Z")

</div>

Thanks David  
Yes the heap size was not updated earlier.  
Now i updated it and the problem i was facing has been solved.

---

<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:** [April 5, 2020, 7:19am UTC](https://discuss.elastic.co/t/kibana-working-very-slow-and-showing-errors-randomly/222238/21 "2020-04-05T07:19:04Z")

</div>

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