Answer the question
In order to leave comments, you need to log in
Node js and spawn?
Hello, there is a udp server on node js which every time we receive a udp datagram we spawn a process running a shell script. The script is very simple, it executes a mysql query using the standard mysql client, it is fast.
The script fulfills with each request but leaves the zombie process behind, over time, these zombies will finally die, even before the udp server daemon on node js ends, but the number of zombies jumps almost to the limit of the installed OS (6164 processes).
As far as I understand, the essence of the problem is that node js either does not process the SIGCHLD signal from the spawned child, or processes it very slowly.
Please tell me how to solve the problem?
PS For the first time I am writing a server application on node js.
Answer the question
In order to leave comments, you need to log in
Can I please have the node.js code here gist.github.com/ ?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question