Skip to content

MemoryHandlerOptions

Nodepod API


Nodepod API / src / MemoryHandlerOptions

Defined in: src/memory-handler.ts:95

optional budgetMB?: number

Defined in: src/memory-handler.ts:97

Soft per-pod memory budget in MB. Default: 400.


optional heapWarnThresholdMB?: number

Defined in: src/memory-handler.ts:113

Heap usage threshold in MB to trigger pressure callbacks. Default: 350


optional manifestCacheSize?: number

Defined in: src/memory-handler.ts:105

LRU capacity for package.json manifest cache. Default: 256


optional maxProcessOutputBytes?: number

Defined in: src/memory-handler.ts:117

Max process stdout/stderr accumulation in bytes. Default: 4194304 (4MB)


optional moduleSoftCacheSize?: number

Defined in: src/memory-handler.ts:111

Max modules before trimming node_modules entries. Default: 512


optional monitorIntervalMs?: number

Defined in: src/memory-handler.ts:115

Monitoring poll interval in ms. Default: 30000


optional pathNormCacheSize?: number

Defined in: src/memory-handler.ts:99

LRU capacity for path normalization cache. Default: 2048


optional resolveCacheSize?: number

Defined in: src/memory-handler.ts:103

LRU capacity for module resolve cache. Default: 4096


optional statCacheSize?: number

Defined in: src/memory-handler.ts:101

LRU capacity for stat result cache. Default: 512


optional transformCacheMaxBytes?: number

Defined in: src/memory-handler.ts:109

Approximate UTF-16 byte budget for transformed source. Default: 24 MiB


optional transformCacheSize?: number

Defined in: src/memory-handler.ts:107

LRU capacity for source transform cache. Default: 512