I am doing some work with node on shared environments with limited resources and I would like to know if there's a way to reduce the number of threads (workers?) that node spawns for each of its instances.For example, just running a node shell yields 11 threads, on an environment with a limit of 30 processes, there can only be a couple of node instances running.``` $ node & [1] 12939$ ps u | grep nodeUSER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND checkoh 12939 0.6 0.4 605256 31924 pts/0 Sl+ 12:13 0:00 node$ ps Hu | grep node USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND checkoh 12939 0.1 0.4 605256 31924 pts/0 Sl+ 12:13 0:00 node checkoh 12939 0.0 0.4 605256 31924 pts/0 Sl+ 12:13 0:00 node checkoh 12939 0.0 0.4 605256 31924 pts/0 Sl+ 12:13 0:00 node checkoh 12939 0.0 0.4 605256 31924 pts/0 Sl+ 12:13 0:00 node checkoh 12939 0.0 0.4 605256 31924 pts/0 Sl+ 12:13 0:00 node checkoh 12939 0.0 0.4 605256 31924 pts/0 Sl+ 12:13 0:00 node checkoh 12939 0.0 0.4 605256 31924 pts/0 Sl+ 12:13 0:00 node checkoh 12939 0.0 0.4 605256 31924 pts/0 Sl+ 12:13 0:00 node checkoh 12939 0.0 0.4 605256 31924 pts/0 Sl+ 12:13 0:00 node checkoh 12939 0.0 0.4 605256 31924 pts/0 Sl+ 12:13 0:00 node checkoh 12939 0.0 0.4 605256 31924 pts/0 Sl+ 12:13 0:00 node$ ps -T | grep node PID SPID TTY TIME CMD 12939 12939 pts/0 00:00:00 node 12939 12941 pts/0 00:00:00 node 12939 12942 pts/0 00:00:00 node 12939 12943 pts/0 00:00:00 node 12939 12944 pts/0 00:00:00 node 12939 12945 pts/0 00:00:00 node 12939 12946 pts/0 00:00:00 node```
Submitted December 02, 2018 at 06:27PM by checkoh
No comments:
Post a Comment