[英]PM2 monit vs PM2 logs
What's the difference between these commands? 这些命令之间有什么区别? I couldn't find a clear explanation on which should be used at what scenarios.
我找不到在什么情况下应该使用哪种的明确解释。
http://pm2.keymetrics.io/docs/usage/log-management/ http://pm2.keymetrics.io/docs/usage/monitoring/ http://pm2.keymetrics.io/docs/usage/log-management/ http://pm2.keymetrics.io/docs/usage/monitoring/
pm2 monit
is about process management: pm2 monit
与流程管理有关:
The local monitoring tool get you insight about CPU usage, memory usage, loop delay or request/min for each process
本地监视工具可让您深入了解每个进程的CPU使用率,内存使用率,循环延迟或请求/分钟
pm2 logs
is about log management and shows you the saved logs of all apps or a specific app - you won't see any details about the current CPU usage, memory usage and so on. pm2 logs
,它显示所有应用程序或特定应用程序的已保存日志-您将看不到有关当前CPU使用率,内存使用率等的任何详细信息。
In my understanding pm2 monit
provides a ad hoc view about the current processes including their logs in real time, while pm2 logs
provides a retrospective view through saved logs (though they are also available at realtime). 在我的理解中,
pm2 monit
实时提供有关当前进程(包括其日志)的临时视图,而pm2 logs
(尽管它们也可以实时使用)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.