zoukankan      html  css  js  c++  java
  • Linux系统常用监控系统状态信息命令

    [root@bogon ~]# uptime    #平均负载
     23:33:21 up  2:09,  3 users,  load average: 0.02, 0.05, 0.05
    
    
    [root@bogon ~]# w         #查看所有登录用户状态
     23:34:15 up  2:10,  3 users,  load average: 0.01, 0.04, 0.05
    USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
    root     :0       :0               21:24   ?xdm?   5:29   0.39s gdm-session-wor
    root     pts/0    :0               21:25    1:34m  0.11s  0.11s bash
    
    
    [root@bogon ~]# top
    top - 23:40:04 up  2:15,  3 users,  load average: 0.00, 0.01, 0.05
    Tasks: 164 total,   2 running, 162 sleeping,   0 stopped,   0 zombie
    %Cpu(s):  5.0 us,  1.0 sy,  0.0 ni, 94.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
    KiB Mem :   999936 total,    84976 free,   669668 used,   245292 buff/cache
    KiB Swap:  2098172 total,  2082736 free,    15436 used.   132200 avail Mem 
    
       PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND     
      3266 root      20   0 1005776 179400  34816 R  5.6 17.9   4:20.82 firefox     
      4998 root      20   0  157708   2248   1556 R  0.3  0.2   0:00.15 top         
         1 root      20   0  128092   4708   2884 S  0.0  0.5   0:02.27 systemd     
         2 root      20   0       0      0      0 S  0.0  0.0   0:00.00 kthreadd    
         3 root      20   0       0      0      0 S  0.0  0.0   0:00.13 ksoftirqd/0 
         6 root      20   0       0      0      0 S  0.0  0.0   0:00.20 kworker/u2+ 
         7 root      rt   0       0      0      0 S  0.0  0.0   0:00.00 migration/0 
         8 root      20   0       0      0      0 S  0.0  0.0   0:00.00 rcu_bh      
         9 root      20   0       0      0      0 S  0.0  0.0   0:00.70 rcu_sched   
        10 root      rt   0       0      0      0 S  0.0  0.0   0:00.05 watchdog/0  
        12 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 khelper     
        13 root      20   0       0      0      0 S  0.0  0.0   0:00.00 kdevtmpfs   
        14 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 netns       
        15 root      20   0       0      0      0 S  0.0  0.0   0:00.00 khungtaskd  
        16 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 writeback   
    
    
    [root@bogon ~]# vmstat 1 5      #显示系统整体性能,每一秒刷新一次,共刷新5次
    procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
     r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
     2  0  15436  84548     48 245276    0    2    92     6  128  249  4  1 95  0  0
     0  0  15436  84556     48 245276    0    0     0     0   75  148  0  0 100  0  0
     0  0  15436  84560     48 245276    0    0     0     0  218  373 10  1 89  0  0
     0  0  15436  84436     48 245276    0    0     0     0  136  285  2  0 98  0  0
     0  0  15436  84436     48 245276    0    0     0     0   70  125  1  1 98  0  0
    
    
    [root@bogon ~]# lsmod      #查看已载入模块
    Module                  Size  Used by
    nls_utf8               12557  1 
    isofs                  39844  1 
    fuse                   87741  2 
    xt_CHECKSUM            12549  1 
    ipt_MASQUERADE         12678  3 
    nf_nat_masquerade_ipv4    13412  1 ipt_MASQUERADE
    tun                    27226  1 
    ip6t_rpfilter          12595  1 
    ipt_REJECT             12541  4 
    nf_reject_ipv4         13373  1 ipt_REJECT
    ip6t_REJECT            12625  2 
    nf_reject_ipv6         13717  1 ip6t_REJECT
    。。。。。。
    
    
    
    [root@bogon ~]# lspci    #查看PCI设备信息(例如网卡,声卡等等)
    00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)
    00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01)
    00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)
    00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
    00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
    00:07.7 System peripheral: VMware Virtual Machine Communication Interface (rev 10)
    00:0f.0 VGA compatible controller: VMware SVGA II Adapter
    00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
    00:11.0 PCI bridge: VMware PCI bridge (rev 02)
    00:15.0 PCI bridge: VMware PCI Express Root Port (rev 01)
    00:15.1 PCI bridge: VMware PCI Express Root Port (rev 01)
    00:15.2 PCI bridge: VMware PCI Express Root Port (rev 01)
    00:15.3 PCI bridge: VMware PCI Express Root Port (rev 01)
    00:15.4 PCI bridge: VMware PCI Express Root Port (rev 01)
    00:15.5 PCI bridge: VMware PCI Express Root Port (rev 01)
    00:15.6 PCI bridge: VMware PCI Express Root Port (rev 01)
    00:15.7 PCI bridge: VMware PCI Express Root Port (rev 01)
    00:16.0 PCI bridge: VMware PCI Express Root Port (rev 01)
    00:16.1 PCI bridge: VMware PCI Express Root Port (rev 01)
    00:16.2 PCI bridge: VMware PCI Express Root Port (rev 01)
    00:16.3 PCI bridge: VMware PCI Express Root Port (rev 01)
    00:16.4 PCI bridge: VMware PCI Express Root Port (rev 01)
    
    
    
    
  • 相关阅读:
    第二十七节(多线程、线程的创建和启动、生命周期、调度、控制、同步)
    第二十六节(对象流,File类)
    第二十五节(转换流,打印流)
    第二十四节(Java文件流,缓冲流)
    第二十三节(String,StringBuffer,基础类型对应的 8 个包装类,日期相关类、 Random 数字 ,Enum枚举)下
    【转】perl如何避免脚本在windows中闪一下就关闭
    计算机基础(二)
    计算机基础(一)
    04 数据结构
    03 逻辑与结构
  • 原文地址:https://www.cnblogs.com/biaopei/p/7730551.html
Copyright © 2011-2022 走看看