OpenCode memory leak monitor & zombie process reclaimer with system tray UI
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
opencode_mem_guard-0.3.3.tar.gz
(47.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opencode_mem_guard-0.3.3.tar.gz.
File metadata
- Download URL: opencode_mem_guard-0.3.3.tar.gz
- Upload date:
- Size: 47.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cf72a974895b6dd4ee9ad43e9268ec8e50aafaffbbdc7ccea1985be6db539d6
|
|
| MD5 |
d41a7ee76df41146115c29f1a9be70cd
|
|
| BLAKE2b-256 |
d30ff913b63fbafb4b0acc985a1d5054a9c2d7d16498dda7056680928005f537
|
File details
Details for the file opencode_mem_guard-0.3.3-py3-none-any.whl.
File metadata
- Download URL: opencode_mem_guard-0.3.3-py3-none-any.whl
- Upload date:
- Size: 53.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1a3e1c2897857c9abcdc95f4f132e1c0811a6b2eb9dbab26c292d885dfedd97
|
|
| MD5 |
6d2c81fcec2c51494d264cc38cac1c33
|
|
| BLAKE2b-256 |
78f5440708177aea1efe86bac98bf9f6e4a59b3b0ec62b4f6b0ad4f249cae791
|