You can use process._getActiveHandles()
and process._getActiveRequests()
See this discussion in node.js mailing list.
update: there is a good package for this – https://github.com/mafintosh/why-is-node-running
More Related Contents:
- Node.js Best Practice Exception Handling
- Can an AWS Lambda function call another
- How can I specify the required Node.js version in package.json?
- In Mongoose, how do I sort by date? (node.js)
- mongoError: Topology was destroyed
- NodeJS write base64 image-file
- nodejs – How to promisify http.request? reject got called two times
- First Heroku deploy failed `error code=H10`
- error: no template named ‘remove_cv_t’ in namespace ‘std’; did you mean ‘remove_cv’?
- NodeJS / Express: what is “app.use”?
- What’s the difference between process.cwd() vs __dirname?
- how to release localhost from Error: listen EADDRINUSE
- How to set limit for array size in Mongoose schema
- SyntaxError: Use of const in strict mode?
- How to read from stdin line by line in Node
- Passing route control with optional parameter after root in express?
- Understanding Node.js modules: multiple requires return the same object?
- Why am I getting “Error: Resolution method is overspecified”?
- How to get user id using jwt token
- Webpack 4 “size exceeds the recommended limit (244 KiB)”
- log all queries that mongoose fire in the application
- Combine two OR-queries with AND in Mongoose
- How can I force external links from browser-window to open in a default browser from Electron?
- Route.get() requires callback functions but got a “object Undefined”
- multiple worker/web processes on a single heroku app
- SendGrid API Key is not working. “The provided authorization grant is invalid, expired or revoked”
- Mongoose Schema Error: “Cast to string failed for value” when pushing object to empty array
- Error at connecting to MongoDb Atlas Server
- How can I retrieve a user’s public IP address via Amazon API Gateway + Lambda (node)
- How do I render an EJS template file in Node.js?