Skip to content
Wasm resource limits

Wasm resource limits

The Host enforces resource limits for each server App installation and each wake. The Instance admin configures the ceilings. These limits protect the Host from runaway or overloaded Apps; they are separate from account storage quotas and the client worker lifecycle.

Enforcement

Resource Host policy
Memory Terminate the App if it exceeds its memory limit
CPU Throttle use first; terminate the App if it exceeds wall-time limits or hangs
Concurrent wakes Queue or reject excess work when concurrency limits are reached
Logs Apply rate and size limits; see logging

The Host should provide enough observability for admins to identify which App installation is consuming resources or exceeding its limits. Disk usage is handled separately by storage quotas.

Server and browser limits

The server Host can use Wasmtime memory limiters, fuel, and epoch interruption to enforce strict limits. Browser environments do not provide portable per-worker resource meters. The Shell can apply policy and terminate a worker, but cannot promise the same measurement or enforcement precision. This difference is intentional: server-side limits should not be weakened to match browser constraints.

See the browser worker limits research and the client worker lifecycle.