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

The watch method is called once but receives two results

revolyw opened this issue · comments

  • I have searched the issues of this repository and believe that this is not a duplicate.

Environment

  • Arthas version: 3.6.6
  • Operating System version: macOS 13.3
  • Java version of target JVM: zulu-openjdk11
  • Java version of JVM used to attach: openjdk8
  • skywalking version v8.4.0
  • tip: I used skywalking to integrate arthas. The application uses the arthas probe through the skywalking agent and communicates with the tunnel server

Steps to reproduce this issue

  1. Start a jdk11 application and set jvm options as follows and implements a spring mvc controller method
-Dskywalking.agent.service_name=application-name
-javaagent:/xxxx/skywalking-agent.jar
-Dskywalking.agent.is_cache_enhanced_class=true
-Dskywalking.agent.class_cache_mode=MEMORY
  1. Attach the application through tunnel server console and watch the controller method
  2. Call the controller method once
  3. The console can seen two result as follow
    image

Expected Result

What do you expected from the above steps?

The number of result is the same as the number of calls The number of results is the same as the number of calls

Actual Result

What actually happens?

Call once but receives two results

If there is an exception, please attach the exception trace:

No exception occurs

I decompiled the class using the jad command with the following results
image