Skip to main content
ResourceLimits - node__worker_threads.d.ts - Node documentation
interface ResourceLimits

Usage in Deno

```typescript import { type ResourceLimits } from "node:node__worker_threads.d.ts"; ```

Properties

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.