# Interface ResourceLimits

Resource limits for sandboxed execution.

interface ResourceLimits {
maxMemoryBytes?: number;
maxCpuTimeMs?: number;
maxProcesses?: number;
maxOutputBytes?: number;
maxWallTimeMs?: number;
}

- Defined in packages/nexus-agents/src/security/sandbox/sandbox-types.ts:38

##### Index

### Properties

maxMemoryBytes?
maxCpuTimeMs?
maxProcesses?
maxOutputBytes?
maxWallTimeMs?

## Properties

### `Optional` `Readonly` maxMemoryBytes

maxMemoryBytes?: number

Maximum memory in bytes (default: 512MB).

- Defined in packages/nexus-agents/src/security/sandbox/sandbox-types.ts:40

### `Optional` `Readonly` maxCpuTimeMs

maxCpuTimeMs?: number

Maximum CPU time in milliseconds.

- Defined in packages/nexus-agents/src/security/sandbox/sandbox-types.ts:42

### `Optional` `Readonly` maxProcesses

maxProcesses?: number

Maximum number of child processes.

- Defined in packages/nexus-agents/src/security/sandbox/sandbox-types.ts:44

### `Optional` `Readonly` maxOutputBytes

maxOutputBytes?: number

Maximum output buffer size in bytes.

- Defined in packages/nexus-agents/src/security/sandbox/sandbox-types.ts:46

### `Optional` `Readonly` maxWallTimeMs

maxWallTimeMs?: number

Maximum execution time in milliseconds.

- Defined in packages/nexus-agents/src/security/sandbox/sandbox-types.ts:48