node-oom-heapdump 3.5.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@ jobs:
|
|
11
11
|
runs-on: ${{ matrix.os }}
|
12
12
|
strategy:
|
13
13
|
matrix:
|
14
|
-
node-version: [18.x, 20.x, 22.x]
|
14
|
+
node-version: [18.x, 20.x, 22.x, 24.x]
|
15
15
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
16
16
|
steps:
|
17
17
|
- uses: actions/checkout@v2
|
@@ -43,7 +43,7 @@ jobs:
|
|
43
43
|
runs-on: ubuntu-latest
|
44
44
|
strategy:
|
45
45
|
matrix:
|
46
|
-
node-version: [18, 20, 22]
|
46
|
+
node-version: [18, 20, 22, 24]
|
47
47
|
container: node:${{ matrix.node-version }}-alpine3.20
|
48
48
|
steps:
|
49
49
|
- uses: actions/checkout@v2
|
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
@@ -5,13 +5,23 @@ Node module which will create a V8 heap snapshot right before an "Out of Memory"
|
|
5
5
|
|
6
6
|
It can also create heapdumps and CPU profiles on request like 'v8-profiler', but does this off-process so it doesn't interfere with execution of the main process.
|
7
7
|
|
8
|
-
Tested on Node.js 10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x, 17.x, 18.x, 20.x and
|
8
|
+
Tested on Node.js 10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x, 17.x, 18.x, 20.x, 22.x and 24.x.
|
9
9
|
No support for Node.js < 10.x at the moment in version 3.0.0, use version 2.2.0 for if needed.
|
10
10
|
|
11
11
|
Also comes with prebuilt binaries (hosted on Github releases), thanks to Stuart Miller (https://github.com/spmiller).
|
12
12
|
From 3.1.0, prebuilt binaries are only shipped for Node.js 16.x and upwards.
|
13
13
|
From 3.2.3, prebuilt binaries are only shipped for Node.js 18.x and upwards.
|
14
14
|
|
15
|
+
## Node 22.x
|
16
|
+
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`.
|
17
|
+
More information: https://github.com/nodejs/node/issues/50711#issuecomment-2149559816
|
18
|
+
|
19
|
+
```
|
20
|
+
node --heap-snapshot-on-oom index.js
|
21
|
+
```
|
22
|
+
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`.
|
23
|
+
The only disadvantage i encountered is that the filename of the heapdump file does not include a process ID, just the timestamp.
|
24
|
+
|
15
25
|
## Node.js 14.18.x
|
16
26
|
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.
|
17
27
|
One can use the `--heapsnapshot-near-heap-limit` Node.js CLI option as an alternative.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "node-oom-heapdump",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.7.0",
|
4
4
|
"description": "Create a V8 heap snapshot when an \"Out of Memory\" error occurs, or create a heap snapshot or CPU profile on request.",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -38,14 +38,14 @@
|
|
38
38
|
},
|
39
39
|
"homepage": "https://github.com/blueconic/node-oom-heapdump#readme",
|
40
40
|
"devDependencies": {
|
41
|
-
"
|
42
|
-
"bindings": "^1.5.0",
|
43
|
-
"eslint-config-google": "^0.14.0",
|
44
|
-
"nan": "^2.22.0"
|
41
|
+
"eslint-config-google": "^0.14.0"
|
45
42
|
},
|
46
43
|
"dependencies": {
|
47
|
-
"
|
44
|
+
"@mapbox/node-pre-gyp": "2.0.0",
|
45
|
+
"bindings": "^1.5.0",
|
46
|
+
"chrome-remote-interface": "^0.33.3",
|
47
|
+
"nan": "^2.22.2",
|
48
48
|
"require-main-filename": "^2.0.0",
|
49
|
-
"ws": "^8.18.
|
49
|
+
"ws": "^8.18.2"
|
50
50
|
}
|
51
51
|
}
|