abernix/meteord

Out of memory

Closed this issue · 4 comments

Hi, trying to build with, any ideas pls?

Using FROM abernix/meteord:node-4.8.4-onbuild

 docker build --build-arg TOOL_NODE_FLAGS="--max-old-space-size=2048"  -t buzzybuzz/buzzy-main .
Even with METEOR_ALLOW_SUPERUSER or --allow-superuser, permissions in your app
directory will be incorrect if you ever attempt to perform any Meteor tasks as
a normal user. If you need to fix your permissions, run the following command
from the root of your project:

  sudo chown -Rh <username> .meteor/local


<--- Last few GCs --->

  499469 ms: Scavenge 1390.6 (1455.1) -> 1390.6 (1455.1) MB, 9.1 / 0 ms (+ 3.0 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
  500804 ms: Mark-sweep 1390.6 (1455.1) -> 1384.8 (1455.1) MB, 1334.6 / 0 ms (+ 4.4 ms in 2 steps since start of marking, biggest step 3.0 ms) [last resort gc].
  502122 ms: Mark-sweep 1384.8 (1455.1) -> 1390.6 (1455.1) MB, 1318.4 / 0 ms [last resort gc].


<--- JS stacktrace --->

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

Security context: 0x20ec6d637399 <JS Object>
    1: addMapping(aka SourceMapGenerator_addMapping) [/root/.meteor/packages/meteor-tool/.1.5.2_2.p3bfqz.djlxk++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/source-map/lib/source-map-generator.js:~94] [pc=0x4a15ac40098] (this=0x2734ea06be69 <a SourceMapGenerator with map 0x2feb4686ddf9>,aArgs=0x194be7e4ae31 <an Object with map 0x2feb4686df01>)
    2: /*...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
/opt/meteord/lib/build_app.sh: line 21:   378 Aborted                 meteor build --allow-superuser --directory $BUNDLE_DIR --server=http://localhost:3000
The command '/bin/sh -c bash $METEORD_DIR/lib/build_app.sh' returned a non-zero code: 134

BTW @abernix when I upgraded my project to Meteor 1.6 and ran with abernix/meteord:node-8.9.0-onbuild it build fine... the issue is with the breaking changes from moving to Node 4 - 8, I am not sure we can upgrade from Meteor 1.5.2 to Meteor 1.6 easily as it seems like AWS SDK riddles with new Buffer calls... I think this will break our code, right?

So anyway to get it working with Meteor 1.5.2 pls?

The crash you're seeing is likely due to Meteor's standard-minifier-js. Try removing it and building to confirm. If it works, try adding abernix:standard-minifier-js back and see if the problem goes away.

If it does, the problem should also go away with Meteor 1.6, which includes the same changes as abernix:standard-minifier-js.

Closing as idle!