openclaw - 💡(How to fix) Fix CPU 100% stuck in ArrayMap/OrderedHashSet::Rehash — gateway infinite loop

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…

Fix Action

Workaround

pkill -9 -f "openclaw.*gateway"
launchctl bootout gui/$(id -u)/ai.openclaw.gateway

Code Example

Builtins_ArrayMap
  -> OrderedHashSet::Rehash
    -> Object::GetSimpleHash
      -> SetPrototypeAdd

---

"channels": { "feishu": {"enabled": false}, "openclaw-weixin": {"enabled": false}, "telegram": {"enabled": false} },
"plugins": { "entries": { "all": {"enabled": false} } }

---

gateway: ready
heartbeat: started
startup model warmup timed out after 5000ms; continuing without waiting
cron: started

---

pkill -9 -f "openclaw.*gateway"
launchctl bootout gui/$(id -u)/ai.openclaw.gateway
RAW_BUFFERClick to expand / collapse

Environment

  • OS: macOS 12.7.6 (Intel)
  • Node.js: v24.14.0
  • OpenClaw: 2026.5.22
  • Install: npm global

Problem

The openclaw gateway process consumes 100%+ CPU within seconds of starting, even with ALL channels and plugins disabled.

Evidence

1. CPU Sample (macOS sample command)

The process is stuck in a tight loop:

Builtins_ArrayMap
  -> OrderedHashSet::Rehash
    -> Object::GetSimpleHash
      -> SetPrototypeAdd

656 out of 1387 samples in Builtins_ArrayMap — an infinite or extremely long-running hash table operation.

2. All channels AND plugins disabled — CPU still 126%

"channels": { "feishu": {"enabled": false}, "openclaw-weixin": {"enabled": false}, "telegram": {"enabled": false} },
"plugins": { "entries": { "all": {"enabled": false} } }

CPU remains 126.6%. The issue is in the core gateway code, not in any channel or plugin.

3. API connectivity is fine

  • curl https://api.apifree.ai/agent/v1/models → 200 OK in 1.6s
  • curl https://open.feishu.cn/... → 200 OK in 0.08s
  • No proxy interference (system proxy disabled)

4. Startup log shows normal start then spike

gateway: ready
heartbeat: started
startup model warmup timed out after 5000ms; continuing without waiting
cron: started

After this, CPU goes to 100% and stays there indefinitely.

Reproduction Steps

  1. npm install -g [email protected]
  2. openclaw gateway --port 18789
  3. Wait 15 seconds
  4. ps aux | grep openclaw — CPU 100%+

Workaround

pkill -9 -f "openclaw.*gateway"
launchctl bootout gui/$(id -u)/ai.openclaw.gateway

Suspected Cause

V8 engine stuck in an infinite ArrayMap + OrderedHashSet::Rehash loop, likely in the dedup system, session management, or cron startup code. The hash table rehashing pattern suggests a data structure that keeps growing or is rebuilt repeatedly in a tight loop.

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