From 637294418b1da84ed752219ca4eabaccc7066fc1 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Thu, 10 Dec 2020 10:48:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20Glances=20=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E8=AF=B4=E6=98=8E.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../Linux/User/Linux_性能分析工具.md | 36 ++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/Software/Development/OperatingSystem/Linux/User/Linux_性能分析工具.md b/Software/Development/OperatingSystem/Linux/User/Linux_性能分析工具.md index 120e770..bb3caac 100644 --- a/Software/Development/OperatingSystem/Linux/User/Linux_性能分析工具.md +++ b/Software/Development/OperatingSystem/Linux/User/Linux_性能分析工具.md @@ -59,7 +59,41 @@ iostat sar ``` -## 5.Others +## 5.Glances + +```bash +pacman -S glances +``` + +### 5.1.Standalone Mode + +```bash +glances +``` + +### 5.2.Client/Server Mode + +```bash +# Server +glances -s [-B
] [-p ] +# Client +glances -c [-p ] +``` + +### 5.3.Web Server Mode + +```bash +pacman -S python-bottle +glances -s [-B
] [-p ] [--username] [--password] +``` + +To change the refresh rate of the page, just add the period in seconds at the end of the URL. For example, to refresh the page every 10 seconds: + +```blk +http://@server:61208/10 +``` + +## 6.Others ```bash dstat