「 jstack_x 」 插件体验交流
插件信息:
名称 | 大小 | 版本 | 更新时间 | 支持系统 |
---|---|---|---|---|
JStack_X | 0.1M | 2.0.0 | 2021/7/13 | Linux/Mac/Windows |
插件简介:
JStack_X在JDK自带的jstack工具上进行了增强,除了支持java栈和本地栈的输出外,还可以从锁的角度查看等待或持有锁的线程,另外还可以通过线程名称和nid过滤出特定的线程。
使用说明:
输入h JStack_X@MAZHI后最打印详细的帮助信息,如下:
Command-Name Command-Description
attach use attach on pid.in attach status,pid is optional
detach detach off pid.you must specify pid every time
autocheck detect thread exceptions, such as over-threading,
threads waiting for locks, deadlocks, and continuous
increase in the number of threads
stack to print java frames of java threads for a given pid.
must specified one of -t nid or -nm name options
lock print all locks,theads that waiting or locked will be list
dump dump both java and native frames (mixed mode)
analyze analyze thread dump files, sort out the relationship
among threads, thread pools, stacks, methods, and locks, and
present them through multiple perspectives, alse can be viewed
through XSheepdog
Tips:
for more info about each command, see help.(e.g.,you can use "help stack" or "h stack" to see the detailed usage of the command)
其他:
为了帮助开发者更好的使用本插件排查定位线上问题,这里 XPocket插件jstack_x助力线程问题排查 提供了一些使用案例,如有任何问题,欢迎在讨论区交流。
点赞
6425 阅读