openskope / skope-interface

The new SKOPE web portal interface.
https://www.openskope.org
4 stars 2 forks source link

Figure out why building is taking so much RAM and add back minifiers. #181

Closed Zodiase closed 6 years ago

Zodiase commented 6 years ago

Docker Hub Automated Build Restrictions

2 hours 2 GB RAM 1 CPU 30 GB Disk Space

2acf7dc50035c081c8c2fd7897f43b15dc8d639d removed the minifiers so building can complete without failing with the following error:

[0m
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory


<--- Last few GCs --->

[51:0x244cbd0]  1647192 ms: Mark-sweep 1388.3 (1639.1) -> 1388.3 (1639.1) MB, 4598.9 / 0.1 ms  allocation failure GC in old space requested
[51:0x244cbd0]  1652912 ms: Mark-sweep 1388.3 (1639.1) -> 1388.2 (1578.6) MB, 5720.4 / 0.1 ms  last resort GC in old space requested
[51:0x244cbd0]  1656561 ms: Mark-sweep 1388.2 (1578.6) -> 1388.2 (1560.1) MB, 3648.4 / 0.1 ms  last resort GC in old space requested

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x182d00725ee1 <JSObject>
    1: /* anonymous */ [/home/meteor/.meteor/packages/standard-minifier-js/.2.2.3.6bm4gi.mch5j++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/babylon/lib/index.js:~1748] [pc=0x11b357a66cd3](this=0x25d610dffd91 <Parser map = 0x264d9756dbd9>,type=0x3d3f9e7749e9 <TokenType map = 0x2c85df112321>,pos=0x245172a82311 <undefined>)
    2: arguments a...

 1: 
node::Abort() [/home/meteor/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]
 2: 
0x121a7ac [/home/meteor/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]
 3: 
v8::Utils::ReportOOMFailure(char const*, bool) [/home/meteor/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]
 4: 
v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/home/meteor/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]
 5: 
v8::internal::Factory::NewUninitializedFixedArray(int) [/home/meteor/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]
 6: 
0xe1c1b3
 [/home/meteor/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]
 7: v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [/home/meteor/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]
 8: 0x11b356e8463d

Aborted (core dumped)

Removing intermediate container 4666979d2ad6

The command '/bin/sh -c cd "${APP_DIR}/source"     && meteor npm install --production --unsafe-perm     && meteor build "${APP_DIR}" --directory --architecture os.linux.x86_64' returned a non-zero code: 134
Zodiase commented 6 years ago

With afbcaffc3b728f0cfb9f205c1c20c1b33d44e1f7, Meteor has been upgraded to 1.7 and the new minifier seems to be better. Still slow but at least it hasn't run out of memory so far.