DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

tcgbp /

tcgbp/dsh-flash-mem-mon

已验证

这个插件还没有填写简介。

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: master@b2851cc4

dsh-flash-mem-mon

Memory monitor provider for dsh-flash — registers a host-memory-alert provider (RSS absolute thresholds, RSS growth rate, Major GC frequency) via ctx.get('dockFlashAlerts') and exposes /memory-trend for trend sparklines.

Installation

dsh plugin --profile <profile> add dsh-flash-mem-mon

Requires dsh-flash >=1.0.0 (provides dockFlashAlerts and quickControl services).

Configuration

All settings are live-editable (volatile) and take effect immediately:

Setting Default Description
memThresholdInfo 256 MB RSS info threshold
memThresholdWarning 512 MB RSS warning threshold
memThresholdError 1024 MB RSS error threshold
memThresholdCritical 1536 MB RSS critical threshold
memPollBase 30000 ms Base polling interval
memPollMin 2000 ms Minimum polling interval
gcThresholdInfo 2 /min Major GC info threshold
gcThresholdWarning 5 /min Major GC warning threshold
gcThresholdError 10 /min Major GC error threshold
memGrowthAlertPerMin 1 MB/min RSS growth-rate (linear-regression slope) alert threshold, applied with trend = up

Architecture

This is a companion plugin following the same two-half pattern as dsh-flash-net-mon:

  • Host half (src/index.ts → tsc → dist/index.js): Memory trend ring buffer, GC observer, /memory-trend HTTP route
  • Client half (lib/client.js): Alert provider, enable toggle, config modal with sparkline, i18n

License

Apache-2.0

—/ 5

暂无评分

已验证 DSH bundle

Commit b2851cc4fa40

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于