Unitech / pm2

Node.js Production Process Manager with a built-in Load Balancer.
https://pm2.keymetrics.io/docs/usage/quick-start/
Other
41.44k stars 2.62k forks source link

pm2 deploy utilize 100% cpu and get crashed. #4484 #3673

Closed bhiseweb closed 4 years ago

bhiseweb commented 6 years ago

I am deploying my react app on ec2 instance using pm2. I created app using create-react-app.

whenever I run pm2 deploy ecosystem.config.js production sever get crashed and I received error fork: Cannot allocate memory pm2-deploy

Then I am unable to ssh on server. also it doesn't create all required file in build folder. It shows only 3 files in build folder favicon.ico, favicon.png and manifest.json

when I build in my local with production env build create properly.

Any help is appreciated thanks in advance.

bhiseweb commented 6 years ago

Getting error

FATAL ERROR: Committing semi space failed. Allocation failed - process out of memory PM2 | 1: node::Abort() [PM2 v3.0.0: God Daemon (/home/deploy/.pm2)] PM2 | 2: 0x11dd81c [PM2 v3.0.0: God Daemon (/home/deploy/.pm2)] PM2 | 3: v8::Utils::ReportOOMFailure(char const, bool) [PM2 v3.0.0: God Daemon (/home/deploy/.pm2)] PM2 | 4: v8::internal::V8::FatalProcessOutOfMemory(char const, bool) [PM2 v3.0.0: God Daemon (/home/deploy/.pm2)] PM2 | 5: v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [PM2 v3.0.0: God Daemon (/home/deploy/.pm2)] PM2 | 6: v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [PM2 v3.0.0: God Daemon (/home/deploy/.pm2)] PM2 | 7: v8::internal::Factory::NewRawOneByteString(int, v8::internal::PretenureFlag) [PM2 v3.0.0: God Daemon (/home/deploy/.pm2)] PM2 | 8: v8::internal::Handle v8::internal::JsonParser::ScanJsonString() [PM2 v3.0.0: God Daemon (/home/deploy/.pm2)] PM2 | 9: v8::internal::JsonParser::ParseJsonObject() [PM2 v3.0.0: God Daemon (/home/deploy/.pm2)] PM2 | 10: v8::internal::JsonParser::ParseJsonValue() [PM2 v3.0.0: God Daemon (/home/deploy/.pm2)] PM2 | 11: v8::internal::JsonParser::ParseJsonObject() [PM2 v3.0.0: God Daemon (/home/deploy/.pm2)] PM2 | 12: v8::internal::JsonParser::ParseJsonValue() [PM2 v3.0.0: God Daemon (/home/deploy/.pm2)] PM2 | 13: v8::internal::JsonParser::ParseJsonObject() [PM2 v3.0.0: God Daemon (/home/deploy/.pm2)] PM2 | 14: v8::internal::JsonParser::ParseJsonValue() [PM2 v3.0.0: God Daemon (/home/deploy/.pm2)] PM2 | 15: v8::internal::JsonParser::ParseJson() [PM2 v3.0.0: God Daemon (/home/deploy/.pm2)] PM2 | 16: v8::internal::Builtin_JsonParse(int, v8::internal::Object*, v8::internal::Isolate) [PM2 v3.0.0: God Daemon (/home/deploy/.pm2)]

khmelevskii commented 6 years ago

+1

thehappydinoa commented 4 years ago

I just encountered this same error, has there been no feedback?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ReagentX commented 4 years ago

Randomly encountering this error as well.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.