pidstat

作者: elon | 来源:发表于2015-06-27 15:52 被阅读113次
  1. 列出pid对应的每个线程占用cpu的情况
    pidstat -t -p ${pid}
  2. 输出格式:
    TGID TID %usr %system %guest %CPU CPU Command
  1. TGID --The identification number of the thread group leader.
  2. TID --The identification number of the thread being monitored.
  3. %usr --Percentage of CPU used by the task while executing at the user level (application), with or without nice priority. Note that this field does NOT include time spent running a virtual processor.
  4. %system --Percentage of CPU used by the task while executing at the system level (kernel).
  5. %guest --Percentage of CPU spent by the task in virtual machine (running a virtual processor).
  6. %CPU --Total percentage of CPU time used by the task.
  7. CPU --Processor number to which the task is attached.
  8. Command --The command name of the task.
  1. -u代表cpu(可以不加),-r代表内存,-d代表io

相关文章

  • pidstat

    列出pid对应的每个线程占用cpu的情况pidstat -t -p ${pid} 输出格式:TGID TID %u...

  • pidstat

    1、工具简介mpstat 用来查看系统每个 CPU 的性能指标,以及所有 CPU 的平均指标。vmstat 可以查...

  • java性能优化权威指南

    常用的监控指令监控线程上下文切换 pidstat -w -I -p 9391 5 解释: pidstat...

  • pidstat 命令详解

    pidstat 概述 pidstat是sysstat工具的一个命令,用于监控全部或指定进程的cpu、内存、线程、设...

  • pidstat 命令详解

    pidstat 概述 pidstat是sysstat工具的一个命令,用于监控全部或指定进程的cpu、内存、线程、设...

  • 51节 2021-03-10服务器性能分析指令pidstat

    pidstat介绍 pidstat是sysstat工具的一个命令,用于监控全部或指定进程的cpu、内存、线程、设备...

  • 系统性能监控命令

    【toc】 1、pidstat命令 pidstat主要用于监控全部或指定进程占用系统资源的情况,如CPU,内存、设...

  • Linux性能分析常用命令

    uptime命令,查看系统平均负载。 pidstat命令,查看进程消耗的资源 pidstat 1 5 每隔一秒打印...

  • pidstat 命令

    sar(System Activity Reporter 系统活动情况报告)是目前 Linux 上最为全面的系统性...

  • cpu

    pidstat -w -p 454430 stresssysstatmpstatpidstat Dtrace、Sy...

网友评论

      本文标题:pidstat

      本文链接:https://www.haomeiwen.com/subject/lryeqttx.html