This commit is contained in:
hengyunabc
2023-04-19 15:16:35 +08:00
parent f6e18e79e5
commit bcc9d7aa57
+6
View File
@@ -66,3 +66,9 @@ mbean -E java.lang:type=Threading PeakThreadCount|ThreadCount|DaemonThreadCount
```bash
mbean -i 1000 java.lang:type=Threading *Count
```
实时监控使用`-i`,使用`-n`命令执行命令的次数(默认为100次):
```bash
mbean -i 1000 -n 50 java.lang:type=Threading *Count
```