# Deoptimised the styling of pitch\_presentation.js as it exceeds the max of 500KB

**URL:** <https://discuss.elastic.co/t/deoptimised-the-styling-of-pitch-presentation-js-as-it-exceeds-the-max-of-500kb/249473>\
**Category:** Kibana\
**Created:** [September 22, 2020, 8:12am UTC](https://discuss.elastic.co/t/deoptimised-the-styling-of-pitch-presentation-js-as-it-exceeds-the-max-of-500kb/249473 "2020-09-22T08:12:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aksadvance](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@aksadvance](https://discuss.elastic.co/u/aksadvance)\
**Post date:** [September 22, 2020, 8:12am UTC](https://discuss.elastic.co/t/deoptimised-the-styling-of-pitch-presentation-js-as-it-exceeds-the-max-of-500kb/249473/1 "2020-09-22T08:12:20Z")

</div>

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:🏭: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

---

<div class="post-metadata">

**Author:** ![Bamieh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bamieh/32/38730_2.png) [@Bamieh](https://discuss.elastic.co/u/Bamieh)\
**Post date:** [September 22, 2020, 11:14am UTC](https://discuss.elastic.co/t/deoptimised-the-styling-of-pitch-presentation-js-as-it-exceeds-the-max-of-500kb/249473/2 "2020-09-22T11:14:57Z")

</div>

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?

---

<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 20, 2020, 11:15am UTC](https://discuss.elastic.co/t/deoptimised-the-styling-of-pitch-presentation-js-as-it-exceeds-the-max-of-500kb/249473/3 "2020-10-20T11:15:12Z")

</div>

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