Skip to content

运行出现OOM错误 #4134

Description

@master-genius

What happened?

Node.JS版本:25.9.0

在之前qwen-code版本以及其他类似工具使用上都是此版本,没有出现过问题,可以排除不是node.js的问题。

qwen-code版本:0.15.11

随着正常任务进行,会很容易出现OOM错误:

<--- Last few GCs --->

[309501:0x1984d000] 47681791 ms: Scavenge (during sweeping) 4072.1 (4086.8) -> 4067.7 (4089.0) MB, pooled: 0.0 MB, 22.18 / 0.10 ms (average mu = 0.349, current mu = 0.333) allocation failure; 
[309501:0x1984d000] 47682465 ms: Mark-Compact (reduce) 4074.3 (4089.0) -> 4057.7 (4073.8) MB, pooled: 0.0 MB, 22.50 / 3.05 ms (+ 508.9 ms in 104 steps since start of marking, biggest step 5.1 ms, walltime since start of marking 574 ms) (average mu = 0.355
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 0x90b25b node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/usr/local/mno/node-v25.9.0-linux-x64/bin/node]
 2: 0xb979ca  [/usr/local/mno/node-v25.9.0-linux-x64/bin/node]
 3: 0xdef715  [/usr/local/mno/node-v25.9.0-linux-x64/bin/node]
 4: 0xdf2e89  [/usr/local/mno/node-v25.9.0-linux-x64/bin/node]
 5: 0xe03498  [/usr/local/mno/node-v25.9.0-linux-x64/bin/node]
 6: 0xe02ddf  [/usr/local/mno/node-v25.9.0-linux-x64/bin/node]
 7: 0x17965a7  [/usr/local/mno/node-v25.9.0-linux-x64/bin/node]
 8: 0xded261  [/usr/local/mno/node-v25.9.0-linux-x64/bin/node]
 9: 0xd44f1b  [/usr/local/mno/node-v25.9.0-linux-x64/bin/node]
10: 0x1269dae  [/usr/local/mno/node-v25.9.0-linux-x64/bin/node]
11: 0x7fccd5e3aeb6 

大模型上下文并没有使用多少,只有20%多,大模型支持的上下文是256K。

What did you expect to happen?

预期应该流畅运行。

Client information

Client Information

Run qwen to enter the interactive CLI, then run the /about command.

$ qwen /about
╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
  │                                                                                                  │
  │ 状态                                                                                             │
  │                                                                                                  │
  │ Qwen Code                         0.15.11 (782403d71)                                            │
  │ 运行环境                          Node.js v25.9.0 / npm 11.12.1                                  │
  │ 操作系统                          linux x64 (6.12.86+deb13-amd64)                                │
  │                                                                                                  │
  │ 认证                              API Key - openai                                               │
  │ Base URL                          https://api.siliconflow.cn/v1                                  │
  │ 模型                              Pro/moonshotai/Kimi-K2.6                                       │
  │ 快速模型                          Pro/moonshotai/Kimi-K2.6                                       │
  │ 会话 ID                           b32fd417-2676-425e-a02c-50851fe36c8b                           │
  │ 沙箱                              no sandbox                                                     │
  │ 代理                              no proxy                                                       │
  │ 内存使用                          317.0 MB                                                       │
  │                                                                                                  │
  ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions