bashtop – the ‘cool’ top alternative.

栏目: IT技术 · 发布时间: 4年前

内容简介:Meet bashtop, an esthetically pleasing system monitor, written completely in Bash. Yup, you can view all 5000 lines of code, by simply openingOver the years, the available options for command-line system monitoring tools have grown quite a bit. There istop

Meet bashtop, an esthetically pleasing system monitor, written completely in Bash. Yup, you can view all 5000 lines of code, by simply opening /usr/bin/bashtop with a text editor or view on Github .

Over the years, the available options for command-line system monitoring tools have grown quite a bit. There istop, htop , glances, nmonytop , gtop , vtop , andatopto name a few. When it comes to Linux administration, monitoring your system’s performance, and use of hardware resources in real-time is very important and becomes critical in production server environments.

bashtop – the ‘cool’ top alternative.

Bashtop displays the usual usage and stats for processor, memory, storage, network, and processes. 

Using BASHTOP

As soon as you launch bashtop you’ll notice it’s very easy to use. The UI is controlled using this short list of keyboard shortcuts:

(Esc, M, m) - Shows main menu.
(F2, O, o) - Shows options.
(F1, H, h) - Shows help.
(Ctrl-C, Q, q) - Quits program.
(+, A, a) (-, S, s) - Add/Subtract 100ms to/from update timer.
(Up arrow) (Down arrow) - Select in process list.
(Enter) - Show detailed information for selected process.
(Pg Up) (Pg Down) - Jump 1 page in process list.
(Home) (End) - Jump to first or last page in process list.
(Left) (Right) - Select previous/next sorting column.
(b, B) (n, N) - Select previous/next network device.
(E, e) - Toggle processes tree view.
(R, r) - Reverse sorting order in processes box.
(F, f) - Input a string to filter processes with.
(C, c) - Clear any entered filter.
Selected (T, t) - Terminate selected process with SIGTERM - 15.
Selected (K, k) - Kill selected process with SIGKILL - 9.
Selected (I, i) - Interrupt selected process with SIGINT - 2.

With bashtop, you can quickly view detailed stats for processes, easily switch between sorting options, send SIGTERM, SIGKILL, SIGINT to a selected process, view current read and write speeds for your storage devices and much more.

bashtop – the ‘cool’ top alternative.

Filtering to display only Nginx related processes. 

Bashtop pros

  • An easy-to-use and aesthetically pleasing user interface that features a beautiful system-stats overview.
  • Available in official repos of recent distro such as Ubuntu 20.10 – apt install bashtop  and CentOS 8 –  dnf install bashtop .
  • Also compatible with Mac and FreeeBSD.

Bashtop cons

  • Uses more CPU and RAM compared to top and htop.
  • Requires bash  v4.4 or later. (not friendly to older distros like CentOS 7).

Conclusion

In a mission-critical setting, top, htop, and atop are still the best / time-proven options. Along with otheruseful tools such as  net-toolsiptrafcollectldstatiostat , iotopsarsaidar and  vmstat . For example, if you need to login to a remote Linux server that is experiencing high load or low available memory, consider memory and cpu footprint when selecting which tool to launch.

I’ve been using bashtop on my laptop and on some servers when I need to share easy-to-read memory, cpu, or process stats. If you haven’t already, give it a try!


System monitors like bashtop are a gateway to APM

Command-line system monitors will often give you quick insight into what process(es) are the culprit for poor application performance. It’s a good place to start.

However, if you are serious about application performance, you’ll want to setup application performance monitoring (APM). APM provides a deeper and more detailed view of your code’s effect on resources as well as insight into the end-users’ experience with your application.

APM empowers you with the data necessary to decide whether to optimize code or to upgrade hardware. With this in mind, I maintain a list of over 100 APM solutions that will be of interest to you if you run or plan to run, apps in production.


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

信息简史

信息简史

[美] 詹姆斯·格雷克 / 高博 / 人民邮电出版社 / 2013-10 / 69.00元

人类与信息遭遇的历史由来已久。詹姆斯•格雷克笔下的这段历史出人意料地从非洲的鼓语讲起(第1章)。非洲土著部落在尚未直接跨越到移动电话之前,曾用鼓声来传递讯息,但他们是如何做到的呢?后续章节进而讲述了这段历史上几个影响深远的关键事件,包括文字的发明(第2章)、罗伯特•考德里的第一本英语词典(第3章)、查尔斯•巴贝奇的差分机与爱达•拜伦的程序(第4章)、沙普兄弟的信号塔与摩尔斯电码(第5章)。 ......一起来看看 《信息简史》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

URL 编码/解码
URL 编码/解码

URL 编码/解码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具