Friday 2 June 2017

NodeJS generates too many defunct processes

We have a NodeJS application deployed with forever. We don't know why, but this solution is generating too many defunct processes. In some cases, we need to restart manually the application because this situation collapses our server. We'are logging now the PID and timestamp to investigate the reasons, but I'm not confident that we're going to get something with this.

Has anyone this problem? What type of things do we need to check in our NodeJS application to remove this issue? I'm completely stuck and I don't know which type of things can generate this defunct processes. Our code is really simple, with JS promises, WS request, React, ...

If anyone needs some code (like package.json or whatever file) or more info, please just tell me.

Thanks!



via Pablo D

No comments:

Post a Comment