Deoptimised the styling of pitch_presentation.js as it exceeds the max of 500KB

Hi,

I am getting below issue on starting kibana 7.9.1 on ubuntu(8GB RAM) machine and its stuck at this point.

[BABEL] Note: The code generator has deoptimised the styling of /export/home1/Elk_Setup/kibana-7.9.1-linux-x86_64/x-pack/plugins/canvas/server/templates/pitch_presentation.js as it exceeds the max of 500KB.

If I kill the process then getting below.

[37961:0x2f7e9a0] 670764 ms: Mark-sweep 948.1 (1267.5) -> 948.1 (1210.5) MB, 309.1 / 0.0 ms (average mu = 0.969, current mu = 0.000) last resort GC in old space requested
[37961:0x2f7e9a0] 671080 ms: Mark-sweep 948.1 (1210.5) -> 948.1 (1188.5) MB, 316.7 / 0.0 ms (average mu = 0.936, current mu = 0.000) last resort GC in old space requested

<--- JS stacktrace --->

==== JS stack trace =========================================

0: ExitFrame [pc: 0x329e6575be1d]

Security context: 0x3706bda9e6c1
1: byteLength(aka byteLength) [0x2090a87a669] [buffer.js:531] [bytecode=0xf776b5e59b9 offset=204](this=0x1c2bd9a826f1 ,string=0x27d5fc2fae29 <Very long string[310585346]>,encoding=0x3706bdabddf9 <String[4]: utf8>)
2: arguments adaptor frame: 3->2
3: fromString(aka fromString) [0x5c892a13379] [buffer.js:342] [bytecode=0xf776b5dfa59 offs...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: 0x8fb090 node::Abort() [./bin/../node/bin/node]
2: 0x8fb0dc [./bin/../node/bin/node]
3: 0xb033ae v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [./bin/../node/bin/node]
4: 0xb035e4 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [./bin/../node/bin/node]
5: 0xef7642 [./bin/../node/bin/node]
6: 0xf06e5f v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [./bin/../node/bin/node]
7: 0xed6a0b v8::internal::factory::NewRawTwoByteString(int, v8::internal::PretenureFlag) [./bin/../node/bin/node]
8: 0x1020293 v8::internal::String::SlowFlatten(v8::internal::Handlev8::internal::ConsString, v8::internal::PretenureFlag) [./bin/../node/bin/node]
9: 0xb00d54 v8::internal::String::Flatten(v8::internal::Handlev8::internal::String, v8::internal::PretenureFlag) [./bin/../node/bin/node]
10: 0xb0e720 v8::String::Utf8Length() const [./bin/../node/bin/node]
11: 0x9148f9 [./bin/../node/bin/node]
12: 0xb917ef [./bin/../node/bin/node]
13: 0xb92359 v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) [./bin/../node/bin/node]

Please suggest.

Regards
Ajay

Hey,

Node has a default max memory usage of less than 2GB on most machines. Can you try to increase Node's heap size when running kibana?

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