node-oom-heapdump
Advanced tools
Comparing version
@@ -1,4 +0,4 @@ | ||
16-12-2024 Paul Rütter | ||
- 3.5.0 | ||
- Move build time dependencies to devDependencies, as these are not required for running node-oom-heapdump | ||
12-05-2025 Paul Rütter | ||
- 3.6.0 | ||
- Upgrade dependencies | ||
@@ -5,0 +5,0 @@ 11-12-2024 Paul Rütter |
{ | ||
"name": "node-oom-heapdump", | ||
"version": "3.5.0", | ||
"version": "3.6.0", | ||
"description": "Create a V8 heap snapshot when an \"Out of Memory\" error occurs, or create a heap snapshot or CPU profile on request.", | ||
@@ -41,12 +41,12 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@mapbox/node-pre-gyp": "2.0.0-rc.0", | ||
"bindings": "^1.5.0", | ||
"eslint-config-google": "^0.14.0", | ||
"nan": "^2.22.0" | ||
"eslint-config-google": "^0.14.0" | ||
}, | ||
"dependencies": { | ||
"chrome-remote-interface": "^0.33.2", | ||
"@mapbox/node-pre-gyp": "2.0.0", | ||
"bindings": "^1.5.0", | ||
"chrome-remote-interface": "^0.33.3", | ||
"nan": "^2.22.2", | ||
"require-main-filename": "^2.0.0", | ||
"ws": "^8.18.0" | ||
"ws": "^8.18.2" | ||
} | ||
} |
@@ -15,2 +15,12 @@ [](https://github.com/blueconic/node-oom-heapdump/actions/workflows/publish-native-assets-to-github-releases.yml) | ||
## Node 22.x | ||
Since node 22.x, there is a new CLI flag for generating heapdumps. This one is supplied by V8 (not Node.js) and is more reliant and efficient in creating the heapdumps than Node.js' `--heapsnapshot-near-heap-limit`. | ||
More information: https://github.com/nodejs/node/issues/50711#issuecomment-2149559816 | ||
``` | ||
node --heap-snapshot-on-oom index.js | ||
``` | ||
Since node 22.x we had issues with no heapdumps being created in production sometimes (via `--heapsnapshot-near-heap-limit`), which did work when using V8's `--heap-snapshot-on-oom`. | ||
The only disadvantage i encountered is that the filename of the heapdump file does not include a process ID, just the timestamp. | ||
## Node.js 14.18.x | ||
@@ -17,0 +27,0 @@ https://github.com/nodejs/node/pull/33010 landed in Node.js 14.18.0, which makes this module no longer needed for heapdumps on out of memory. |
52137
1.15%1
-75%156
6.85%6
100%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
Updated