加入收藏 | 设为首页 | 会员中心 | 我要投稿 济源站长网 (https://www.0391zz.cn/)- 数据工具、数据仓库、行业智能、CDN、运营!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

18 Command Line Tools to Monitor Linux Performance

发布时间:2021-01-24 10:55:30 所属栏目:Linux 来源:网络整理
导读:By? ?Under:? ,? ?On:? December 26,2013 It’s really very tough job for every? System ?or? Network ?administrator to monitor and debug Linux System Performance ?problems every day. After being a? Linux Administrator ?for? 5 years ?in? IT in

Netstat?is a command line tool for monitoring?incoming?and?outgoing network?packets statistics as well as interface statistics. It is very useful tool for every system administrator to monitor network performance and troubleshoot network related problems.

# netstat -a | more

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 :mysql : LISTEN
tcp 0 0
:sunrpc : LISTEN
tcp 0 0 :realm-rusd : LISTEN
tcp 0 0
:ftp : LISTEN
tcp 0 0 localhost.localdomain:ipp : LISTEN
tcp 0 0 localhost.localdomain:smtp : LISTEN
tcp 0 0 localhost.localdomain:smtp localhost.localdomain:42709 TIME_WAIT
tcp 0 0 localhost.localdomain:smtp localhost.localdomain:42710 TIME_WAIT
tcp 0 0 :http : LISTEN
tcp 0 0
:ssh : LISTEN
tcp 0 0 :https :* LISTEN

More Netstat examples :?.

6. Htop – Linux Process Monitoring

Htop?is a much advanced interactive and real time Linux process monitoring tool. This is much similar to Linux?top command?but it has some rich features like?user friendly interface to manage process,?shortcut keys,?vertical and horizontal view of the processes?and much more. Htop is a third party tool and doesn’t included in Linux systems,you need to install it using?YUM?package manager tool. For more information on installation read our article below.

# htop
Htop Command Example

For Htop installation read :?

7. Iotop – Monitor Linux Disk I/O

Iotop?is also much similar to?top command?and?Htop program,but it has accounting function to monitor and display real time?Disk I/O?and?processes. This tool is much useful for finding the exact process and high used disk read/writes of the processes.

# iotop
Iotop Command Example

For Ioptop installation and usage read :?

8. Iostat – Input/Output Statistics

IoStat?is simple tool that will collect and show system?input?and?output?storage device statistics. This tool is often used to trace storage device performance issues includingdevices,?local disks,?remote disks?such as?NFS.

# iostat

Linux 2.6.18-238.9.1.el5 (tecmint.com) 09/13/2012

avg-cpu: %user %nice %system %iowait %steal %idle
2.60 3.65 1.04 4.29 0.00 88.42

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
cciss/c0d0 17.79 545.80 256.52 855159769 401914750
cciss/c0d0p1 0.00 0.00 0.00 5459 3518
cciss/c0d0p2 16.45 533.97 245.18 836631746 384153384
cciss/c0d0p3 0.63 5.58 3.97 8737650 6215544
cciss/c0d0p4 0.00 0.00 0.00 8 0
cciss/c0d0p5 0.63 3.79 5.03 5936778 7882528
cciss/c0d0p6 0.08 2.46 2.34 3847771 3659776

For more Iostat usage and examples visit :?

9. IPTraf – Real Time IP LAN Monitoring

IPTraf?is an open source console-based real time network (IP LAN) monitoring utility forLinux. It collects a variety of information such as IP traffic monitor that passes over the network,including TCP flag information,ICMP details,TCP/UDP traffic breakdowns,TCP connection packet and byne counts. It also gathers information of general and detaled interface statistics of TCP,UDP,IP,ICMP,non-IP,IP checksum errors,interface activity etc.

<p class="wp-caption-text">IP Traffic Monitor

For more information and usage of IPTraf tool,please visit :?

10. Psacct or Acct – Monitor User Activity

(编辑:济源站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读