process.constrainedMemory()


稳定性: 1 - 实验性

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

🌐 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.

有关更多信息,请参阅 uv_get_constrained_memory

🌐 See uv_get_constrained_memory for more information.