Closed bitcoinvsalts closed 6 years ago
Have the same issue ?
@manuel-sejourne Do you also see the Killed
message in the logs? Can you post the complete logs? Which operating system and version are you using?
yes I saw "killed". What is this ?
This usually happens if OOM killer (https://linux-mm.org/OOM_Killer) ends a
process due to RAM shortage.
Can you post the output of free -m
before running the build.
I would suggest to have at least 512M RAM available when building the node.
Manuel Séjourné notifications@github.com schrieb am Mi., 11. Apr. 2018, 23:54:
[image: img_20180411_181019] https://user-images.githubusercontent.com/1440791/38645186-7403eae2-3de3-11e8-8848-1cbb229ecd0d.jpg
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nimiq-network/core/issues/295#issuecomment-380607935, or mute the thread https://github.com/notifications/unsubscribe-auth/ARGCJRPV8mzWZTL5nXtwQ7LiOdIgjdcjks5tnnt3gaJpZM4RPwKp .
Ok I will try this. I test with yarn and Is is ok
You can limit Node's heap space so the Linux OOM killer never kicks in.
node --max-old-space-size=512 node_modules/gulp/bin/gulp.js build
(The yarn build
step of the README with max 512MB RAM)
But sometimes 512MB is still not enough, Node will throw an OOM exception.
Restart your system and try again. It worked for me.
It is because of RAM shortage. Stop few running processes and try again. This worked for me
try restart my server, resolved it, thanks for helpful information. and there is some infomation helpful https://github.com/nestjs/typescript-starter/commit/7f2dde2d6c5335306ec559195fb0e634edd5c314 good luck!
I was hitting this issue with a Docker image (Docker desktop is very conservative about memory by default)
I just upped the resource limit, but if you are limited by VPS size or some other constraint you might also try:
NODE_OPTIONS=--optimize_for_size npm ci
This helped me https://stackoverflow.com/a/65533397/12073621
any idea why?