Hi, All
It seems the structure of Weblogic9 MBeans change a lot.
I can't access JVMRuntime anymore. (with latest wlshell)
say. Now I have to use:
"get runtime.com.bea:/ServerRuntime/$Server/State"
to get state rather than "get /ServerRuntime/$Server/State"
and there is no JVMRuntime under first level as well as ServerRuntime
I can't use "get /JVMRuntime/$Server/HeapFreeCurrent"
and neither "get /ServerRuntime/$Server/JVMRuntime/HeapFreeCurrent"
Is there any way to support it in wlshell?
BTW: I can get this by Java Code:
ObjectName runtimeService = new
ObjectName("com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanserv\
ers.domainruntime.DomainRuntimeServiceMBean");
//MBeanInfo info = conn.getMBeanInfo(runtimeService);
ObjectName[] serverRuntimes = (ObjectName[])
conn.getAttribute(runtimeService, "ServerRuntimes");
ObjectName jvmRuntime = (ObjectName)
conn.getAttribute(serverRuntime, "JVMRuntime");
Long heapFree = (Long) conn.getAttribute(jvmRuntime,
"HeapFreeCurrent");
}
Thanks!
Neo