Unable to Run Multiple Node Child Processes without Choking on DigitalOcean

后端 未结 2 1526
野的像风
野的像风 2020-12-06 15:43

I\'ve been struggling to run multiple instances of Puppeteer on DigitalOcean for quite some time with little luck. I\'m able to run ~5 concurrently using tools like puppetee

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-06 15:50

    Most probably you're running out of memory, 5 puppeteer processes are a lot for a 1GB VM.

    You can run

    grep -i 'killed process' /var/log/messages
    

    to confirm that the OOM killer terminated your processes.

提交回复
热议问题