# OpenClaw Gateway high CPU: diagnose event-loop lag and disconnects

Canonical: https://cwyn.com/pages/openclaw-guide-gateway-high-cpu.html
Last updated: 2026-11-23T07:48:51-05:00

OpenClaw operations guide

Short answer. Distinguish host CPU, Gateway process activity, and event-loop lag, then compare readiness and response time under the same OpenClaw workload. Use this when the Gateway process stays running but chat, status calls, or WebSocket connections stall. Start with a short timeline of the delay.

Last updated November 23, 2026 · Published November 17, 2026

By CWYN · Reviewed November 17, 2026 · Check your installed version’s help before running these commands

Use this when the Gateway process stays running but chat, status calls, or WebSocket connections stall. Start with a short timeline of the delay. Include whether it followed startup, loading an older conversation, or a normal workload.

## 1. Check liveness, readiness, and a slow request

Capture `openclaw gateway status --deep` from the intended profile when your installed CLI supports it. The [Gateway health reference](https://docs.openclaw.ai/gateway/health) documents `/healthz` for HTTP liveness and `/readyz` for readiness. Use your existing local or authorized access path. Record the readiness reason, the timed-out operation, and when each happened. A listener can answer a probe while a client operation remains slow.

## 2. Read CPU and event-loop delay together

Record the Gateway process CPU and event-loop delay from the same observation window. A `cpuCoreRatio` of 1 is one fully occupied logical CPU core during that window. The host CPU reading covers the whole machine, including local model servers and tool subprocesses. Compare the Gateway reading with event-loop delay and the host process list. High process CPU with low delay points to a different investigation from a matching rise in delay and local RPC timeouts.

## 3. Compare idle, fresh-session, and affected-session behavior

Use a quiet period and one harmless, similarly sized request in a fresh session and in the affected workflow when safe. Compare readiness, elapsed time and redacted log timestamps. Keep provider, model, and probe path fixed. If only the client path is slow, compare it with a local probe. If only old history stalls, inspect the recorded history or store phase before changing provider timeouts. [Issue #157545](https://github.com/openclaw/openclaw/issues/157545) shows phase timings that helped describe an older startup stall.

## 4. Change one confirmed contributor

Match any supported change to the phase you measured. For example, compare behavior with an owner-approved recurring workload paused if the stall lines up with that workload. If a named plugin is implicated, reproduce the workload in staging and review its dependencies before changing its configuration there. Preserve a baseline and record how to restore the prior setting.

## 5. Verify under the workload that triggered the stall

Repeat the same readiness check and bounded operation, including the busy interval that produced the original symptom. Record normal and worst observed response time, event-loop delay and whether the client still disconnects. If a restart only clears the idle sample, leave the incident open and retain the relevant phase and timestamps for the owner.

[Get your free CWYN Score](https://cwyn.com/score) to choose your next setup improvement.

## Related guides

- [OpenClaw not replying: a production reliability checklist](https://cwyn.com/pages/openclaw-guide-production-reliability.html)
- [OpenClaw session storage growing? Preview cleanup](https://cwyn.com/pages/openclaw-guide-session-storage-growth.html)
- [OpenClaw Gateway RAM keeps growing: measure memory pressure](https://cwyn.com/pages/openclaw-guide-gateway-memory-growth.html)
- [Set up OpenTelemetry metrics for OpenClaw](https://cwyn.com/pages/openclaw-guide-first-opentelemetry-export.html)

## Next steps

- [All 135 OpenClaw guides](https://cwyn.com/guides/openclaw/)
- [OpenClaw setup walkthrough](https://cwyn.com/setup/openclaw/)
- [CWYN Score](https://cwyn.com/pages/score.html)
- [OpenClaw Complete Setup Pack ($14.95)](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html)

### Plan a rollback for the Gateway test

The [OpenClaw Complete Setup Pack ($14.95)](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html) is an optional paid kit with a rollback checklist for restoring your previous setup after you test a change under load.
Kit details as of Nov 18, 2026

OpenClaw Complete Setup Pack $14.95

Start an OpenClaw workspace with editable instructions, local Gateway and tool presets, and checklists for pairing, memory, costs and rollback.
