返回目录
其他 待识别

dsh-flash-mem-mon

tcgbp/dsh-flash-mem-mon

该仓库暂未提供项目说明。

Stars
0
Forks
0
Issues
0
更新
2 天前

PROJECT TOPICS

项目标签

PROJECT README

README

dsh-flash-mem-mon

Memory monitor provider for dock-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 dock-flash >=1.6.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

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

CLASSIFICATION EVIDENCE

分类依据

项目类型待识别
功能分类其他
规则置信度低

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。