arthas-boot.jar 或者 as.sh 的版本: 3.2.0arthas-boot的版本: 3.2.0What do you expected from the above steps?
期望Arthas启动时间与其他平台差不多,5秒内启动完毕。
实际运行结果,最好有详细的日志,异常栈。尽量贴文本。
从启动日志来看,初始化花费了20310 ms!
Arthas server agent start...
2020-04-20 09:32:58 [arthas-binding-thread] INFO c.t.arthas.core.util.ArthasBanner -arthas version: 3.2.1-SNAPSHOT
2020-04-20 09:33:08 [nioEventLoopGroup-2-1] INFO i.n.handler.logging.LoggingHandler -[id: 0x98d5a431] REGISTERED
2020-04-20 09:33:08 [nioEventLoopGroup-2-1] INFO i.n.handler.logging.LoggingHandler -[id: 0x98d5a431] BIND: /127.0.0.1:3658
2020-04-20 09:33:08 [nioEventLoopGroup-2-1] INFO i.n.handler.logging.LoggingHandler -[id: 0x98d5a431, L:/127.0.0.1:3658] ACTIVE
2020-04-20 09:33:08 [nioEventLoopGroup-3-1] INFO i.n.handler.logging.LoggingHandler -[id: 0xa685a8fe] REGISTERED
2020-04-20 09:33:08 [nioEventLoopGroup-3-1] INFO i.n.handler.logging.LoggingHandler -[id: 0xa685a8fe] BIND: /127.0.0.1:8563
2020-04-20 09:33:08 [nioEventLoopGroup-3-1] INFO i.n.handler.logging.LoggingHandler -[id: 0xa685a8fe, L:/127.0.0.1:8563] ACTIVE
2020-04-20 09:33:08 [arthas-binding-thread] INFO c.t.a.core.server.ArthasBootstrap -as-server listening on network=127.0.0.1;telnet=3658;http=8563;timeout=6000;
2020-04-20 09:33:18 [arthas-binding-thread] INFO c.t.a.core.server.ArthasBootstrap -as-server started in 20310 ms
Arthas server already bind.
2020-04-20 09:33:18 [nioEventLoopGroup-2-1] INFO i.n.handler.logging.LoggingHandler -[id: 0x98d5a431, L:/127.0.0.1:3658] READ: [id: 0x2b5b4263, L:/127.0.0.1:3658 - R:/127.0.0.1:61555]
2020-04-20 09:33:18 [nioEventLoopGroup-2-1] INFO i.n.handler.logging.LoggingHandler -[id: 0x98d5a431, L:/127.0.0.1:3658] READ COMPLETE
2020-04-20 09:33:19 [nioEventLoopGroup-2-2] INFO c.t.a.core.shell.term.impl.Helper -Loaded arthas keymap file from com/taobao/arthas/core/shell/term/readline/inputrc
可能是没有设置 localhsot的问题,试下把 arthas目录下面的 arthas.properties 里的 arthas.ip=localhost 改为 arthas.ip=127.0.0.1 。
另外,根本问题是 mac下面的 /etc/hosts 里没有绑定 localhost 到 127.0.0.1
/etc/hosts 文件中已经配置好了localhost,http://localhost:8563, telnet localhost 3658 都是可以使用的。应该不是这个配置的问题。
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
把hostname添加到/etc/hosts后注入Arthas时间恢复正常了!
$hostname
mymac.local
//sudo vim /etc/hosts
127.0.0.1 localhost mymac.local