Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine what classes have been loaded from where in JBoss

I seem to remember some function in the JMX console which allows you to type in a class name, and see the classloaders which loaded it, and from which resources the class was loaded from. Unfortunately, I can't seem to find this. For standalone apps, I've always used the JWhich tool to get this information.

like image 223
brianegge Avatar asked Dec 31 '25 16:12

brianegge


1 Answers

I'm using JBoss 4.2.0 GA, and in the JMX console, I found my component with a type archive==. Going into this MBean shows:

MBean Java Class:   org.jboss.mx.loading.HeirarchicalLoaderRepository3

Then I just had to invoke:

displayClassInfo()

with my fully qualified class name.

like image 50
brianegge Avatar answered Jan 03 '26 06:01

brianegge



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!