我嘗試使用下面的代碼來訪問JBoss的4.2版的MBean註冊爲 jboss.web:type=Manager,path=/,host=localhost
: ObjectName name = new ObjectName("jboss.web:type=Manager,path=/,host=localhost");
ManagementFactory.getPlatformMBeanS
當試圖通過下面的代碼 public static String heapMemUsage()
{
long used = ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getUsed();
long max = ManagementFactory.getMemoryMXBean().getHeapMemory
我創建了一些實現接口的bean,並創建了一個自定義的MBean導出器,將這些bean公開到jconsole。 雖然一切工作正常,說明未正確顯示。 在bean的頂部我看到: Java Class : $Proxy483
Description : Information on the management interface of the MBean
,並在屬性的描述,我看到的操作: Oper