Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

as.sh/arthas-boot support width/height options #422

Closed
1 task
hanboyuan opened this issue Jan 3, 2019 · 2 comments
Closed
1 task

as.sh/arthas-boot support width/height options #422

hanboyuan opened this issue Jan 3, 2019 · 2 comments
Milestone

Comments

@hanboyuan
Copy link

  • 我已经在 issues 里搜索,没有重复的issue。

环境信息

  • arthas-boot.jar 或者 as.sh 的版本:3.0.5
  • Arthas 版本: 3.0.5
  • 操作系统版本: centos6.5
  • 目标进程的JVM版本: jdk1.8.0_20
  • 执行arthas-boot的版本: 3.0.5

重现问题的步骤

  1. 批处理脚本test.as 中填写dashboard -b -n 1
  2. java -jar arthas-client.jar -f test.as 127.0.0.1 3658
  3. 返回数据

期望的结果

ID NAME GROUP PRIORITY STATE %CPU TIME INTERRUPTED DAEMON
156 UNP-WriteLog2FileThread-tpLogger consumer_notification_jmq433 5 TIMED_WAITING 15 59:10 false true
158 UNP-WriteLog2FileThread-jvmLogger consumer_notification_jmq433 5 TIMED_WAITING 14 58:36 false true
153 UNP-WriteLog2FileThread-aliveLogger consumer_notification_jmq433 5 TIMED_WAITING 13 58:52 false true
98 System_Clock main 5 TIMED_WAITING 11 65:58 false true
157 UNP-WriteLog2FileThread-commonLogger consumer_notification_jmq433 5 TIMED_WAITING 10 58:44 false true
154 UNP-WriteLog2FileThread-businessLogger consumer_notification_jmq433 5 TIMED_WAITING 9 58:58 false true
155 UNP-WriteLog2FileThread-bizLogger consumer_notification_jmq433 5 TIMED_WAITING 8 58:49 false true
891 Timer-for-arthas-dashboard-92afc898-4226-483d-bfd5-dec0e84dad78 system 10 RUNNABLE 6 0:0 false true
27 Log4j2-TF-3-AsyncLoggerConfig-1 main 5 TIMED_WAITING 2 12:28 false true
28 Abandoned connection cleanup thread main 5 TIMED_WAITING 0 1:15 false true
729 AsyncAppender-Worker-arthas-cache.result.AsyncAppender system 9 WAITING 0 0:0 false true
727 Attach Listener system 9 RUNNABLE 0 0:0 false true
43 CLIENT_SIDE_RINGBUFFER main 5 WAITING 0 0:4 false true
110 ChannelEvent main 5 TIMED_WAITING 0 0:7 false true
113 ChannelEvent main 5 TIMED_WAITING 0 0:7 false true
115 ChannelEvent main 5 TIMED_WAITING 0 0:7 false true
103 ClearTimeout main 5 TIMED_WAITING 0 0:11 false false
105 ClusterManager main 5 TIMED_WAITING 0 0:7 false true
106 ClusterUpdater main 5 TIMED_WAITING 0 0:21 false true
111 ConsumerGuarder - 1 main 5 TIMED_WAITING 0 0:1 false true
109 FailoverEvent main 5 TIMED_WAITING 0 0:7 false true
112 FailoverEvent main 5 TIMED_WAITING 0 0:7 false true
114 FailoverEvent main 5 TIMED_WAITING 0 0:6 false true
3 Finalizer system 8 WAITING 0 0:0 false true
Memory used total max usage GC
heap 131M 2969M 2969M 4.41% gc.parnew.count 62
par_eden_space 41M 819M 819M 5.09% gc.parnew.time(ms) 5490
par_survivor_space 60M 102M 102M 59.11% gc.concurrentmarksweep.count 1
cms_old_gen 28M 2048M 2048M 1.41% gc.concurrentmarksweep.time(ms) 493
nonheap 85M 106M -1 80.12%
code_cache 23M 43M 240M 9.95%
metaspace 55M 56M -1 98.25%
compressed_class_space 6M 6M 1024M 0.61%
direct 7K 7K - 100.03%
mapped 0K 0K - NaN%

Runtime
os.name Linux
os.version 3.10.0-693.5.2.el7.xxx_3311.x86_64
java.version 1.8.0_20
java.home /export/servers/jdk1.8.0_20/jre
systemload.average 7.11
processors 64
uptime 425835s

返回的数据中heap的max没展示出来
par_eden_space的百分比没出来
内存部分nonheap的所有东西都没显示出来
正常shell状态进去,dashboard -b -n 1 命令正常返回数据
gc部分也缺少gc.concurrentmarksweep.time(ms)

实际运行的结果

实际运行结果,最好有详细的日志,异常栈。尽量贴文本。

ID     NAME                GROUP        PRIORI STATE %CPU   TIME   INTER DAEMON 
98     System_Clock        main         5      TIMED 12     66:4   false true   
158    UNP-WriteLog2FileTh consumer_not 5      TIMED 12     58:42  false true   
156    UNP-WriteLog2FileTh consumer_not 5      TIMED 12     59:15  false true   
154    UNP-WriteLog2FileTh consumer_not 5      TIMED 11     59:4   false true   
153    UNP-WriteLog2FileTh consumer_not 5      TIMED 9      58:58  false true   
155    UNP-WriteLog2FileTh consumer_not 5      TIMED 9      58:55  false true   
157    UNP-WriteLog2FileTh consumer_not 5      TIMED 9      58:50  false true   
900    Timer-for-arthas-da system       10     RUNNA 7      0:0    false true   
27     Log4j2-TF-3-AsyncLo main         5      TIMED 1      12:29  false true   
800    nioEventLoopGroup-2 system       10     RUNNA 1      0:0    false false  
Memory           used  total max  usage GC                                      
heap             252M  2969M      8.49% gc.parnew.count     62                  
par_eden_space   162M  819M  819M       gc.parnew.time(ms)  5490                
par_survivor_spa 60M   102M  102M 59.11 gc.concurrentmarksw 1                   
ce                                %     eep.count                               
cms_old_gen      28M   2048M      1.41%                                         
Runtime                                                                         
os.name             Linux                                                       
os.version          3.10.0-693.5.2.el7.                                         
                   xxx_3311.x86_64                                              
java.version        1.8.0_20                                                    
                                                                                
Process ends after 1 time(s).
@hengyunabc
Copy link
Collaborator

这个是因为窗口大小的问题。 在命令行里打开的shell窗口会比, batch mode的要大。batch mode的是一个固定大小的。

目前arthas-boot.jar不支持传入窗口大小信息,后面考虑加上支持。

@hanboyuan
Copy link
Author

@hengyunabc 感谢

@hengyunabc hengyunabc added this to the 3.1.0 milestone Feb 13, 2019
@hengyunabc hengyunabc changed the title arthas3.0.5版本批处理脚本回显不完整 as.sh/arthas-boot support width/height options Feb 13, 2019
lzc-alioo pushed a commit to lzc-alioo/arthas that referenced this issue May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants