Skip to content

watch 业务类toString()方法概率也会watch到arthas自身ObjectView中renderObject的toString方法,造成递归 #3083

Open

Description

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

环境信息

  • arthas-boot.jar 或者 as.sh 的版本: 4.0.5
  • Arthas 版本: 4.0.5
  • 操作系统版本: windows
  • 目标进程的JVM版本: 8
  • 执行arthas-boot的版本: 4.0.5

重现问题的步骤

  1. watch com.fubukiss.rikky.dto.DishDto toString '{target}' -n 5 -x 1
Image
  1. 输出值的过程中调用了业务类的toString方法,又会被watch到,进而又会输出值,又会被watch到,所以会递归。

期望的结果

希望arthas排除掉调用toString方法,或者调用时能够被过滤掉。

实际运行的结果

Image

Activity

  1. added 4 commits that reference this issue on Mar 24, 2026
    dc417f2
    bfe1ef7
    ff7e2b8
    b552f81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions