mafintosh / mafintosh/why-is-node-running
Api call to stop analyzing to avoid running out of memory (memory leaks)
- Dominant language
- JavaScript
- Stars
- 1.9k
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Description
After I solved the problems with applications not finishing correctly I kept the the code for convenience if the problem arises again. I improved with a command line switch to do the analysis or not. I am using it as a dependency.
Recently I ran into memory problems and thanks to v8 memory dump and chrome I found the problem was whyisnoderunning. I had forgotten all about this code :-). After commenting out every reference I got rid of the memory problem.
If analzing could be stopped with an api call I could keep the dependency and keep my code.
And you should warn in the documentation and a printout when using whyisnoderunning that it is a memory hog and you risk running out of memory.
Thanks for a fantastic tool.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the existing command-line switch and the references to why-is-node-running described in the issue. Trace how analysis is enabled and determine where an API stop operation and the requested warning would fit; done means callers can stop analysis and the memory risk is documented and printed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100