arthas启动后选择pid报错
报错如下:
[ERROR] Can not read maven-metadata.xml from: https://maven.aliyun.com/repository/public/com/taobao/arthas/arthas-packaging/maven-metadata.xml
[ERROR] Can not find Arthas under local: /root/.arthas/lib and remote: aliyun
网络不通,直接下载全量包,解压使用。
github解答: https://github.com/alibaba/arthas/issues/1058
arthas 3658端口占用错误
报错如下:
[ERROR] Target process 19045 is not the process using port 3658, you will connect to an unexpected process.
[ERROR] 1. Try to restart arthas-boot, select process 2452, shutdown it first with running the 'shutdown' command.
[ERROR] 2. Or try to use different telnet port, for example: java -jar arthas-boot.jar --telnet-port 9998 --http-port -1
netstat -anp | grep 3658 可以看到占用端口的进程id,按照日志最后提示的方法,指定端口即可
java -jar arthas-boot.jar --telnet-port 9998 --http-port -1