mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
590 B
590 B
Specify classloader
The classloader that loads the class can be found through the sc{{}} command.
sc -d org.springframework.context.ApplicationContext{{exec}}
After obtaining the hashcode of org.springframework.boot.loader.LaunchedURLClassLoader using the above command, you can use the -c or --classloader parameter to specify it. Here, we use --classLoaderClass to specify the classloader:
vmtool --action getInstances --classLoaderClass org.springframework.boot.loader.LaunchedURLClassLoader --className org.springframework.context.ApplicationContext{{execute T2}}