-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Improve the mechanism of the mc command to search for java packages and classes #661
Comments
Package to test: |
@hnlsping 你是什么环境的shell?操作系统是什么? 怎么执行的? |
我是阿里云ECS linux centos 6.5
直接 java -jar arthas-boot.jar
在 2019-04-30 14:42:57,"hengyunabc" <[email protected]> 写道:
@hnlsping 你是什么环境的shell?操作系统是什么? 怎么执行的?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
系统里面是存在两个版本的 3.1.0跟这个3.1.1 , 3.1.0正常运行没问题, 3.1.1才会出现这个问题 |
@hnlsping 具体怎么执行的?解压之后,cd到目录里,再执行 |
先解压到 /root/.arthas/lib/3.1.1/arthas 目录 |
@hnlsping 直接在 /tmp 目录解压呢? 解压到 |
直接在/tmp目录解压是一样的问题
log日志:
Arthas server agent start...
Agent jar file does not exist: %2Ftmp%2Farthas-core.jar
At 2019-04-30 16:21:01, "hengyunabc" <[email protected]> wrote:
@hnlsping 直接在 /tmp 目录解压呢? 解压到 ~/.arthas 目录可能判断有问题。
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@hnlsping 原来的进程可能要重启下。或者试下启动 arthas-demo来测试下。 |
因为 因为新版本修改了 AgentBootstrap 的逻辑,所以需要重启应用才能生效。
|
重启原有应用就可以了,非常感谢~~~
在 2019-04-30 17:08:29,"hengyunabc" <[email protected]> 写道:
因为 arthas-agent.jar 它是被 AppClassLoader 加载的,它是agent的入口,之前attach过之后,它会一直被使用。即使用户使用新版本,重新attach,还是用的最开始的版本。
因为新版本修改了 AgentBootstrap 的逻辑,所以需要重启应用才能生效。
$ sc -d com.taobao.arthas.agent.AgentBootstrap
class-info com.taobao.arthas.agent.AgentBootstrap
code-source /Users/hengyunabc/.arthas/lib/3.1.0/arthas/arthas-agent.jar
name com.taobao.arthas.agent.AgentBootstrap
isInterface false
isAnnotation false
isEnum false
isAnonymousClass false
isArray false
isLocalClass false
isMemberClass false
isPrimitive false
isSynthetic false
simple-name AgentBootstrap
modifier public
annotation
interfaces
super-class +-java.lang.Object
class-loader +-sun.misc.Launcher$AppClassLoader@3d4eac69
+-sun.misc.Launcher$ExtClassLoader@1e8e3531
classLoaderHash 3d4eac69
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
The text was updated successfully, but these errors were encountered: