a year ago
Hi, how can I add more memory so this bug doesnt appear as often? <--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 0xaea8e8 node::Abort() [node]
2: 0x9ad387 [node]
3: 0xd019e0 v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, bool) [node]
4: 0xd01dbb v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, bool) [node]
5: 0xef9485 [node]
6: 0xf0f7e9 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
7: 0xee9b2a v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
8: 0xeeac44 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
9: 0xec934b v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [node]
10: 0xec17f4 v8::internal::FactoryBase::NewRawTwoByteString(int, v8::internal::AllocationType) [node]
11: 0x11d1285 v8::internal::String::SlowFlatten(v8::internal::Isolate*, v8::internal::Handle, v8::internal::AllocationType) [node]
12: 0xd0ed48 v8::String::Utf8Length(v8::Isolate*) const [node]
13: 0xbf9bd6 node::StringBytes::Size(v8::Isolate*, v8::Local, node::encoding) [node]
14: 0xbf3b45 int node::StreamBase::WriteString<(node::encoding)1>(v8::FunctionCallbackInfo const&) [node]
7 Replies
a year ago
try setting a service variable - NODE_OPTIONS=--max-old-space-size=4096
a year ago
try increasing the max old space size
or do you mean like what the guy above said? I already tried but still gives same error
a year ago
yeah, what do you have it set to now?
