Skip to content

Commit 65aa98b

Browse files
authored
--gc-interval is allocation based and not time based (#52)
node --v8-options ... --gc-interval (garbage collect after <n> allocations) type: int default: --gc-interval=-1 Signed-off-by: Stan Wiechers <[email protected]>
1 parent aa132e3 commit 65aa98b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pages/diagnostics/memory/understanding-and-tuning-memory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ For example, in a real-time application like a stock trading platform, you may w
124124
node --gc-interval=100 app.js
125125
```
126126

127-
This setting forces V8 to attempt garbage collection every 100 ms. You may need to adjust this interval for specific use cases, but be cautious: setting the interval too low can cause performance degradation due to excessive garbage collection cycles.
127+
This setting forces V8 to attempt garbage collection every 100 allocations. You may need to adjust this interval for specific use cases, but be cautious: setting the interval too low can cause performance degradation due to excessive garbage collection cycles.
128128

129129
### `--expose-gc`
130130

0 commit comments

Comments
 (0)