Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我似乎记得 JMX 控制台中的一些功能,它允许您输入类名,并查看加载它的类加载器,以及从哪些资源加载类。不幸的是,我似乎找不到这个。对于独立应用程序,我一直使用JWhich工具来获取此信息。
我正在使用 JBoss 4.2.0 GA,在 JMX 控制台中,我发现我的组件类型为archive==。进入这个 MBean 显示:
MBean Java Class: org.jboss.mx.loading.HeirarchicalLoaderRepository3
然后我只需要调用:
displayClassInfo()
用我的完全限定的班级名称。
尝试 JBoss Profiler 或任何其他分析器。