# Interface ResourceLimits

interface ResourceLimits {
maxYoungGenerationSizeMb?: number;
maxOldGenerationSizeMb?: number;
codeRangeSizeMb?: number;
stackSizeMb?: number;
}

- Defined in node_modules/@types/node/worker_threads.d.ts:275

#####
Index

### Properties

maxYoungGenerationSizeMb?
maxOldGenerationSizeMb?
codeRangeSizeMb?
stackSizeMb?

##
Properties

### `Optional` maxYoungGenerationSizeMb

maxYoungGenerationSizeMb?: number

The maximum size of a heap space for recently created objects.

- Defined in node_modules/@types/node/worker_threads.d.ts:279

### `Optional` maxOldGenerationSizeMb

maxOldGenerationSizeMb?: number

The maximum size of the main heap in MB.

- Defined in node_modules/@types/node/worker_threads.d.ts:283

### `Optional` codeRangeSizeMb

codeRangeSizeMb?: number

The size of a pre-allocated memory range used for generated code.

- Defined in node_modules/@types/node/worker_threads.d.ts:287

### `Optional` stackSizeMb

stackSizeMb?: number

The default maximum stack size for the thread. Small values may lead to unusable Worker instances.

#### Default

    4

- Defined in node_modules/@types/node/worker_threads.d.ts:292