当前位置:网站首页>Arthas command parsing (jvm/thread/stack/heapdump)
Arthas command parsing (jvm/thread/stack/heapdump)
2022-07-30 06:55:00 【If I don't see you tomorrow】
Arthas is an open source Java diagnostic tool from Alibaba, Arthas supports JDK 6+, supports Linux/Mac/Windows, adopts command-line interactive mode, and provides rich Tab auto-completion functions to further facilitate problem location and diagnosis.
Arthas 3.0 uses the OGNL expression evaluation library, see OGNL expression official website
Common commands
jvm
View current JVM information
THREAD related
COUNT: The number of currently active threads in the JVMDAEMON-COUNT: The number of daemon threads currently active in the JVMPEAK-COUNT: Maximum number of threads ever alive since JVM startupSTARTED-COUNT: The total number of threads started since the JVM startedDEADLOCK-COUNT: The number of threads currently deadlocked by the JVM
thread
View current thread information, view thread stack
| parameter name | Parameter description |
|---|---|
| id | thread id |
| [n:] | Specify the busiest top N threads and print the stack |
| [b] | Find out which thread is currently blocking other threads |
[i ] | Specify the sampling interval of cpu usage statistics, in milliseconds, the default value is 200 |
| [–all] | Show all matching threads |
How is cpu usage calculated?
The cpu usage rate here is similar to the thread%CPUof the linux commandtop -H -p. During a sampling interval, each thread in the current JVMThe ratio of incremental cpu time to sampling interval time.
$ threadThreads Total: 33, NEW: 0, RUNNABLE: 9, BLOCKED: 0, WAITING: 3, TIMED_WAITING: 4, TERMINATED: 0, Internal threads: 17ID NAME GROUP PRIORITY STATE %CPU DELTA_TIME TIME INTERRUPT DAEMON-1 C2 CompilerThread0 - -1 - 5.06 0.010 0:0.973 false truestack
Output the calling path where the current method is called
| parameter name | Parameter description |
|---|---|
| class-pattern | class name expression match |
| method-pattern | method name expression match |
| condition-express | conditional expression |
| [E] | Enable regular expression matching, default is wildcard matching |
| [n:] | execution limit |
Filter by execution time
$ stack demo.MathGame primeFactors '#cost>5' -n 2heapdump
dump java heap, similar to the heap dump function of the jmap command.
dump to the specified file
[[email protected]]$ heapdump /tmp/dump.hprofDumping heap to /tmp/dump.hprof...Heap dump file createdReferences:
边栏推荐
- 冒泡排序、选择排序、插入排序、快速排序
- [MATLAB] Image Processing - Recognition of Traffic Signs
- 【十年网络安全工程师整理】—100渗透测试工具使用方法介绍
- 【零基础搞定C语言——导航汇总篇】
- misc-file steganography of CTF
- Flink CDC implements Postgres to MySQL streaming processing transmission case
- Jackson serialization failure problem - oracle data return type can't find the corresponding Serializer
- Oracle数据库SQL优化详解
- C#预定义数据类型简介
- Arthas 命令解析(jvm/thread/stack/heapdump)
猜你喜欢

Connect to Mysql in the cloud server Docker detailed graphic and text operations (full)

TDengine cluster construction

uni-app: The use of uni-icons and how to customize icons

SQL Server 数据库之生成与执行 SQL 脚本

sqli-labs less3/4 Targeting Notes

网上说的挖矿究竟是什么? 挖矿系统开发详解介绍

MySQL window function

Understand JDBC in one article

Flink CDC implements Postgres to MySQL streaming processing transmission case

Trust anchor for certification path not found.异常解决方法。
随机推荐
[PASECA2019]honey_shop
[HCTF 2018]admin
正则表达式语法详解及实用实例
Function 函数式接口及应用
MYSQL一站式学习,看完即学完
c#下Web3合约空投、转账调用代码
Misc of CTF-Memory Analysis (Volatility)
十八、Kotlin进阶学习:1、挂起函数执行的顺序;2、使用 async 和 await 异步执行挂起函数;3、协程的调度器;4、父子协程;
Flink-流/批/OLAP一体得到Flink引擎
MySQL 特殊语句及优化器
【MySQL功法】第5话 · SQL单表查询
Detailed MySQL-Explain
Mysql client common exception analysis
Defense Ideas for a Type of SMS Vulnerability
Offensive and defensive world easy_web
学生管理系统
Arthas command parsing (watch/tt/sc)
Solution to TypeError The view function did not return a valid response. The function either returned None
JVM Learning (2) Garbage Collector
mysql不是内部或外部命令,也不是可运行的程序或批处理文件解决