展示HN:Oxmgr – 一个用Rust编写的轻量级PM2替代品
Oxmgr 是一个开源的进程管理器,支持 Linux、macOS 和 Windows 操作系统。它与语言无关(支持 Node.js、Python、Go 及任何可执行文件),使用声明式的 oxfile.toml 配置,并具备幂等的 `oxmgr apply` 功能。
在 Linux 上与 PM2 进行基准测试(在 GitHub Actions 的 Ubuntu 环境中,每次推送自动执行):
- 崩溃恢复速度快 42 倍(3.7 毫秒对比 157 毫秒)
- 在 100 个进程下内存占用低 21 倍(6.8MB 对比 145MB)
- 启动整个集群速度快 7.5 倍(773 毫秒对比 5.82 秒)
- 单个进程启动速度快 47 倍(3.9 毫秒对比 184 毫秒)
基准测试结果可重复 — 脚本已在代码库中提供。
GitHub: [https://github.com/Vladimir-Urik/OxMgr](https://github.com/Vladimir-Urik/OxMgr)
基准测试: [https://oxmgr.empellio.com/benchmark](https://oxmgr.empellio.com/benchmark)
查看原文
Oxmgr is an open-source process manager for Linux, macOS, and Windows.
Language-agnostic (Node.js, Python, Go, any executable), declarative
oxfile.toml config with idempotent `oxmgr apply`.<p>Benchmarked against PM2 on Linux (GitHub Actions Ubuntu, automated on every push):
- 42x faster crash recovery (3.7ms vs 157ms)
- 21x lower memory at 100 processes (6.8MB vs 145MB)
- 7.5x faster fleet start (773ms vs 5.82s)
- 47x faster single process start (3.9ms vs 184ms)<p>Benchmarks are reproducible — script is in the repo.<p>GitHub: <a href="https://github.com/Vladimir-Urik/OxMgr" rel="nofollow">https://github.com/Vladimir-Urik/OxMgr</a>
Benchmarks: <a href="https://oxmgr.empellio.com/benchmark" rel="nofollow">https://oxmgr.empellio.com/benchmark</a>