openclaw - 💡(How to fix) Fix Feishu plugin memory leak - OOM crash after 6-16 minutes

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…

Error Message

<--- Last few GCs ---> [32856:000001F1FAC14000] 394840 ms: Scavenge (interleaved) 4078.1 (4091.9) -> 4078.1 (4114.9) MB [32856:000001F1FAC14000] 395943 ms: Mark-Compact (reduce) 4093.1 (4114.9) -> 4092.8 (4099.7) MB

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

[19076:000002959F1EB000] 969777 ms: Mark-Compact (reduce) 4090.2 (4100.4) -> 4090.2 (4097.4) MB FATAL ERROR: Reached heap limit

Fix Action

Fix / Workaround

临时措施 / Workaround

Code Example

<--- Last few GCs --->
[32856:000001F1FAC14000] 394840 ms: Scavenge (interleaved) 4078.1 (4091.9) -> 4078.1 (4114.9) MB
[32856:000001F1FAC14000] 395943 ms: Mark-Compact (reduce) 4093.1 (4114.9) -> 4092.8 (4099.7) MB

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

[19076:000002959F1EB000] 969777 ms: Mark-Compact (reduce) 4090.2 (4100.4) -> 4090.2 (4097.4) MB
FATAL ERROR: Reached heap limit
RAW_BUFFERClick to expand / collapse

问题描述 / Description

飞书(Feishu/Lark)插件存在严重内存泄漏,运行约 6-16 分钟后 Node.js 堆内存达到上限(~4GB),触发 FATAL ERROR: Reached heap limit,进程崩溃。

The Feishu plugin has a severe memory leak. After running for 6-16 minutes, Node.js heap reaches its limit (~4GB) and crashes with "FATAL ERROR: Reached heap limit".

复现步骤 / Steps to Reproduce

  1. 配置飞书插件并启用
  2. 启动 OpenClaw gateway
  3. 在飞书中发送消息与 Agent 交互
  4. 观察内存持续增长,数分钟后崩溃

崩溃日志 / Crash Log

<--- Last few GCs --->
[32856:000001F1FAC14000] 394840 ms: Scavenge (interleaved) 4078.1 (4091.9) -> 4078.1 (4114.9) MB
[32856:000001F1FAC14000] 395943 ms: Mark-Compact (reduce) 4093.1 (4114.9) -> 4092.8 (4099.7) MB

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

[19076:000002959F1EB000] 969777 ms: Mark-Compact (reduce) 4090.2 (4100.4) -> 4090.2 (4097.4) MB
FATAL ERROR: Reached heap limit

环境 / Environment

  • OS: Windows 10.0.26200 (x64)
  • OpenClaw 版本: 2026.3.24
  • Node: v24.14.1 (portable bundled)
  • 飞书插件已启用,开启 typingIndicator 和 resolveSenderNames
  • 运行模式: gateway mode=local

临时措施 / Workaround

设置 NODE_OPTIONS=--max-old-space-size=8192 可暂时缓解,但内存泄漏仍在,只是延长了崩溃时间。

额外发现

  • HEARTBEAT.md 文件中被写入了二进制垃圾数据(JPEG/PNG/XLS等文件碎片)
  • 配置文件目录下产生了大量 clobbered 备份文件(千级别)

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 Feishu plugin memory leak - OOM crash after 6-16 minutes