< prev index next >

test/hotspot/jtreg/serviceability/tmtools/jstat/utils/JstatGcResults.java

Print this page




  86 
  87         float S1C = getFloatValue("S1C");
  88         float S1U = getFloatValue("S1U");
  89         assertThat(S1U <= S1C, "S1U > S1C (utilization > capacity)");
  90 
  91         float EC = getFloatValue("EC");
  92         float EU = getFloatValue("EU");
  93         assertThat(EU <= EC, "EU > EC (utilization > capacity)");
  94 
  95         int YGC = getIntValue("YGC");
  96         float YGCT = getFloatValue("YGCT");
  97         assertThat(YGCT >= 0, "Incorrect time value for YGCT");
  98         if (YGC > 0) {
  99             assertThat(YGCT > 0, "Number of young generation GC Events is " + YGC + ", but YGCT is 0");
 100         }
 101 
 102         float GCT = getFloatValue("GCT");
 103         assertThat(GCT >= 0, "Incorrect time value for GCT");
 104         assertThat(GCT >= YGCT, "GCT < YGCT (total garbage collection time < young generation garbage collection time)");
 105 
 106         int CGC = getIntValue("CGC");
 107         float CGCT = getFloatValue("CGCT");
 108         assertThat(CGCT >= 0, "Incorrect time value for CGCT");






 109         if (CGC > 0) {


 110             assertThat(CGCT > 0, "Number of concurrent GC events is " + CGC + ", but CGCT is 0");
 111         }
 112 
 113         int FGC = getIntValue("FGC");
 114         float FGCT = getFloatValue("FGCT");
 115         assertThat(FGCT >= 0, "Incorrect time value for FGCT");
 116         if (FGC > 0) {
 117             assertThat(FGCT > 0, "Number of full GC events is " + FGC + ", but FGCT is 0");
 118         }
 119 
 120         assertThat(GCT >= FGCT, "GCT < YGCT (total garbage collection time < full generation garbage collection time)");
 121 
 122         assertThat(checkFloatIsSum(GCT, YGCT, CGCT, FGCT), "GCT != (YGCT + CGCT + FGCT) " + "(GCT = " + GCT + ", YGCT = " + YGCT
 123                 + ", CGCT = " + CGCT + ", FGCT = " + FGCT + ", (YCGT + CGCT + FGCT) = " + (YGCT + CGCT + FGCT) + ")");
 124     }
 125 }


  86 
  87         float S1C = getFloatValue("S1C");
  88         float S1U = getFloatValue("S1U");
  89         assertThat(S1U <= S1C, "S1U > S1C (utilization > capacity)");
  90 
  91         float EC = getFloatValue("EC");
  92         float EU = getFloatValue("EU");
  93         assertThat(EU <= EC, "EU > EC (utilization > capacity)");
  94 
  95         int YGC = getIntValue("YGC");
  96         float YGCT = getFloatValue("YGCT");
  97         assertThat(YGCT >= 0, "Incorrect time value for YGCT");
  98         if (YGC > 0) {
  99             assertThat(YGCT > 0, "Number of young generation GC Events is " + YGC + ", but YGCT is 0");
 100         }
 101 
 102         float GCT = getFloatValue("GCT");
 103         assertThat(GCT >= 0, "Incorrect time value for GCT");
 104         assertThat(GCT >= YGCT, "GCT < YGCT (total garbage collection time < young generation garbage collection time)");
 105 
 106         int CGC = 0;
 107         float CGCT = 0.0f;
 108         try {
 109             CGC = getIntValue("CGC");
 110         } catch (NumberFormatException e) {
 111             if (!e.getMessage().equals("Unparseable number: \"-\"")) {
 112                 throw e;
 113             }
 114         }
 115         if (CGC > 0) {
 116             CGCT = getFloatValue("CGCT");
 117             assertThat(CGCT >= 0, "Incorrect time value for CGCT");
 118             assertThat(CGCT > 0, "Number of concurrent GC events is " + CGC + ", but CGCT is 0");
 119         }
 120 
 121         int FGC = getIntValue("FGC");
 122         float FGCT = getFloatValue("FGCT");
 123         assertThat(FGCT >= 0, "Incorrect time value for FGCT");
 124         if (FGC > 0) {
 125             assertThat(FGCT > 0, "Number of full GC events is " + FGC + ", but FGCT is 0");
 126         }
 127 
 128         assertThat(GCT >= FGCT, "GCT < YGCT (total garbage collection time < full generation garbage collection time)");
 129 
 130         assertThat(checkFloatIsSum(GCT, YGCT, CGCT, FGCT), "GCT != (YGCT + CGCT + FGCT) " + "(GCT = " + GCT + ", YGCT = " + YGCT
 131                 + ", CGCT = " + CGCT + ", FGCT = " + FGCT + ", (YCGT + CGCT + FGCT) = " + (YGCT + CGCT + FGCT) + ")");
 132     }
 133 }
< prev index next >