Repository navigation
Replies: 3 comments
|
I expanded the handbook Session heap guide with a renderer-vs-Host diagnosis for this report: https://github.com/sandbaseai/deepseek-harness-handbook/blob/main/docs/en/operations/session-heap-growth.md — it separates ChatView DOM growth from Session retention, lists process-level evidence, and treats virtualization as a UI contract rather than deleting durable events. |
|
Follow-up: v0.5.297 turns this report into an English canonical + Chinese reviewed runbook. It separates WebContent renderer retention from Host memory, preserves durable Sessions, and defines a virtualization acceptance contract: https://github.com/sandbaseai/deepseek-harness-handbook/releases/tag/v0.5.297 |
|
Desktop field report: #10837 — macOS 26.7.1 / 16 GB, DSH desktop 0.2.1-rc.2. A single 8.5 h session with 5 subagent sessions reached a 34.59 GB app-group value; macOS showed the low-memory panel and the renderer was killed. This is consistent with the full ChatView projection / renderer growth described here, though I do not have a retained heap snapshot. Report is sanitized; no user data. |
Uh oh!
There was an error while loading. Please reload this page.
Bug 报告:Web 会话视图全量渲染、无虚拟化,渲染进程内存随会话长度线性增长
摘要
dsh web的会话视图(ChatView)把整条会话的全部事件渲染为常驻 DOM,没有虚拟化/窗口化机制。会话在磁盘上只有 KB~MB 级(压缩 jsonl),浏览器渲染进程 RSS 却随会话增长线性攀升,长会话可达数 GB,最终拖垮整机内存(32GB 机型被单个标签吃到 6.6GB+)。服务端内存平稳、页面重载后立即归零并随使用再次爬升——问题在客户端渲染层,不是服务端泄漏。环境
实测数据(本机 8-23 → 8-28)
为不被内存拖垮,部署了一个守卫脚本:每 5 分钟检查与 :3080 保持连接的 WebContent 渲染进程,RSS > 4.5GB 即 SIGTERM(Safari 自动重载页面,会话数据在服务端持久化、无丢失):
根因定位(0.1.1-rc.2 源码)
@deepseek-ai/dsh-client-ui-conversation(bundle 约 448KB):整条会话 events 全量映射为 DOM;包内检索不到任何 virtualization / windowing / overscan 实现相关但不相同的已知讨论
#676(子代理目录菜单内存泄漏)、#1316(mux 事件流无背压卡顿)、#1550(服务端冷加载物化大日志)——均非本问题的「客户端全量渲染无虚拟化」根因。
复现步骤
127.0.0.1:3080进入该会话并滚动期望
本地缓解(供其他用户参考)
守卫脚本与击杀日志可按需提供。
All reactions