You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class Test {
public static void main(String[] args) throws Exception {
A a = new A();
while (true) {
a.methodA();
a.methodB();
Thread.sleep(1000);
}
}
public static class A {
private B b = new B();
public void methodA() {
b.methodA();
b.methodB();
}
public void methodB() {
b.methodB();
b.methodA();
}
}
public static class B {
public void methodA() {
System.out.println("a");
}
public void methodB() {
System.out.println("b");
}
}
}
启动Arthas客户端1,使用命令trace Test$A methodA
启动Arthas客户端2,使用命令trace Test$A methodB
期望的结果
Arthas客户端1
Arthas客户端2
实际运行的结果
Arthas客户端1
Arthas客户端2
The text was updated successfully, but these errors were encountered:
zhong-jie
changed the title
Enhancer增强trace
同时trace同个class内不同method数据异常问题
Jul 22, 2024
环境信息
arthas-boot.jar
或者as.sh
的版本: 3.7.2arthas-boot
的版本: 3.7.2重现问题的步骤
这里增强时用了监控类+调用类+调用方法名+调用方法描述作为Key,当监控类内不同方法调用了调用类的同个方法,会导致数据混乱。
测试用例
trace Test$A methodA
trace Test$A methodB
期望的结果
Arthas客户端1
Arthas客户端2
实际运行的结果
Arthas客户端1
Arthas客户端2
The text was updated successfully, but these errors were encountered: