Skip to content
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

Arthas 3.7.2 logger指令 无任何打印 #2808

Open
807893362 opened this issue Mar 10, 2024 · 1 comment
Open

Arthas 3.7.2 logger指令 无任何打印 #2808

807893362 opened this issue Mar 10, 2024 · 1 comment

Comments

@807893362
Copy link

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

环境信息

  • arthas-boot.jar 或者 as.sh 的版本: 3.7.2
  • Arthas 版本: 3.7.2
  • 操作系统版本: macOS 12.7
  • 目标进程的JVM版本: 1.8 or 17
  • 执行arthas-boot的版本: 3.7.2

重现问题的步骤

  1. java -jar arthas-demo.jar 
  2. java -jar arthas-packaging-3.7.2-bin/arthas-boot.jar
  3. 选择工程编号
  4. logger
  5. sc -d com.example.demo.task.LogTask | grep classLoaderHash
  6. logger --name com.example.demo.task.LogTask --level debug -c 7c3df479

期望的结果

logger, 指令正常打印日志相关参数
logger --name com.example.demo.task.LogTask --level debug -c 7c3df479 ,正常修改日志级别

实际运行的结果

logger ,指令不打印任何信息
logger --name com.example.demo.task.LogTask --level debug -c 7c3df479 ,指令修改不成功

源码地址:
https://github.com/807893362/ArthasDemo

@hengyunabc
Copy link
Collaborator

jdk 17 不一定能成功。 jdk 8是没问题的。

#2659

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants