openclaw - 💡(How to fix) Fix [OOM Bug] Gateway crashes with heap OOM every 1-2 days - session pruning not working

Official PRs (…)
ON THIS PAGE

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…

Error Message

Gateway crashes with "Ineffective mark-compacts near heap limit" OOM error every 1-2 days. 3rd occurrence (2026-05-26, 05-27, 05-29).

Root Cause

Root Causes

Fix Action

Fix / Workaround

Workaround Applied

  1. Deleted 1,634 stale files (181 MB freed)
  2. Reduced cron frequencies
  3. Created weekly prune cron
RAW_BUFFERClick to expand / collapse

Bug Description

Gateway crashes with "Ineffective mark-compacts near heap limit" OOM error every 1-2 days. 3rd occurrence (2026-05-26, 05-27, 05-29).

Environment

  • OpenClaw: 2026.5.22
  • Node.js: 24.14.0
  • OS: Windows_NT

Memory Evidence

old_space grows from 3.05GB to 3.80GB in 90 minutes with near-zero GC recovery.

Root Causes

Bug 1: session.maintenance.pruneAfter is a no-op

Config has pruneAfter: "7d" but NO automatic task enforces this. 9,292 session files found with 757 older than 7 days.

Bug 2: session-daily-summary feedback loop

Triggered 9 times in 1 hour instead of 1 time every 2 hours.

Workaround Applied

  1. Deleted 1,634 stale files (181 MB freed)
  2. Reduced cron frequencies
  3. Created weekly prune cron

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

openclaw - 💡(How to fix) Fix [OOM Bug] Gateway crashes with heap OOM every 1-2 days - session pruning not working