问题:java -jar arthas-boot.jar报错
[ERROR] Can not read maven-metadata.xml from: https://maven.aliyun.com/repository/public/com/taobao/arthas/arthas-packa ging/maven-metadata.xml
[ERROR] Can not find Arthas under local: /root/.arthas/lib and remote maven repo mirror: aliyun
[ERROR] Unable to download arthas from remote server, please download the full package according to wiki: https://githu b.com/alibaba/arthas
解决办法:
由于组网限制,不能访问外网,需要全量安装
https://github.com/alibaba/arthas/issues/341
或者直接在官网下载全量包(bin)
https://github.com/alibaba/arthas/releases
问题:无法建立socket连接
com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded
at sun.tools.attach.LinuxVirtualMachine.<init>(LinuxVirtualMachine.java:106)
at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(LinuxAttachProvider.java:78)
at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:250)
at com.taobao.arthas.core.Arthas.attachAgent(Arthas.java:86)
at com.taobao.arthas.core.Arthas.<init>(Arthas.java:28)
at com.taobao.arthas.core.Arthas.main(Arthas.java:124)
解决办法:
将arthas的文件夹权限设为777 : chmod 777 arthas
切换到普通用户,设置java 环境变量 .
java -jar arthas-boot.jar