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

使用JRE加jattach方式运行arthas #2870

Open
1 task done
624745142 opened this issue Jul 15, 2024 · 0 comments
Open
1 task done

使用JRE加jattach方式运行arthas #2870

624745142 opened this issue Jul 15, 2024 · 0 comments

Comments

@624745142
Copy link

624745142 commented Jul 15, 2024

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

在JRE环境下,使用[jattach]来attach arthas,成功运行了arthas。

环境信息

  • Arthas 版本: 3.7.2
  • 操作系统版本: CentOS 7.4
  • 目标进程的JVM版本: 1.8

重现问题的步骤

在同一台电脑上的不同docker 容器应用内通过上述方式安装的arthas,当在A容器内通过客户端命令连接到Arthas 后,退出,再进入B容器通过客户端命令连接发现连接到了A容器到JVM,这是什么原因呢?

  1. 在同一台机器上安装AB两个容器应用
  2. 在容器内部通过[jattach]来attach arthas
  3. 进入容器A 通过命令 java -jar /usr/local/arthas/arthas-client.jar 127.0.0.1 3658 连接JVM
  4. 关闭arthas 退出A容器
  5. 进入容器B 通过命令 java -jar /usr/local/arthas/arthas-client.jar 127.0.0.1 3658 连接JVM
  6. 发现连接到了A容器的JVM,通过jad 发现加载的都是A容器的类

期望的结果

期望A/B容器应用连接到自己的JVM

What do you expected from the above steps?

实际运行的结果

在容器B中 通过jad 发现加载的都是A容器的类

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