nondanee / UnblockNeteaseMusic

Revive unavailable songs for Netease Cloud Music
MIT License
17.4k stars 2.51k forks source link

挂在服务器上过久内存爆炸了 #809

Open onewhitethreee opened 2 years ago

onewhitethreee commented 2 years ago

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory 1: 0xa24ed0 node::Abort() [node /www/Unlock-netease-cloud-music-master/app.js] 2: 0x966115 node::FatalError(char const, char const) [node /www/Unlock-netease-cloud-music-master/app.js] 3: 0xb9acde v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, bool) [node /www/Unlock-netease-cloud-music-master/app.js] 4: 0xb9b057 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, bool) [node /www/Unlock-netease-cloud-music-master/app.js] 5: 0xd56ea5 [node /www/Unlock-netease-cloud-music-master/app.js] 6: 0xd57a2f [node /www/Unlock-netease-cloud-music-master/app.js] 7: 0xd65abb v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node /www/Unlock-netease-cloud-music-master/app.js] 8: 0xd6967c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node /www/Unlock-netease-cloud-music-master/app.js] 9: 0xd37d2b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node /www/Unlock-netease-cloud-music-master/app.js] 10: 0x108035f v8::internal::RuntimeAllocateInYoungGeneration(int, unsigned long, v8::internal::Isolate) [node /www/Unlock-netease-cloud-music-master/app.js] 11: 0x1427079 [node /www/Unlock-netease-cloud-music-master/app.js] 一觉起来发现内存都爆到2gb了,本来的我的服务器也只有2gb::><::

foamzou commented 2 years ago

可以用 pm2 的 max_memory_restart 或者 crontab 每小时重启一次