加入收藏 | 设为首页 | 会员中心 | 我要投稿 晋中站长网 (https://www.0354zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

Linux性能检测常用的10个基本命令

发布时间:2018-08-23 01:10:54 所属栏目:Windows 来源:佚名
导读:技术沙龙 | 邀您于8月25日与国美/AWS/转转三位专家共同探讨小程序电商实战 本文的内容主要来自对Netflix的一篇技术博客( Linux Performance Analysis in 60,000 Milliseconds (https://medium.com/netflix-techblog/linux-performance-analysis-in-60-000-

检测的列:

  • active/s: Number of locally-initiated TCP connections per second (e.g., via connect()),发起的网络连接数量;
  • passive/s: Number of remotely-initiated TCP connections per second (e.g., via accept()),接收的网络连接数量;
  • retrans/s: Number of TCP retransmits per second,重传的数量;

10. top

top命令包含更多的指标统计,相当于一个综合命令。

  1. $ top  
  2. top - 00:15:40 up 21:56,  1 user,  load average: 31.09, 29.87, 29.92  
  3. Tasks: 871 total,   1 running, 868 sleeping,   0 stopped,   2 zombie  
  4. %Cpu(s): 96.8 us,  0.4 sy,  0.0 ni,  2.7 id,  0.1 wa,  0.0 hi,  0.0 si,  0.0 st  
  5. KiB Mem:  25190241+total, 24921688 used, 22698073+free,    60448 buffers  
  6. KiB Swap:        0 total,        0 used,        0 free.   554208 cached Mem  
  7.  
  8.    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND  
  9.  20248 root      20   0  0.227t 0.012t  18748 S  3090  5.2  29812:58 java  
  10.   4213 root      20   0 2722544  64640  44232 S  23.5  0.0 233:35.37 mesos-slave  
  11.  66128 titancl+  20   0   24344   2332   1172 R   1.0  0.0   0:00.07 top  
  12.   5235 root      20   0 38.227g 547004  49996 S   0.7  0.2   2:02.74 java  
  13.   4299 root      20   0 20.015g 2.682g  16836 S   0.3  1.1  33:14.42 java  
  14.      1 root      20   0   33620   2920   1496 S   0.0  0.0   0:03.82 init  
  15.      2 root      20   0       0      0      0 S   0.0  0.0   0:00.02 kthreadd  
  16.      3 root      20   0       0      0      0 S   0.0  0.0   0:05.35 ksoftirqd/0  
  17.      5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0H  
  18.      6 root      20   0       0      0      0 S   0.0  0.0   0:06.94 kworker/u256:0  
  19.      8 root      20   0       0      0      0 S   0.0  0.0   2:38.05 rcu_sched12345678910111213141516171819 

11. 总结

(编辑:晋中站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读