┌─────────────────────────┬────┬──────┬───────┬────────┬─────────┬────────┬─────┬───────────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ watching │
├─────────────────────────┼────┼──────┼───────┼────────┼─────────┼────────┼─────┼───────────┼──────────┤
│ xxx │ 0 │ fork │ 29556 │ online │ 9 │ 7D │ 0% │ 83.0 MB │ disabled │
└─────────────────────────┴────┴──────┴───────┴────────┴─────────┴────────┴─────┴───────────┴──────────┘
Module activated
┌───────────────┬─────────┬────────────┬────────┬─────────┬─────┬──────────────┐
│ Module │ version │ target PID │ status │ restart │ cpu │ memory │
├───────────────┼─────────┼────────────┼────────┼─────────┼─────┼──────────────┤
│ pm2-logrotate │ 2.2.0 │ N/A │ online │ 9 │ 0% │ 274.090 MB │
└───────────────┴─────────┴────────────┴────────┴─────────┴─────┴──────────────┘
回复 (7)
I
这不都是为了省事么 少维护东西。
X
自己写个bash脚本, 加到crontab. 我们就是这么搞的.
P
觉得系统内置的logrotate比较好用
I
已经确认2.2版本的pm2 logrotate 存在内存泄漏 请各位更新。 https://github.com/keymetrics/pm2-logrotate/issues/45
S
I
S
看看是持续的还是瞬间的。 感觉有可能是切分是瞬间的值。
参与回复
登录后即可参与回复。登录