18 Command Line Tools to Monitor Linux Performance
副标题[/!--empirenews.page--]
By??Under:?,??On:?December 26,2013 It’s really very tough job for every?System?or?Network?administrator to monitor and debugLinux System Performance?problems every day. After being a?Linux Administrator?for?5 years?in?IT industry,I came to know that how hard is to monitor and keep systems up and running. For this reason,we’ve compiled the list of?Top 18?frequently used command line monitoring tools that might be useful for every?Linux/Unix System Administrator. These commands are available under all flavors of?Linux?and can be useful to monitor and find the actual causes of performance problem. This list of commands shown here are very enough for you to pick the one that is suitable for your monitoring scenario. <p class="wp-caption-text">Linux Command Line Monitoring 1. Top – Linux Process MonitoringLinux?Top?command is a performance monitoring program which is used frequently by many system administrators to monitor Linux performance and it is available under manyLinux/Unix?like operating systems. The top command used to dipslay all the running and active real-time processes in ordered list and updates it regularly. It display?CPU usage,Memory usage,?Swap Memory,?Cache Size,?Buffer Size,?Process PID,?User,?Commands and much more. It also shows high?memory?and?cpu?utilization of a running processess. The top command is much userful for system administrator to monitor and take correct action when required. Let’s see top command in action. # top <p class="wp-caption-text">Top Command Example For more examples of Top command read :? 2. VmStat – Virtual Memory StatisticsLinux?VmStat?command used to display statistics of?virtual memory,?kernerl threads,disks,?system processes,?I/O blocks,?interrupts,?CPU activity?and much more. By default vmstat command is not available under Linux systems you need to install a package calledsysstat?that includes a vmstat program. The common usage of command format is. # vmstat For more Vmstat examples read :? 3. Lsof – List Open FilesLsof?command used in many?Linux/Unix?like system that is used to display list of all the open files and the processes. The open files included are?disk files,?network sockets,pipes,?devices?and?processes. One of the main reason for using this command is when a disk cannot be unmounted and displays the error that files are being used or opened. With this commmand you can easily identify which files are in use. The most common format for this command is. # lsof More lsof command usage and examples :? 4. Tcpdump – Network Packet AnalyzerTcpdump?one of the most widely used command-line?network packet analyzer?or?packets sniffer?program that is used capture or filter?TCP/IP?packets that received or transferred on a specific interface over a network. It also provides a option to save captured packages in a file for later analysis. tcpdump is almost available in all major Linux distributions. # tcpdump -i eth0 For more tcpdump usage read :? 5. Netstat – Network Statistics(编辑:PHP编程网 - 黄冈站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |