M
process.constrainedMemory
History
Added in: v19.6.0, v18.15.0
v19.6.0, v18.15.0
Introduced in: v0.10.0
v0.10.0
Change stability index for this feature from Experimental to Stable.
v24.0.0, v22.16.0
Aligned return value with
uv_get_constrained_memory.v22.0.0, v20.13.0
process.constrainedMemory(): number
Returns:
numberGets the amount of memory available to the process (in bytes) based on
limits imposed by the OS. If there is no such constraint, or the constraint
is unknown, 0 is returned.
See uv_get_constrained_memory for more
information.