A
A
Alexander Solovey2017-03-07 22:33:32
Node.js
Alexander Solovey, 2017-03-07 22:33:32

Explain to a beginner why when you start one application, 10 processes hang in the system?

Launched one application (Express.js framework is connected). The application consists of three routers.
HTOP shows as many as 10 node processes.
Version Node 7.7.1
I also noticed that when starting the simplest application node - 6 processes hang in the system.
Please explain to a newbie.e538bad92ab74ae4b3cc030b1762ea83.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
rustler2000, 2017-03-07
@rustler2000

It's threads. 52210 parent process. Some of them jit someone GC. V8 is a big thing.

X
xutesayor, 2017-03-08
@xutesayor

Just launched a demo application from the off site of the node. Everything is fine, only 1 process hangs.
It seems to me that you have an 8-core processor and the application is running through the Cluster module. In total, one main process + one process per core turned out.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question