hi guys
i am getting this error when building frappe assets, which indicates memory shortage (which is 2 GB) i dont know why as 2 GB should be more than suffecient for memory usage, and tried free -m command and i still have 1 GB free of ram, please help, here is the output
<— Last few GCs —>
[2053:0x3821070] 38361 ms: Scavenge 642.7 (741.9) → 634.6 (743.9) MB, 19.2 / 0.0 ms allocation failure
[2053:0x3821070] 38412 ms: Scavenge 643.3 (743.9) → 638.7 (751.9) MB, 40.0 / 0.0 ms allocation failure
[2053:0x3821070] 38910 ms: Scavenge 652.7 (754.0) → 648.3 (759.0) MB, 35.9 / 0.0 ms allocation failure
[2053:0x3821070] 39016 ms: Scavenge 660.0 (761.8) → 654.8 (768.8) MB, 42.9 / 0.0 ms allocation failure
<— JS stacktrace —>
Cannot get stack trace in GC.
FATAL ERROR: NewSpace::Rebalance Allocation failed - process out of memory
1: node::Abort() [/usr/bin/node]
2: 0x8cd49c [/usr/bin/node]
3: v8::Utils::ReportOOMFailure(char const*, bool) [/usr/bin/node]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/bin/node]
5: 0xa6813b [/usr/bin/node]
6: v8::internal::MarkCompactCollector::Evacuate() [/usr/bin/node]
7: v8::internal::MarkCompactCollector::CollectGarbage() [/usr/bin/node]
8: v8::internal::Heap::MarkCompact() [/usr/bin/node]
9: v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/bin/node]
10: v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node]
11: v8::internal::NewUninitializedFixedArray(int) [/usr/bin/node]
12: 0xd84b1c [/usr/bin/node]
13: 0xd9c3f5 [/usr/bin/node]
14: v8::internal::JSObject::AddDataElement(v8::internal::Handlev8::internal::JSObject, unsigned int, v8::internal::Handlev8::internal::Object, v8::internal::PropertyAttributes, v8::internal::Object::ShouldThrow) [/usr/bin/node]
15: v8::internal::Object::AddDataProperty(v8::internal::LookupIterator*, v8::internal::Handlev8::internal::Object, v8::internal::PropertyAttributes, v8::internal::Object::ShouldThrow, v8::internal::Object::StoreFromKeyed) [/usr/bin/node]
16: v8::internal::Object::SetProperty(v8::internal::LookupIterator*, v8::internal::Handlev8::internal::Object, v8::internal::LanguageMode, v8::internal::Object::StoreFromKeyed) [/usr/bin/node]
17: v8::internal::Runtime_SetProperty(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/bin/node]
18: 0x161fbfb042fd
Aborted
error Command failed with exit code 134.
info Visit yarn run | Yarn for documentation about this command.
Thank you