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

arthas-spring-boot-starter依赖启动的应用stop后无法再重连 #1763

Closed
1 task
cookiejoo opened this issue Apr 12, 2021 · 6 comments
Closed
1 task

Comments

@cookiejoo
Copy link

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

环境信息

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

重现问题的步骤

  1. 依赖arthas-spring-boot-starter
  2. 在tenner-server控制台里面连接
  3. 在输入stop命令退出
  4. 再连接就出现黑框框,没有直接attach进去了

期望的结果

能再次进入使用arthas界面

请问这种情况怎么解决?除非屏蔽stop命令,否则无法再次使用,只能重启应用才行。

@hengyunabc
Copy link
Collaborator

目前是stop之后,就不能再连了。后面考虑在 starter情况下,禁用掉stop命令。

@hengyunabc
Copy link
Collaborator

3.5.2 的版本里, starter启动的 arthas已经默认禁止 stop命令了。

@LockiJiang
Copy link

3.5.2 的版本里, starter启动的 arthas已经默认禁止 stop命令了。

刚才使用,默认配置下,stop仍旧被停止了

@hengyunabc
Copy link
Collaborator

3.5.2 的版本里, starter启动的 arthas已经默认禁止 stop命令了。

刚才使用,默认配置下,stop仍旧被停止了

仔细检查版本,实测是工作的:

image

@LockiJiang
Copy link

3.5.2 的版本里, starter启动的 arthas已经默认禁止 stop命令了。

刚才使用,默认配置下,stop仍旧被停止了

仔细检查版本,实测是工作的:

感谢回复!
最终测试结果如下

一、application.yml不做任何配置,全部以arthas默认配置运行,stop未被禁止

图片

二、application.yml中配置disabledCommands,stop命令被阻止

图片

综上,arthas默认配置不生效,原因是ArthasProperties中配置信息未放进mapWithPrefix

图片

图片

@hengyunabc
Copy link
Collaborator

@LockiJiang 谢谢测试,具体原因参考: #1853

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

3 participants