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

当服务器存在多个java进程的时候会默认选择第1个进行热部署的问题 #14

Open
smallWhiteFK opened this issue May 12, 2021 · 2 comments

Comments

@smallWhiteFK
Copy link

当服务器存在多个java进程的时候会默认选择第1个进行热部署,有些情况下第一个进程并不是我想要部署的进程,导致我必须要kill 掉无用的java进程,这种情况下是否可以在 sh 后支持手动输入参数指定要部署的进程号

@xxxtai
Copy link
Owner

xxxtai commented May 17, 2021

在多Java进程环境中只能选择第一个进程,但是很有可能第一个并不是目标attach进程,最新插件增加了自定义选择Java进程的方式,通过指定Java进程的启动类名来指定Arthas需要attach的进程。设置方法:Preference -> Tools -> Arthas Hot Swap,在Enter Java Process中输入需要指定的Java 进程的启动类名。

@hackeryutu
Copy link

我们的idea里面有多个服务, 可能会同时改两个服务。 这样在settings里面配启动类名就很不方便

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