Skip to main content
Process.constrainedMemory - node__process.d.ts - Node documentation
method Process.constrainedMemory
Unstable

Usage in Deno

```typescript import { type Process } from "node:node__process.d.ts"; ```
Process.constrainedMemory(): number
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, `0` is returned. See [`uv_get_constrained_memory`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_get_constrained_memory) for more information.

Return Type

number