--v8-pool-size=num


设置 V8 的线程池大小,用于分配后台作业。

如果设置为 0,则 Node.js 将根据对并行度的估计来选择合适大小的线程池。

并行度是指在给定的机器上可以同时进行的计算的数量。 一般情况下,它与 CPU 数量相同,但在 VM 或容器等环境中可能会有所不同。

Set V8's thread pool size which will be used to allocate background jobs.

If set to 0 then Node.js will choose an appropriate size of the thread pool based on an estimate of the amount of parallelism.

The amount of parallelism refers to the number of computations that can be carried out simultaneously in a given machine. In general, it's the same as the amount of CPUs, but it may diverge in environments such as VMs or containers.