alibaba / arthas

Alibaba Java Diagnostic Tool Arthas/Alibaba Java诊断利器Arthas

Home Page:https://arthas.aliyun.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

执行trace命令没有结果

Pan-yancheng opened this issue · comments

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

重现问题的步骤

` */
package com.example

public class RecursiveFunction {

public static void methodA() throws InterruptedException {
    System.out.println("Inside Method A");
    Thread.sleep(1000);
    methodB();
}

public static void methodB() throws InterruptedException {
    System.out.println("Inside Method B");
    Thread.sleep(1000);
    methodA();
}

public static void main(String[] args) throws InterruptedException {
    methodA();
}

}`
在以上代码正常运行过程中,执行trace命令:
trace com.example.RecursiveFunction methodA

期望的结果:
trace结果中看到methodA和methodB循环调用的信息

实际运行结果:
image

为什么看不到trace信息?