[alibaba/arthas]仅拥有IPV6的机器,无法使用

2024-08-05 892 views
7
环境信息
  • arthas-boot.jar 的版本: 3.6.7
  • Arthas 版本: 3.6.7
  • 操作系统版本: linux
  • 目标进程的JVM版本: jdk1.8.0_181
  • 执行arthas-boot的版本: 3.6.7
重现问题的步骤

curl -O https://arthas.aliyun.com/arthas-boot.jar java -jar arthas-boot.jar [INFO] JAVA_HOME: /xxx/xxx/jdk/jdk1.8.0_181/jre [INFO] arthas-boot version: 3.6.7 [INFO] Found existing java process, please choose one and input the serial number of the process, eg : 1. Then hit ENTER.

1 [ERROR] Can not read arthas version from: https://arthas.aliyun.com/api/latest_version [ERROR] Can not find Arthas under local: /root/.arthas/lib and remote repo mirror: aliyun [ERROR] Unable to download arthas from remote server, please download the full package according to wiki: https://github.com/alibaba/arthas

期望的结果

正常启动

实际运行的结果

报错,未正常启动,错误信息如下

[ERROR] Can not read arthas version from: https://arthas.aliyun.com/api/latest_version
[ERROR] Can not find Arthas under local: /root/.arthas/lib and remote repo mirror: aliyun
[ERROR] Unable to download arthas from remote server, please download the full package according to wiki: https://github.com/alibaba/arthas

回答

5

jdk8默认是ipv4,可以手动指定ipv6 java -Djava.net.preferIPv6Addresses=true -jar arthas-boot.jar 599

8

感谢 @chenqx33 ,指定ipv6可以解这个问题