File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ useful-shells
66show-busy-java-threads.sh
77==========================
88
9- 在排查` Java ` 的` CPU ` 性能问题时,找出Java进程中消耗CPU多( top us值过高)的线程 ,查看它的线程栈,从而找出有性能问题的方法调用。
9+ 在排查` Java ` 的` CPU ` 性能问题时( ` top us ` 值过高),找出 ` Java ` 进程中消耗 ` CPU ` 多的线程 ,查看它的线程栈,从而找出有性能问题的方法调用。
1010
1111PS:如何操作可以参见[ @bluedavy ] ( http://weibo.com/bluedavy ) 的《分布式Java应用》的【5.1.1 cpu消耗分析】一节,说得很详细:用` top ` 开启线程显示、找到` CPU ` 高的线程号;手动转成十六进制(可以用` printf %x 1234 ` );jstack,grep十六进制的线程id,找到线程栈。查问题时,会要多次这样操作,太繁琐。
1212
13- 这个脚本的功能是,打印出在运行的` Java ` 进程中,消耗` CPU ` 最多的那5个线程的线程栈。
13+ 这个脚本的功能是,打印出在运行的` Java ` 进程中,消耗` CPU ` 最多的那5个线程的线程栈。
1414
1515示例:
1616
@@ -70,6 +70,7 @@ find-in-jars.sh
7070``` bash
7171find-in-jars.sh ' sofa\.properties'
7272find-in-jars.sh log4j\\ .xml
73+ find-in-jars.sh ' log4j\.xml$'
7374find-in-jars.sh ' log4j\.properties|log4j\.xml'
7475```
7576
You can’t perform that action at this time.
0 commit comments