Commit d873e5f5 d873e5f5ca1c4cffeb1ab0ad005bac1db000c50f by Christian Gerdes

Ny version som hämtar GC info

Dock räknar den fel på Allocation Rate när heap size minskar från
föregående sampling.
1 parent f95dafd9
javaw.exe -Dcom.sun.management.jmxremote.ssl=false -cp "wls-10.3.6.0.161018.2/wljmxclient.jar;jconsole.1.8.0_91.jar" sun.tools.jconsole.JConsole "service:jmx:rmi:///jndi/iiop://u01891.ef.kap.rsv.se:17020/weblogic.management.mbeanservers.runtime"
\ No newline at end of file
javaw.exe -Dcom.sun.management.jmxremote.ssl=false -cp "wls-10.3.6.0.161018.2/wljmxclient.jar;jconsole.1.8.0_91.jar" sun.tools.jconsole.JConsole "service:jmx:rmi:///jndi/iiop://u02878.ht.kap.rsv.se:17040/weblogic.management.mbeanservers.runtime"
\ No newline at end of file
......@@ -19,9 +19,12 @@ public class TestRunner {
Long ts1 = System.currentTimeMillis();
JmxMon mon1 = new JmxMon("service:jmx:iiop:///jndi/iiop://u30457:29722/weblogic.management.mbeanservers.runtime"); // 10.3.6.0.161018.2
//JmxMon mon1 = new JmxMon("service:jmx:iiop:///jndi/iiop://u30457:29722/weblogic.management.mbeanservers.runtime"); // 10.3.6.0.161018.2
//JmxMon mon1 = new JmxMon("service:jmx:rmi:///jndi/iiop://u30128:23032/weblogic.management.mbeanservers.runtime"); // 10.3.6.0.161018.2
//JmxMon mon2 = new JmxMon("service:jmx:rmi:///jndi/iiop://u30009:26732/weblogic.management.mbeanservers.runtime"); // 10.3.6.0.12.1
//JmxMon mon1 = new JmxMon("service:jmx:rmi:///jndi/iiop://u02878.ht.kap.rsv.se:17040/weblogic.management.mbeanservers.runtime"); // 10.3.6.0.161018.2 PS
//JmxMon mon1 = new JmxMon("service:jmx:rmi:///jndi/iiop://u01891.ef.kap.rsv.se:17020/weblogic.management.mbeanservers.runtime"); // 10.3.6.0.161018.2 CMS
JmxMon mon1 = new JmxMon("service:jmx:rmi:///jndi/iiop://u30450:34502/weblogic.management.mbeanservers.runtime"); // CMS
mon1.open();
//mon2.open();
jmxList.add(mon1);
......@@ -41,16 +44,33 @@ public class TestRunner {
mon.getData();
time = System.currentTimeMillis() - ts1;
System.out.println(mon.getServerName() + " called in " + time + "ms");
System.out.println(mon.getServerName() + " Process CPU %: " + mon.getCPUPercent());
System.out.println(mon.getServerName() + " Process Threads #: " + mon.getThreads());
System.out.println(mon.getServerName() + " Process Loaded Classes #: " + mon.getLoadedClassCount());
System.out.println(mon.getServerName() + " Process File Descriptors %: " + mon.getSystemFileDescriptorsPercentUsed());
System.out.println(mon.getServerName() + " System Load (per cpu): " + mon.getAverageLoadPerCpu());
System.out.println(mon.getServerName() + " System Load (total): " + mon.getAverageLoad());
System.out.println(mon.getServerName() + " System Memory %: " + mon.getSystemMemoryPercentUsed());
System.out.println(mon.getServerName() + " System Swap %: " + mon.getSystemSwapPercentUsed());
System.out.println(" Process CPU %: " + mon.getCPUPercent());
System.out.println(" Process Threads #: " + mon.getThreads());
System.out.println(" Process Loaded Classes #: " + mon.getLoadedClassCount());
System.out.println(" Process File Descriptors %: " + mon.getSystemFileDescriptorsPercentUsed());
System.out.println(" Process Heap Used %: " + mon.getHeapUsedPercent());
System.out.println(" Process Heap Used MB: " + mon.getHeapUsedMB());
System.out.println(" Allocation Rate MB/s: " + mon.getHeapAllocationRateMBps());
if(mon.isGCType(JmxMon.PS)) {
System.out.println(" PS OldGen Used %: " + mon.getPSOldGenUsedPercent());
System.out.println(" PS OldGen Used MB: " + mon.getPSOldGenUsedMB());
System.out.println(" PS OldGen After Major GC MB: " + mon.getPSMarkSweepOldGenAfterGCMB());
System.out.println(" PS PermGen After Major GC MB: " + mon.getPSMarkSweepPermGenAfterGCMB());
}
if(mon.isGCType(JmxMon.CMS)) {
System.out.println(" CMS OldGen Used %: " + mon.getCMSOldGenUsedPercent());
System.out.println(" CMS OldGen Used MB: " + mon.getCMSOldGenUsedMB());
System.out.println(" CMS OldGen After Major GC MB: " + mon.getCMSMarkSweepOldGenAfterGCMB());
System.out.println("CMS PermGen After Major GC MB: " + mon.getCMSMarkSweepPermGenAfterGCMB());
}
System.out.println(" System Load (per cpu): " + mon.getAverageLoadPerCpu());
System.out.println(" System Load (total): " + mon.getAverageLoad());
System.out.println(" System Memory %: " + mon.getSystemMemoryPercentUsed());
System.out.println(" System Swap %: " + mon.getSystemSwapPercentUsed());
System.out.println();
//mon.dumpDeltas();
}
Thread.sleep(15000);
}
......