Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

pm2 崩溃后怎么重启启动之前的node进程

pm2 崩溃后怎么重启启动之前的node进程

查看pm2日志发现

Committing semi space failed. Allocation failed - process out of memory

有什么办法解决吗


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

设置超过内存上限重启,好像就好了
pm2 start app.js --max-memory-restart 200M


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...