How to Monitor Heap Size or JVM WebSphere Application Server Usage
JVM WebSphere Application Server heap size usage how can be monitored? So, here are few easy steps that can be performed to achieve this requirement: Create a file named as, showHeapSize.py and add the following code than save and exit: serverJVM=AdminControl.completeObjectName(‘type=JVM,process=’ + sys.argv[0] + ‘,*’) serverJVMObj=AdminControl.makeObjectName(serverJVM) perf=AdminControl.completeObjectName(‘type=Perf,process=’ + sys.argv[0] + ‘,*’) perfObj=AdminControl.makeObjectName(perf) jvmObj=AdminControl.invoke_jmx(perfObj,’getStatsObject’,[serverJVMObj,java.lang.Boolean(‘false’)],[‘javax.management.ObjectName’,’java.lang.Boolean’]) currentHeapsize=jvmObj.getStatistic(‘HeapSize’).getCurrent() usedMemory=jvmObj.getStatistic(‘UsedMemory’).getCount() …
July 18, 2018




