interface ResourceLimits
Usage in Deno
import { type ResourceLimits } from "node:worker_threads";
optional
maxYoungGenerationSizeMb: number | undefined
The maximum size of a heap space for recently created objects.
optional
maxOldGenerationSizeMb: number | undefined
The maximum size of the main heap in MB.
optional
codeRangeSizeMb: number | undefined
The size of a pre-allocated memory range used for generated code.
optional
stackSizeMb: number | undefined
The default maximum stack size for the thread. Small values may lead to unusable Worker instances.