Magus
Magus

Reputation: 15104

How to find why my nodejs code can't stop?

I run a nodejs code but this code never stop and i can't find out why.

I use express and i close the server correctly with server.close(error => ...);. I use a MQTT client and i'm pretty i close it correctly too.

Is there a way to find and list actives threads ? And find what thread is blocking ?

Upvotes: 0

Views: 37

Answers (1)

Ashish Modi
Ashish Modi

Reputation: 7770

why-is-node-running is what you are looking for. Hope this helps.

Upvotes: 1

Related Questions