process.constrainedMemory()


稳定性: 1 - 实验

根据操作系统施加的限制获取进程可用的内存量(以字节为单位)。 如果没有这样的约束,或者约束未知,则返回 undefined

有关详细信息,请参阅 uv_get_constrained_memory

Stability: 1 - Experimental

Gets 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, undefined is returned.

See uv_get_constrained_memory for more information.