zoukankan      html  css  js  c++  java
  • pt-summary pt-mysql-summary工具

     2个percona的工具还真挺好用的。

    pt-summary
    # Percona Toolkit System Summary Report ######################
    Date | 2014-01-25 02:21:40 UTC (local TZ: CST +0800)
    Hostname |  
    Uptime | 58 days, 9:52, 1 user, load average: 0.48, 0.31, 0.24
    System | Dell Inc.; PowerEdge R610; vNot Specified (<OUT OF SPEC>)
    Service Tag | 2DDB33X
    Platform | Linux
    Release | Red Hat Enterprise Linux Server release 5.4 (Tikanga)
    Kernel | 2.6.18-164.el5PAE
    Architecture | CPU = 64-bit, OS = 32-bit
    Threading | NPTL 2.5
    Compiler | GNU CC version 4.1.2 20080704 (Red Hat 4.1.2-44).
    SELinux | Disabled
    Virtualized | No virtualization detected
    # Processor ##################################################
    Processors | physical = 2, cores = 8, virtual = 8, hyperthreading = no
    Speeds | 8x2128.237
    Models | 8xIntel(R) Xeon(R) CPU E5506 @ 2.13GHz
    Caches | 8x4096 KB
    # Memory #####################################################
    Total | 11.9G
    Free | 4.1G
    Used | physical = 7.8G, swap allocated = 12.7G, swap used = 68.0k, virtual = 7.8G
    Buffers | 135.1M
    Caches | 5.0G
    Dirty | 12680 kB
    UsedRSS | 3.8G
    Swappiness | 60
    DirtyPolicy | 10, 2
    Locator Size Speed Form Factor Type Type Detail
    ========= ======== ================= ============= ============= ===========
    DIMM_A1 2048 MB 1333 MHz (0.8 ns) DIMM {OUT OF SPEC} Synchronous
    DIMM_A2 2048 MB 1333 MHz (0.8 ns) DIMM {OUT OF SPEC} Synchronous
    DIMM_A3 2048 MB 1333 MHz (0.8 ns) DIMM {OUT OF SPEC} Synchronous
    DIMM_B1 2048 MB 1333 MHz (0.8 ns) DIMM {OUT OF SPEC} Synchronous
    DIMM_B2 2048 MB 1333 MHz (0.8 ns) DIMM {OUT OF SPEC} Synchronous
    DIMM_B3 2048 MB 1333 MHz (0.8 ns) DIMM {OUT OF SPEC} Synchronous
    DIMM_A4 {EMPTY} Unknown DIMM {OUT OF SPEC} Synchronous
    DIMM_A5 {EMPTY} Unknown DIMM {OUT OF SPEC} Synchronous
    DIMM_A6 {EMPTY} Unknown DIMM {OUT OF SPEC} Synchronous
    DIMM_B4 {EMPTY} Unknown DIMM {OUT OF SPEC} Synchronous
    DIMM_B5 {EMPTY} Unknown DIMM {OUT OF SPEC} Synchronous
    DIMM_B6 {EMPTY} Unknown DIMM {OUT OF SPEC} Synchronous
    # Mounted Filesystems ########################################
    Filesystem Size Used Type Opts Mountpoint
    /dev/sda1 487M 4% ext3 rw /boot
    /dev/sda3 529G 83% ext3 rw /
    tmpfs 6.0G 0% tmpfs rw /dev/shm
    # Disk Schedulers And Queue Size #############################
    md0 | UNREADABLE
    sda | [cfq] 128
    # Disk Partioning ############################################
    Device Type Start End Size
    ============ ==== ========== ========== ==================
    /dev/sda Disk 599550590976
    /dev/sda1 Part 1 64 518192640
    /dev/sda2 Part 65 1721 13621063680
    /dev/sda3 Part 1722 72891 585384952320
    # Kernel Inode State #########################################
    dentry-state | 93551 87248 45 0 0 0
    file-nr | 4480 0 1200045
    inode-nr | 82528 22967
    # LVM Volumes ################################################
    Unable to collect information
    # LVM Volume Groups ##########################################
    Unable to collect information
    # RAID Controller ############################################
    Controller | LSI Logic MegaRAID SAS
    RAID controller software not found; try getting it from
    your package repository or the manufacturer's website
    # Network Config #############################################
    Controller | Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
    Controller | Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
    Controller | Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
    Controller | Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
    FIN Timeout | 30
    Port Range | 65000
    # Interface Statistics #######################################
    interface rx_bytes rx_packets rx_errors tx_bytes tx_packets tx_errors
    ========= ========= ========== ========== ========== ========== ==========
    lo 3500000000 2500000000 0 3500000000 2500000000 0
    eth0 2500000000 30000000 0 10000000 175000 0
    eth1 3000000000 1500000000 15 175000000 2500000000 0
    eth2 0 0 0 0 0 0
    eth3 0 0 0 0 0 0
    sit0 0 0 0 0 0 0
    # Network Devices ############################################
    Device Speed Duplex
    ========= ========= =========
    eth0 1000Mb/s Full
    eth1 1000Mb/s Full
    eth2 Unknown! Half
    eth3 Unknown! Half
    # Network Connections ########################################
    Connections from remote IP addresses
    14.119.95.143 2
    27.154.127.144 1
    27.189.84.237 1
    27.211.116.235 3
    42.120.145.66 3
    58.35.171.14 3
    60.191.141.157 2
    61.52.23.245 1
    61.135.249.215 1
    61.184.253.59 10
    106.38.177.148 1
    110.249.221.34 1
    112.243.233.48 1
    113.57.191.235 1
    113.108.16.119 1
    115.231.49.186 4
    116.224.65.76 2
    117.42.7.198 4
    122.7.13.132 6
    122.226.103.50 2
    123.13.39.133 1
    123.54.46.111 4
    123.125.71.41 1
    123.125.71.42 1
    123.125.71.94 1
    123.125.71.101 1
    123.125.71.102 1
    124.237.96.43 1
    127.0.0.1 450
    157.55.32.147 1
    157.55.33.146 1
    171.105.199.34 4
    175.2.55.80 5
    192.168.22.21 1
    219.150.71.168 2
    220.181.108.93 1
    220.181.108.102 1
    220.181.108.144 1
    220.181.125.138 5
    221.234.41.186 1
    222.178.145.72 1
    Connections to local IP addresses
    127.0.0.1 450
    222.73.99.69 90
    Connections to top 10 local ports
    10053 2
    11211 225
    80 80
    8267 1
    8366 1
    8379 1
    8401 1
    8403 1
    8467 1
    9000 1
    States of connections
    ESTABLISHED 500
    FIN_WAIT1 10
    LAST_ACK 1
    LISTEN 15
    TIME_WAIT 15
    # Top Processes ##############################################
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    9791 root 20 0 2464 1076 688 R 1.9 0.0 0:00.02 top
    1 root 15 0 2072 624 532 S 0.0 0.0 0:11.58 init
    2 root RT -5 0 0 0 S 0.0 0.0 0:03.15 migration/0
    3 root 34 19 0 0 0 S 0.0 0.0 0:00.28 ksoftirqd/0
    4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
    5 root RT -5 0 0 0 S 0.0 0.0 0:00.03 migration/1
    6 root 34 19 0 0 0 S 0.0 0.0 0:00.06 ksoftirqd/1
    7 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/1
    8 root RT -5 0 0 0 S 0.0 0.0 0:00.14 migration/2
    # Notable Processes ##########################################
    PID OOM COMMAND
    3044 +0 sshd
    # The End ####################################################

    很详细,基本上你想要的硬件信息上面都能找到。最牛逼的就是能看服务器有多少内存插槽,插了几根内存也能查出来。太虎了。不用dell 的工具了。

    网络方面也是一把利器,多少ip在连一目了然。pt-mysql-summary 也是一样犀利。老美的东西确实不错。。

  • 相关阅读:
    excel生成csv后,0001变成1
    windows_server_2012_r2提示api-ms-win-crt-runtime-l1-1-0.dll 丢失
    py文件生成exe程序
    朴素贝叶斯分类(上)
    01 | 数据分析全景图及修炼指南
    BBS
    BBS
    BBS
    BBS
    BBS
  • 原文地址:https://www.cnblogs.com/gqdw/p/3533131.html
Copyright © 2011-2022 走看看