Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

连接进程时报错 #2948

Open
1 task
otowa123 opened this issue Nov 15, 2024 · 0 comments
Open
1 task

连接进程时报错 #2948

otowa123 opened this issue Nov 15, 2024 · 0 comments

Comments

@otowa123
Copy link

  • 我已经在 issues 里搜索,没有重复的issue。

环境信息

  • arthas-boot.jar 或者 as.sh 的版本: xxx
  • Arthas 版本: 4.0.2
  • 操作系统版本: CentOS 7.8
  • 目标进程的JVM版本: 1.8
  • 执行arthas-boot的版本: 4.0.2

重现问题的步骤

java -jar arthas-boot.jar

期望的结果

默认端口连接进程

实际运行的结果

实际运行结果,最好有详细的日志,异常栈。尽量贴文本。

[INFO] arthas-boot version: 4.0.2
[INFO] Found existing java process, please choose one and input the serial number of the process, eg : 1. Then hit ENTER.
* [1]: 7801 /opt/ztf-data/webapps/app.jar
1
[INFO] arthas home: /usr/local/arthas
[INFO] Try to attach process 7801
Picked up JAVA_TOOL_OPTIONS: 
[INFO] Attach process 7801 success.
[INFO] arthas-client connect 127.0.0.1 3658
Connect to telnet server error: 127.0.0.1 3658
java.net.ConnectException: Connection refused (Connection refused)

ps -ef
root      7801     0  1 09:40 pts/3    00:01:07 java -Xms512m -Xmx2048m -XX:+UseG1GC -jar -Duser.language=zh -Dspring.config.name=bootstrap -Dspring.profiles.active=release -Dspring.extension=yml /opt/ztf-data/webapps


查看arthas.log

2024-11-15 09:40:54 [main] INFO  c.t.a.core.server.ArthasBootstrap -generate random telnet port: 52578
2024-11-15 09:40:54 [main] INFO  c.t.a.core.server.ArthasBootstrap -generate random http port: 42601

arthas.properties为默认配置
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant