arthas
arthas copied to clipboard
watch命令在verbose模式下,打印更多信息
比如:
$ watch java.lang.Exception *
Press Q or Ctrl+C to abort.
Affect(class count: 1 , method count: 1) cost in 13437 ms, listenerId: 1
实际上,很多类被过滤掉了,查看~/logs/arthas/arthas.log,可以 发现:
2022-03-24 10:48:17 [arthas-command-execute] INFO c.t.arthas.core.advisor.Enhancer -ignore class: java.lang.IllegalAccessException, reason: class loaded by Bootstrap Classloader, try to execute `options unsafe true`
可以考虑把过滤掉的类和最终增强的类都打印出来。