N
N
niakrisn2011-09-10 23:12:57
MySQL
niakrisn, 2011-09-10 23:12:57

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

1 answer(s)
F
Fedor Indutny, 2011-09-11
@donnerjack13589

Can I please have the node.js code here gist.github.com/ ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question