
参考
,---. ,------. ,--------.,--. ,--. ,---. ,---.
/ O \ | .--. ''--. .--'| '--' | / O \ ' .-'
| .-. || '--'.' | | | .--. || .-. |`. `-.
| | | || |\ \ | | | | | || | | |.-' |
`--' `--'`--' '--' `--' `--' `--'`--' `--'`-----'
wiki https://arthas.aliyun.com/doc
tutorials https://arthas.aliyun.com/doc/arthas-tutorials.html
version 4.0.4
main_class
pid 1725
time 2024-11-25 20:22:13.034
[arthas@1725]$ 1725
java.lang.IllegalArgumentException: 1725: command not found
[arthas@1725]$ sc -d LoginController.class grep classLoaderHash
Affect(row-cnt:0) cost in 42 ms.
[arthas@1725]$ sc -d Login* grep classLoaderHash
Affect(row-cnt:0) cost in 6 ms.
[arthas@1725]$ sc -d *LoginController grep classLoaderHash
class-info xxx.controller.LoginController
code-source file:/home/armin/promise-1.0-SNAPSHOT.jar!/BOOT-INF/classes!/
name xxx.controller.LoginController
isInterface false
isAnnotation false
isEnum false
isAnonymousClass false
isArray false
isLocalClass false
isMemberClass false
isPrimitive false
isSynthetic false
simple-name LoginController
modifier public
annotation org.springframework.web.bind.annotation.RestController,org.springframework.web.bind.annotation.RequestMapping
interfaces
super-class +-java.lang.Object
class-loader +-org.springframework.boot.loader.LaunchedURLClassLoader@96532d6
+-sun.misc.Launcher$AppClassLoader@3581c5f3
+-sun.misc.Launcher$ExtClassLoader@5f341870
classLoaderHash 96532d6
Affect(row-cnt:1) cost in 57 ms.
[arthas@1725]$ redefine -c 96532d6 /home/LoginController.class
redefine error! java.lang.UnsupportedOperationException: class redefinition failed: attempted to change the schema (add/remove fields)
[arthas@1725]$
[arthas@1725]$ redefine -c 96532d6 /home/LoginController.class
redefine success, size: 1, classes:
xxx.controller.LoginController
[arthas@1725]$
5296

被折叠的 条评论
为什么被折叠?



