By running sails with forever or calling it directly with node app.js --prod
, according to htop
i have a 4 child process that look like clones under it.
If i leave out the --prod
argument, i get an equal quantity of grunt processes.
As you can see they all have the same amount of memory used, different PID and different TIME+ readings.
I'm pretty sure sails its not auto clustering, or is it? This is a single core machine (virtual), so i have no idea what are those processes, or is it an error in htop?
According to this question htop-showing-multiple-java-processes-with-different-pids?rq=1
htop shows threads as different process, but isn't node single threaded? If those are threads where are they comming from?