java程序明明启动着呢, 为什么连接不到, 检测方法运行时间也不行, 在内存中找不到该类, 报以下错误
[arthas@3078]$ trace com.yh.maduoyu.batch.TestAvitor testAvitor
Affect(class count: 0 , method count: 0) cost in 77 ms, listenerId: 1
No class or method is affected, try:
1. sm CLASS_NAME METHOD_NAME to make sure the method you are tracing actually exists (it might be in your parent class).
2. reset CLASS_NAME and try again, your method body might be too large.
3. check arthas log: /root/logs/arthas/arthas.log
4. visit https://github.com/alibaba/arthas/issues/47 for more details.
可以根据arthas官网的提示查看
https://github.com/alibaba/arthas/issues/47
$HOME/logs/arthas/arthas.log
中查找有没有Method code too large的异常$
符号拼出正确的类名,比如sc outer-class$inner-class
java.*
)默认不能进行增强,需要增强是请参考这里的unsafe开关,增强系统类时请谨慎操作您好,我是问答小助手,你的问题已经有小伙伴为您解答了问题,您看下是否解决了您的问题。
如果有您比较满意的答案 / 帮您提供解决思路的答案,可以点击【采纳】按钮,给回答的小伙伴一些鼓励哦~~