openclaw - 💡(How to fix) Fix v2026.4.29: idle gateway burns 14% CPU, causes Telegram timeouts and event loop delays [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#75759Fetched 2026-05-02 05:30:37
View on GitHub
Comments
2
Participants
3
Timeline
5
Reactions
5
Author
Timeline (top)
commented ×2cross-referenced ×2subscribed ×1

After upgrading from v2026.4.15 to v2026.4.29, the gateway burns 14% CPU constantly on its main event loop thread even when completely idle (zero active agent runs).

Root Cause

After upgrading from v2026.4.15 to v2026.4.29, the gateway burns 14% CPU constantly on its main event loop thread even when completely idle (zero active agent runs).

Code Example

ps -p <pid> -L -o pid,lwp,%cpu,stat,time,args | sort -k3 -rn | head -3
  PID   LWP %CPU STAT     TIME
 5349  5349 14.2 Rsl  00:09:47  (main event loop thread)
 5349  5355  0.4 Ssl  00:00:17  (worker thread)
RAW_BUFFERClick to expand / collapse

Description

After upgrading from v2026.4.15 to v2026.4.29, the gateway burns 14% CPU constantly on its main event loop thread even when completely idle (zero active agent runs).

Symptoms

  • Main thread (LWP == PID) consumes 14% CPU 24/7
  • Event loop delays spike to 7-9 seconds (logged as liveness warning: event_loop_delay)
  • Telegram fetch operations timeout with ETIMEDOUT (event loop too busy to service HTTP responses)
  • eventLoopUtilization hovers at 22-92%

Environment

  • OpenClaw v2026.4.29 (npm global install, upgraded from v2026.4.15)
  • Node 22.22.2
  • Ubuntu 24.04, 16GB RAM, ~10GB free
  • 5 agents configured (Cosmo, Snowden, Sirius, Delta, Gamma)
  • All agents idle during testing

Reproduction

  1. Install [email protected]
  2. Start gateway with 4-5 agents configured
  3. Wait for agents to finish startup
  4. Observe top/ps: main thread burns 14% CPU indefinitely with zero agent activity
  5. Observe journalctl: periodic liveness warnings and Telegram fetch timeouts

Downgrade fixes it

Reverting to [email protected] eliminates the CPU burning. The same agent config works with <1% idle CPU on v2026.4.15.

Thread analysis

ps -p <pid> -L -o pid,lwp,%cpu,stat,time,args | sort -k3 -rn | head -3
  PID   LWP %CPU STAT     TIME
 5349  5349 14.2 Rsl  00:09:47  (main event loop thread)
 5349  5355  0.4 Ssl  00:00:17  (worker thread)

The main event loop thread is in Runnable state (R) and accumulating CPU time at ~14%/sec steadily, suggesting a tight loop or excessive recurring work in the v2026.4.29 event loop.

extent analysis

TL;DR

Downgrade to [email protected] to immediately resolve the 14% CPU burn issue on the main event loop thread.

Guidance

  • The issue is likely caused by a change in the event loop implementation between v2026.4.15 and v2026.4.29, resulting in excessive recurring work.
  • Verify the CPU usage by running top or ps commands and observing the main thread's CPU consumption.
  • To mitigate the issue, consider reducing the number of agents configured or disabling non-essential features to reduce the event loop's workload.
  • Investigate the eventLoopUtilization metric to understand the event loop's behavior and identify potential bottlenecks.

Example

No code snippet is provided as the issue is related to a specific version of the openclaw package, and the root cause is not explicitly stated in the issue.

Notes

The provided information suggests a regression in the openclaw package between versions v2026.4.15 and v2026.4.29. Downgrading to the previous version resolves the issue, but it may not be a long-term solution.

Recommendation

Apply workaround: Downgrade to [email protected] to resolve the CPU burn issue, as it has been confirmed to work with the same agent configuration and resolves the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING