Memory requirements for building wave #706
-
What are memory requirements for building wave? Creating an optimized production build...
<--- Last few GCs --->
[61938:0x29937b0] 143287 ms: Scavenge 1374.8 (1420.9) -> 1374.5 (1421.4) MB, 2.7 / 0.0 ms (average mu = 0.154, current mu = 0.051) allocation failure
[61938:0x29937b0] 143673 ms: Mark-sweep 1375.2 (1421.4) -> 1373.9 (1420.9) MB, 384.5 / 0.0 ms (average mu = 0.128, current mu = 0.083) allocation failure scavenge might not succeed
[61938:0x29937b0] 143680 ms: Scavenge 1374.6 (1420.9) -> 1374.3 (1421.4) MB, 4.1 / 0.0 ms (average mu = 0.128, current mu = 0.083) allocation failure
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 0xd26a16dbf1d]
1: StubFrame [pc: 0xd26a16a0673]
Security context: 0x36cb6ec9e6c1 <JSObject>
2: /* anonymous */(aka /* anonymous */) [0x14254682201] [/home/vm/H2O.ai/wave/ui/node_modules/webpack-sources/lib/applySourceMap.js:~58] [pc=0xd26a34f149f](this=0x26fc01b826f1 <undefined>,chunk=0x0ecf1eb616f9 <String[2]: o[>,middleMapping=0x3ac07d4d8fb1 <Object map = 0x200e6590a081>)
3: walk(aka SourceNode_walk) [0...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0x8fb090 node::Abort() [node]
2: 0x8fb0dc [node]
3: 0xb0336e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
4: 0xb035a4 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
5: 0xef7602 [node]
6: 0xef7708 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [node]
7: 0xf037e2 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
8: 0xf04114 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
9: 0xf06d81 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [node]
10: 0xed69cb v8::internal::Factory::NewRawTwoByteString(int, v8::internal::PretenureFlag) [node]
11: 0x1020253 v8::internal::String::SlowFlatten(v8::internal::Handle<v8::internal::ConsString>, v8::internal::PretenureFlag) [node]
12: 0xb00d14 v8::internal::String::Flatten(v8::internal::Handle<v8::internal::String>, v8::internal::PretenureFlag) [node]
13: 0x10213be v8::internal::StringTable::LookupString(v8::internal::Isolate*, v8::internal::Handle<v8::internal::String>) [node]
14: 0x119a068 v8::internal::Runtime_HasProperty(int, v8::internal::Object**, v8::internal::Isolate*) [node]
15: 0xd26a16dbf1d
Aborted (core dumped)
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! wave-ui@0.1.0 build: `node scripts/build.js`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the wave-ui@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/vm/.npm/_logs/2021-03-29T13_08_44_301Z-debug.log
Makefile:15: recipe for target 'build' failed
make[1]: *** [build] Error 134
make[1]: Leaving directory '/home/vm/H2O.ai/wave/ui'
Makefile:25: recipe for target 'build-ui' failed
make: *** [build-ui] Error 2 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Never seen that before. Our Github Actions CI Ubuntu 18 has 7GB: Standard_DS2_v2. |
Beta Was this translation helpful? Give feedback.
-
I'm not familiar with that error but I can run a simple app on Wave using Ubuntu 20, 1GB memory, and 1 vCPU. |
Beta Was this translation helpful? Give feedback.
-
I saw this issue several times, and it happened for the Node.js version of 10. Try upgrading to at least 12. |
Beta Was this translation helpful? Give feedback.
I saw this issue several times, and it happened for the Node.js version of 10. Try upgrading to at least 12.