arthas-boot.jar 或者 as.sh 的版本:3.6.1
Arthas 版本: 3.6.1
操作系统版本: xxx
目标进程的JVM版本: 1.8.0_121
执行arthas-boot的版本: 1.8.0_121
重现问题的步骤
attach 启动后,调试 elasticsearch 5.6版本,可以连接elasticsearch
2.执行 trace org.elasticsearch.action.bulk.TransportBulkAction executeBulk '#cost > 1000' 报参数错误
测试后发现,其他java应用执行此命令是正常的。
期望的结果打印出调用栈
实际运行的结果[arthas@8185]$ trace org.elasticsearch.action.bulk.TransportBulkAction executeBulk '#cost > 1000' Error during processing the command: com.taobao.middleware.cli.CLIException, message:Cannot inject value for argument '0', please check $HOME/logs/arthas/arthas.log for more details. [arthas@8185]$ trace a.a run Error during processing the command: com.taobao.middleware.cli.CLIException, message:Cannot inject value for argument '0', please check $HOME/logs/arthas/arthas.log for more details. arthas.log 没有对应的详细错误信息。 只有下面这些无关信息
Arthas server agent start... 2022-05-24 20:19:31 [arthas-binding-thread] INFO c.t.arthas.core.util.ArthasBanner -Current arthas version: 3.6.1, recommend latest version: 3.6.1 2022-05-24 20:19:31 [arthas-binding-thread] INFO c.t.arthas.core.util.ArthasBanner -Current arthas version: 3.6.1, recommend latest version: 3.6.1 2022-05-24 20:19:31 [arthas-binding-thread] INFO c.t.a.core.server.ArthasBootstrap -try to bind telnet server, host: 127.0.0.1, port: 9998. 2022-05-24 20:19:31 [arthas-binding-thread] INFO c.t.a.core.server.ArthasBootstrap -http port is -1, skip bind http server. 2022-05-24 20:19:31 [arthas-NettyHttpTelnetBootstrap-3-1] INFO c.a.a.d.i.n.h.logging.LoggingHandler -[id: 0x655ad8ec] REGISTERED 2022-05-24 20:19:31 [arthas-NettyHttpTelnetBootstrap-3-1] INFO c.a.a.d.i.n.h.logging.LoggingHandler -[id: 0x655ad8ec] BIND: /127.0.0.1:9998 2022-05-24 20:19:31 [arthas-NettyHttpTelnetBootstrap-3-1] INFO c.a.a.d.i.n.h.logging.LoggingHandler -[id: 0x655ad8ec, L:/127.0.0.1:9998] ACTIVE 2022-05-24 20:19:31 [arthas-binding-thread] INFO c.t.a.core.server.ArthasBootstrap -as-server listening on network=127.0.0.1;telnet=9998;http=-1;timeout=6000; 2022-05-24 20:19:31 [arthas-binding-thread] INFO c.t.a.core.server.ArthasBootstrap -as-server started in 1226 ms Arthas server already bind. 2022-05-24 20:19:31 [arthas-NettyHttpTelnetBootstrap-3-1] INFO c.a.a.d.i.n.h.logging.LoggingHandler -[id: 0x655ad8ec, L:/127.0.0.1:9998] READ: [id: 0xde3c5608, L:/127.0.0.1:9998 - R:/127.0.0.1:55878] 2022-05-24 20:19:31 [arthas-NettyHttpTelnetBootstrap-3-1] INFO c.a.a.d.i.n.h.logging.LoggingHandler -[id: 0x655ad8ec, L:/127.0.0.1:9998] READ COMPLETE 2022-05-24 20:19:31 [arthas-NettyHttpTelnetBootstrap-3-2] INFO c.t.a.core.shell.term.impl.Helper -Loaded arthas keymap file from com/taobao/arthas/core/shell/term/readline/inputrc 2022-05-24 20:19:44 [arthas-command-execute] INFO c.t.arthas.core.advisor.Enhancer -enhance matched classes: []