SilentCicero / meteor-dapp-boilerplate

Boilerplate meteor dapp - starting point for meteor dapps using bootstrap
MIT License
137 stars 35 forks source link

Out of memory when using mocha #5

Open forgetso opened 8 years ago

forgetso commented 8 years ago

Hi,

Seems to be some memory issues when running mocha within my Vagrant Ubuntu

=> Started proxy.                             
=> Started MongoDB.                           
I20160412-15:54:48.009(0)? [velocity] mocha is starting a mirror at http://localhost:55345/.
I20160412-15:54:48.016(0)? [velocity] You can see the mirror logs at: tail -f /home/vagrant/DAPPS/meteor-dapp-boilerplate/app/.meteor/local/log/mocha.log
=> Started your app.                          

=> App running at: http://localhost:3000/     
FATAL ERROR: Evacuation Allocation failed - process out of memory
Aborted (core dumped)
vagrant@vagrant-ubuntu-trusty-64:~/DAPPS/meteor-dapp-boilerplate/app$ meteor
[[[[[ ~/DAPPS/meteor-dapp-boilerplate/app ]]]]]

=> Started proxy.                             
=> Started MongoDB.                           
=> Started your app.                                                               

=> App running at: http://localhost:3000/                                          
I20160412-16:27:57.288(0)? [velocity] mocha is starting a mirror at http://localhost:54118/.
I20160412-16:27:57.290(0)? [velocity] You can see the mirror logs at: tail -f /home/vagrant/DAPPS/meteor-dapp-boilerplate/app/.meteor/local/log/mocha.log
=> Exited from signal: SIGKILL                                                     
^C^Ceteor server restarted

dmsg output

[ 5475.370172] Out of memory: Kill process 2655 (node) score 620 or sacrifice child
[ 5475.374707] Killed process 2729 (node) total-vm:1027992kB, anon-rss:89324kB, file-rss:0kB
[ 6229.020823] type=1702 audit(1460479328.549:21): op=linkat ppid=3197 pid=3200 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=pts0 ses=2 comm="git" exe="/usr/lib/git-core/git" res=0
[ 6229.020836] type=1302 audit(1460479328.549:22): item=0 name="/home/vagrant/DAPPS/meteor-dapp-boilerplate/.git/objects/pack/tmp_pack_zsmPeg" inode=22724379 dev=00:19 mode=0100444 ouid=501 ogid=20 rdev=00:00 nametype=NORMAL
[ 6229.022043] type=1702 audit(1460479328.549:23): op=linkat ppid=3197 pid=3200 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=pts0 ses=2 comm="git" exe="/usr/lib/git-core/git" res=0
[ 6229.022055] type=1302 audit(1460479328.549:24): item=0 name="/home/vagrant/DAPPS/meteor-dapp-boilerplate/.git/objects/pack/tmp_idx_2Ziuhv" inode=22724382 dev=00:19 mode=0100444 ouid=501 ogid=20 rdev=00:00 nametype=NORMAL

Mocha Log

head -f /home/vagrant/DAPPS/meteor-dapp-boilerplate/app/.meteor/local/log/mocha.log
-bash: fork: Cannot allocate memory

How much RAM are you allowing your VM (assuming you're using one)?

SilentCicero commented 8 years ago

@forgetso wow, yeah, the mocha testing for Meteor has gone down hill over the past while. I may want to upgrade this to Meteor 1.3 to see if that helps.

I'll check back.