faastjs.commonoptions.childprocessmemorymb.md

April 11, 2023 ยท View on GitHub

faastjs > CommonOptions > childProcessMemoryMb

CommonOptions.childProcessMemoryMb property

When childProcess is true, the child process will be spawned with the value of this property as the setting for --max-old-space-size.

Signature:

childProcessMemoryMb?: number;

Remarks

This is useful if a function requires the node process to limit its memory so that another spawned process (e.g. a browser instance) can use the rest.