1. Atop

Atop 是一个类似 top 的工具,但比 top 更有料。通过 Atop,你能够监视 Linux 系统的性能状况,包括进程活动、CPU、内存、硬盘、网络等方面的使用情况等。

2. htop

htop——一个可以让用户与之交互的进程查看器。作为文本模式的应用程序,主要用于控制台或 X 终端中。当前具有按树状方式来查看进程,支持颜色主题,可以定制等特性。

与 top 相比,htop 包含的优点有:

  1. 可以横向或纵向滚动浏览进程列表,以便看到所有的进程和完整的命令行。
  2. 在启动上,比 top 更快。
  3. 杀进程时不需要输入进程号。
  4. htop 支持鼠标操作。
  5. top 已经很老了。

  1  [||||||||||||      Tasks: 652 total, 1 running                      14.4               61        3
  2  [||||       Load aver     0.16 0.16 0.17                            19.5                       02 0.10 0.14
  Mem[||||||    172/1009MB]     Uptime: 01:37:53                      3                        41:36
  PID USER     PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command  21705 bbndserv  16   0  2356  1228   784 R 38.0  0.1  0:00.12 htop  1 bbndserv  16   0  1784   640   544 S  0.0  0.1  0:02.12 init [3]
16753 bbndserv  11  -4  1676   392   216 S  0.0  0.0  0:00.00 /sbin/udevd --daemon
16023 bbndserv  16   0 33748 28588  2424 R  5.0  2.8  5:20.42 /opt/confd/lib/confd/bin/confd -K false -B -MHe true -- -root /opt/confd/lib/confd -progname confd -- -70523 bbndserv  17   0  2356  1316   860 R 0.1  0:07.73 htop
21672 bbndserv  25158M  6456  3352 S  16  0:07.08:11.38:07.64bb/platform/bin/rvnNetSerIfTblMgr
23313 bin       16158M  249M  7856  3880 0:00.1750.8  0:11.64 /opt/bb/platform/bin/rvnNetServer
21776 rpcuser   24249M  7856  3880   544 S  0.0  0.8  0:04.23 /opt/bb/platform/bin/rvnNetServer
23238 bbndserv  16   0  199M  6932  3488 S  0.0  0.7  0:01.76 /opt/bb/platform/bin/rvnSoftwareManager
    1 bbndserv  16   0  1784   640   544 S  0.0  0.1  0:02.12 init [3]
16753 bbndserv  11  -4  1676   392   216 S  0.0  0.010 port00 /sbin/udevd --daemon
16939 bbndserv  16   0 38148  2252  1188 S  0.0  0.2  0:01.67 /usr/local/bin/monit -I -c /etc/monitrc
20397 bbndserv  16524  38148  2252  1188 S  0.0  0.200 /usr/local/bin/monit -I -c /etc/monitrc
17640 bbndserv  25412   296   2448    58 S  0.0  0.0  0:00.00 smiattach -b 115200 /dev/ttyS1
17898 bin       161428   524   380   292 S  0.0  0.0  0:00.10 portmap
17916 rpcuser   18656   764   6446   460 S  0.0  0.1  0:00.00 rpc.statd
17933 bbndserv  162096  1412   108    56 S  0.0  0.0  0:00.92 /usr/sbin/rngd -r /dev/urandom
18054 bbndserv  251428   408   336  2088 S  0.0  0.0  0:00.00 /usr/sbin/acpid                              
18099 bbndserv  163404   660   460   600 S  0.0  0.1  0:00.00 /usr/sbin/sshd
18108 bbndserv  16096   888   7208   600 S  0.0  0.1  0:00.02 xinetd -stayalive -pidfile /var/run/xinetd.pid
18279 bbndserv  25   0  1600   160    60 S  0.0  0.0  0:00.00 rpc.mountd
18289 bbndserv  24928   192   1096  2088 S  0.0  0.0  0:00.00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf                      
18344 bbndserv  161620   740   600  2088 S  0.0  0.100 cron

3. slabtop

1.简介:实时显示内核slab内存缓存信息
2.使用:
slabtop –delay=n, -d n 每隔n秒刷新信息
slabtop –sort=S, -s S 按照S排序,其中S为排序标准
–once, -o 显示一次并退出

 Active / Total Objects (% used)    :  (96.15 (96.2%)
Active / Total Slabs (% used): / / (99.5
Active / Total Caches (% used) : / (58.8%)
Active / Total Size (% used): .39K022..95K (96.5 (97.2
OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME K
% .05K 919783676K buffer_head
% .14K 787273148K dentry_cache
% .27K 571142284K radix_tree_node
% .09K 16044640K vm_area_struct
% .38K 613102452K proc_inode_cache
% .19K 272201088K filp
% .03K 43113172K size-
% .53K 72580K ext3_inode_cache
% .06K 7659304K size-
% .02K 68K anon_vma
% .04K 3792148K sysfs_dir_cache
% .12K 8030320K size-
% .46K 8940K shmem_inode_cache
% .44K 9648K sock_inode_cache
% .19K 6820272K skbuff_head_cache
% .51K 7720K ext2_inode_cache
% .37K 12510500K inode_cache
% .00K 22440K size-
% .23K 7016280K ip_conntrack
% .00K 13604K s50e-
% .04K992 36K acpi_operand
% .02K4203 16K tcp_bind_bucket
% .36K 51184K ta76_struct
% .25K 4615184K size-

Linux性能测试 top衍生命令 atop/htop/slaptop的更多相关文章

  1. Linux性能测试 top命令

    原文地址:http://www.cnblogs.com/txw1958/archive/2012/07/25/linux-top-command.html top命令是Linux下常用的性能分析工具, ...

  2. Linux性能测试 命令大全

    Linux 系统出现问题时,我们不仅需要查看系统日志信息,而且还要使用大量的性能监测工 具来判断究竟是哪一部分(内存.CPU.硬盘……)出了问题.在 Linux 系统中,所有的运行 参数保存在虚拟目录 ...

  3. 性能测试 | Linux系统top命令中的io使用率,很多人都误解了它的具体含义

    body{ text-align:left; width:80%; margin:10px 100px; } 最近在做连续数据流的缓冲系统,C语言代码实现后,粗略测试了下,功能上应该没有问题.那么,接 ...

  4. Linux的top命令

    文章来自于长风破浪博主的内容,下面是该博客网址. https://www.cnblogs.com/dragonsuc/p/5512797.html 为了自己能多学习,多记忆,所以直接搬到了这里,希望小 ...

  5. linux下top命令参数详解

    top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器.下面详细介绍它的使用方法. 内存信息.内容如下: Mem: 191272k to ...

  6. Linux性能测试分析命令_top

    top命令动态展示系统整体资源和各个进程资源占用状况,是Linux下常用的性能分析工具. top命令语法 使用格式:top [-] [d] [b] [H] [p] [q] [c] [C] [S] [s ...

  7. Linux之top命令

    top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器.下面详细介绍它的使用方法.top是一个动态显示过程,即可以通过用户按键来不断刷新 ...

  8. 图解linux下top命令的使用

    top命令经常用来监控linux的系统状况,比如cpu.内存的使用,程序员基本都知道这个命令,但比较奇怪的是能用好它的人却很少,例如top监控视图中内存数值的含义就有不少的曲解. 本文通过一个运行中的 ...

  9. linux中top命令详解

    linux的top命令里的cpu信息是什么意思呢? Cpu(s): 62.1% us, 15.9% sy,0.1% ni, 19.4% id,2.0% wa,0.1% hi,0.4% si Mem:  ...

随机推荐

  1. 【20.23%】【codeforces 740A】Alyona and copybooks

    time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard ou ...

  2. ios开发之图层与核心动画一:图层CALayer的认识

    #import "ViewController.h" @interface ViewController () @property (weak, nonatomic) IBOutl ...

  3. Qt多线程学习-用例子来理解多线程(转),这个是我看过最好的文章,总结很详细(感觉exec()的作用就是保持线程不退出,这样方便随时处理主线程发来的信号,是一种非常别致的思路)good

    01 class MThread :public QThread 02 { 03 public: 04     MThread(); 05     ~MThread(); 06     virtual ...

  4. [Angular Directive] 3. Handle Events with Angular 2 Directives

    A @Directive can also listen to events on their host element using @HostListener. This allows you to ...

  5. 【47.95%】【codeforces 554C】Kyoya and Colored Balls

    time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard o ...

  6. ajax跳转到新的jsp页面(局部刷新)

    ajax可以实现局部刷新页面,即在不刷新整个页面的情况下更新页面的局部信息. 项目中遇到一个问题:在用户列表也,当点击某个按钮时需要去查询用户的信息,查询成功跳转到用户详情界面:查询失败,则在原页面弹 ...

  7. Java 类锁、对象锁、私有锁

    3.6 Java类锁.对象锁.私有锁.隐式锁 类锁和对象锁是否会冲突?对象锁和私有锁是否会冲突?通过实例来进行说明. 一.相关约定 为了明确后文的描述,先对本文涉及到的锁的相关定义作如下约定: 1. ...

  8. java完美equals方法代码段

    public boolean equals(Object otherObject) { if(this == otherObject) { // 检測this与otherObject是否引用同一个对象 ...

  9. MFC获取各个窗体(体)之间的指针(对象)

    MFC在非常多的对话框操作中,我们常常要用到在一个对话框中调用还有一个对话框的函数或变量.能够用例如以下方法来解决.    HWND hWnd=::FindWindow(NULL,_T("S ...

  10. javascript 验证附件大小

    ///验证单个文件不能超过30M function onChangeFile() { ///定义布尔类型的返回结果,初始值为false(默认不超过30M) var sResult = false; / ...