# Kibana down with Error saying out of memory

**URL:** https://discuss.elastic.co/t/kibana-down-with-error-saying-out-of-memory/197921
**Category:** Kibana
**Created:** [September 3, 2019, 5:38pm UTC](https://discuss.elastic.co/t/kibana-down-with-error-saying-out-of-memory/197921 "2019-09-03T17:38:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jasmineL](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@jasmineL](https://discuss.elastic.co/u/jasmineL)
#### Post date: [September 3, 2019, 5:38pm UTC](https://discuss.elastic.co/t/kibana-down-with-error-saying-out-of-memory/197921/1 "2019-09-03T17:38:41Z")

</div>

Hi,

I build Kibana 6.8 package from source file with basic license of x-pack and deployed to our servers. But I always get Out of memory error after running like every 3 days or 4.

```auto
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [/usr/share/kibana/bin/../node/bin/node]
 2: 0x109bf8c [/usr/share/kibana/bin/../node/bin/node]
 3: v8::Utils::ReportApiFailure(char const*, char const*) [/usr/share/kibana/bin/../node/bin/node]
 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/share/kibana/bin/../node/bin/node]
 5: v8::internal::Factory::NewCode(v8::internal::CodeDesc const&, unsigned int, v8::internal::Handle<v8::internal::Object>, bool, bool, int, bool) [/usr/share/kibana/bin/../node/bin/node]
 6: v8::internal::CodeGenerator::MakeCodeEpilogue(v8::internal::MacroAssembler*, v8::internal::CompilationInfo*) [/usr/share/kibana/bin/../node/bin/node]
 7: v8::internal::FullCodeGenerator::MakeCode(v8::internal::CompilationInfo*) [/usr/share/kibana/bin/../node/bin/node]
 8: 0xb4c51e [/usr/share/kibana/bin/../node/bin/node]
 9: 0xb4e900 [/usr/share/kibana/bin/../node/bin/node]
10: 0xb55fc6 [/usr/share/kibana/bin/../node/bin/node]
11: v8::internal::Compiler::Compile(v8::internal::Handle<v8::internal::JSFunction>, v8::internal::Compiler::ClearExceptionFlag) [/usr/share/kibana/bin/../node/bin/node]
12: v8::internal::Runtime_CompileLazy(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/share/kibana/bin/../node/bin/node]
13: 0x1580fcc060c7
Elasticsearch ERROR: 2019-08-06T23:08:42Z
  Error: Request error, retrying
  GET http://inkiru-es.prod.walmart.com/.kibana/doc/space%3Adefault => read ECONNRESET
      at Log.error (/usr/share/kibana/node_modules/elasticsearch/src/lib/log.js:226:56)
      at checkRespForFailure (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:259:18)
      at HttpConnector.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:164:7)
      at ClientRequest.wrapper (/usr/share/kibana/node_modules/elasticsearch/node_modules/lodash/lodash.js:4935:19)
      at ClientRequest.emit (events.js:189:13)
      at Socket.socketErrorListener (_http_client.js:392:9)
      at Socket.emit (events.js:189:13)
      at emitErrorNT (internal/streams/destroy.js:82:8)
      at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
      at process._tickCallback (internal/process/next_tick.js:63:19)

Elasticsearch ERROR: 2019-08-06T23:09:37Z
  Error: Request error, retrying
  GET http://inkiru-es.prod.walmart.com/.kibana/doc/space%3Adefault => read ECONNRESET
      at Log.error (/usr/share/kibana/node_modules/elasticsearch/src/lib/log.js:226:56)
      at checkRespForFailure (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:259:18)
      at HttpConnector.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:164:7)
      at ClientRequest.wrapper (/usr/share/kibana/node_modules/elasticsearch/node_modules/lodash/lodash.js:4935:19)
      at ClientRequest.emit (events.js:189:13)
      at Socket.socketErrorListener (_http_client.js:392:9)
      at Socket.emit (events.js:189:13)
      at emitErrorNT (internal/streams/destroy.js:82:8)
      at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
      at process._tickCallback (internal/process/next_tick.js:63:19)

```

Is there anything wrong with my build? Or should I add anything to start Kibana?

Thanks!

---

<div class="post-metadata">

### Author: ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)
#### Post date: [September 4, 2019, 8:05pm UTC](https://discuss.elastic.co/t/kibana-down-with-error-saying-out-of-memory/197921/2 "2019-09-04T20:05:09Z")

</div>

Hello Jasmine,

You could try some of the suggestions in [this related thread](https://discuss.elastic.co/t/kibana-6-5-0-javascript-heap-out-of-memory/157365) to increase the available memory.

Regards,  
Aaron

---

<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 2, 2019, 8:05pm UTC](https://discuss.elastic.co/t/kibana-down-with-error-saying-out-of-memory/197921/3 "2019-10-02T20:05:14Z")

</div>

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