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

Properties

maxYoungGenerationSizeMb?: number

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

maxOldGenerationSizeMb?: number

The maximum size of the main heap in MB.

codeRangeSizeMb?: number

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

stackSizeMb?: number

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

4