OpenClaw operations guide

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

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 · Published

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 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 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 to choose your next setup improvement.

Next steps

Plan a rollback for the Gateway test

The OpenClaw Complete Setup Pack ($14.95) 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