diff --git a/doc/api/cli.md b/doc/api/cli.md index a2861024659af2..09792ad126311a 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1117,6 +1117,20 @@ added: v18.0.0 Configures the test runner to only execute top level tests that have the `only` option set. +### `--thread-max-old-space-size` + + + +Sets the max memory size of V8's old memory section for the main thread (in +megabytes). As memory consumption approaches the limit, V8 will spend more time +on garbage collection in an effort to free unused memory. + +Unlike [`--max-old-space-size`][], this option doesn't affect any additional +[worker threads][]. To configure the old space size for worker threads, pass in +an appropriate [`resourceLimits`][] to their constructor. + ### `--throw-deprecation`