'FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
I have a little bug in my console. Every time I try to run my app it breaks.
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF7889B815F v8::internal::CodeObjectRegistry::~CodeObjectRegistry+114079
2: 00007FF7889454C6 DSA_meth_get_flags+65542
3: 00007FF78894637D node::OnFatalError+301
4: 00007FF78927BA0E v8::Isolate::ReportExternalAllocationLimitReached+94
5: 00007FF789265FED v8::SharedArrayBuffer::Externalize+781
6: 00007FF7891093BC v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1468
7: 00007FF7891064D4 v8::internal::Heap::CollectGarbage+4244
8: 00007FF7891036D6 v8::internal::Heap::AllocateExternalBackingStore+86
9: 00007FF78901D18D v8::internal::BackingStore::Allocate+205
10: 00007FF7892777FC v8::ArrayBuffer::NewBackingStore+124
11: 00007FF78896A1D9 node::Buffer::New+121
12: 00007FF788966BEB node::Buffer::Copy+1643
13: 00007FF78929DDEF v8::internal::SetupIsolateDelegate::SetupHeap+53823
14: 000001F7AD43B467
Solution 1:[1]
I have not a solid solution, but I want notice that from upgrade by angular 11 to 12, the our big application enterprise angular have got identical side effect of memory during changing of code . The crash heap error raise every two three change of code randomly.
I read that a possible solution is to change the option max_old_space_size with a value more high, ad example I setting 8198
export NODE_OPTIONS=--max_old_space_size=8198
Unluckly for me the problem remain, but maybe the investigation is to understand the options about developements debug system and to learn if there is a trick to fix this heap error during developing.
thanks in advance for any solutions, its appreciate
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Alessandro Modica |