Skip to main content

OpenCode MemGuard

🛡️ OpenCode 内存泄漏监控与僵尸进程回收工具。

360 风格桌面悬浮球 + 系统托盘,实时监控 Node.js 进程内存,自动回收僵尸进程。

功能

  • 360 式悬浮球:实时显示 RAM 使用率,拖拽、边缘吸附、悬停展开详情
  • 系统托盘:右键菜单控制自动回收、开机自启、查看日志
  • 内存泄漏检测:滑动窗口线性回归,自动识别内存增长趋势
  • 僵尸进程回收:自动检测并终止空闲 node.exe,释放内存
  • 实时日志查看器:深色主题窗口,实时滚动显示监控日志
  • 开机自启:Windows 注册表自启动管理

系统要求

  • Windows 10/11
  • Python >= 3.10

安装

pip install opencode-mem-guard

使用

# 标准模式:悬浮球 + 托盘
opencode-mem-guard

# 后台运行(无控制台窗口,关终端不退出)
pythonw -m opencode_mem_guard

# 仅托盘模式
opencode-mem-guard --no-ball

# 试运行(不杀进程)
opencode-mem-guard --dry-run

参数

参数 说明
--no-ball 不显示悬浮球
--no-tray 不显示托盘图标
--no-reclaim 禁用自动回收
--dry-run 试运行模式
-i, --interval 采集间隔秒数,默认 5
--data-dir 数据目录,默认 ~/.opencode-mem-guard/data/

License

MIT

Metadata

Release files for opencode-mem-guard 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opencode-mem-guard 0.4.3
File Size Uploaded Provenance
opencode_mem_guard-0.4.3.tar.gz 92.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for opencode-mem-guard 0.4.3
File Interpreter ABI Platform
opencode_mem_guard-0.4.3-py3-none-any.whl Python 3 none any Details

Total release size: 190.7 kB

Release files / opencode_mem_guard-0.4.3.tar.gz

Download URL opencode_mem_guard-0.4.3.tar.gz
Size 92.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fc7a642668f004defb98fea62e9d6de9c86cb99c94ea68287e8327e002b876f3
BLAKE2b-256 checksum
How to use checksums
d5e258659bfeb5556a6f5c0918376bab8fdc1db29ad3129d35b34e3162902a85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release files / opencode_mem_guard-0.4.3-py3-none-any.whl

Download URL opencode_mem_guard-0.4.3-py3-none-any.whl
Size 97.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c20ee238f1590dd6fe97363a68865c84a264a3a3cef00eabc900e408f51a90d
BLAKE2b-256 checksum
How to use checksums
8ce3bfa03da7e6d35af383e461729628d2cead9e99472c93717f80546fff4f03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Security for opencode-mem-guard 0.4.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page