简体   繁体   English

Linux应用程序监控器

[英]Linux application monitor

Is there any good applications on linux that can monitor a process and record how much cpu it is taking up and what files it has open or system commands its performing. linux上是否有任何好的应用程序可以监视进程并记录其占用的cpu数量以及打开的文件或执行的系统命令。

Can also use it to hook into the so if needed. 如果需要,也可以使用它来挂钩。

Free is better. 免费更好。

top in its various incarnations. 在各种化身中top Personally I like htop . 我个人喜欢htop It can also show what functions the processes are sleeping in. If you need a detailed information about the functions a process calls, use strace 它还可以显示进程在休眠的功能。如果您需要有关进程调用的功能的详细信息,请使用strace

For tracking open files per process lsof is your friend. 为了跟踪每个进程的打开文件, lsof是您的朋友。

This question is possibly more appropriate on server fault. 对于服务器故障,此问题可能更合适。 However check answers to this . 然而检查答案 It summarizes everything I can suggest. 它总结了我所建议的一切。 Top should give you the CPU usage both overall as well as split up of all processes currently being executed on your system. Top应该为您提供总体的CPU使用率,以及您当前正在系统上执行的所有进程的使用情况。

您可以查看perfkit ,但它仍在开发中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM