-
Notifications
You must be signed in to change notification settings - Fork 2.5k
qwen --resume 子进程内存持续增长,最终 OOM #4624
Copy link
Copy link
Closed
Labels
category/performancePerformance and optimizationPerformance and optimizationscope/memory-usageMemory consumptionMemory consumptionscope/session-managementSession state and persistenceSession state and persistencestatus/needs-triageIssue needs to be triaged and labeledIssue needs to be triaged and labeledtype/bugSomething isn't working as expectedSomething isn't working as expected
Metadata
Metadata
Assignees
Labels
category/performancePerformance and optimizationPerformance and optimizationscope/memory-usageMemory consumptionMemory consumptionscope/session-managementSession state and persistenceSession state and persistencestatus/needs-triageIssue needs to be triaged and labeledIssue needs to be triaged and labeledtype/bugSomething isn't working as expectedSomething isn't working as expected
Type
Fields
Give feedbackNo fields configured for issues without a type.
What happened?
使用 qwen --resume 启动后,主进程 fork 的子进程内存占用不断上升。执行几次常规操作(如生成代码、解释脚本)后,内存就会增加几百 MB,且永远不会释放。长时间运行后进程会因内存耗尽而崩溃。似乎是会话的各种记录,工具调用的结果一直存储在内存中,没有随上下文压缩释放。
What did you expect to happen?
多次操作后,内存应该保持稳定,不会持续增长。会话记录和工具调用结果应该能被正常清理或压缩。原始的数据重要部分持久存储。
Client information
Client Information
Run
qwento enter the interactive CLI, then run the/aboutcommand.Login information
API Config
Anything else we need to know?