8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * Results of running the JstatGcTool ("jstat -gccapacity <pid>") 26 * 27 * Output example: 28 * NGCMN NGCMX NGC S0C S1C EC OGCMN OGCMX OGC OC MCMN MCMX MC YGC FGC 29 * 41984.0 671744.0 41984.0 5248.0 5248.0 31488.0 83968.0 1343488.0 83968.0 83968.0 512.0 110592.0 4480.0 0 0 30 31 * Output description: 32 * NGCMN Minimum new generation capacity (KB). 33 * NGCMX Maximum new generation capacity (KB). 34 * NGC Current new generation capacity (KB). 35 * S0C Current survivor space 0 capacity (KB). 36 * S1C Current survivor space 1 capacity (KB). 37 * EC Current eden space capacity (KB). 38 * OGCMN Minimum old generation capacity (KB). 39 * OGCMX Maximum old generation capacity (KB). 40 * OGC Current old generation capacity (KB). 41 * OC Current old space capacity (KB). 42 * MCMN Minimum metaspace capacity (KB). 43 * MCMX Maximum metaspace capacity (KB). 44 * MC Current metaspace capacity (KB). 45 * YGC Number of Young generation GC Events. 46 * FGC Number of Full GC Events. 47 */ 48 package utils; 49 50 import common.ToolResults; 51 import java.lang.management.GarbageCollectorMXBean; 52 import java.lang.management.ManagementFactory; 53 import java.util.Arrays; 54 import java.util.List; 55 56 public class JstatGcCapacityResults extends JstatResults { 57 58 public JstatGcCapacityResults(ToolResults rawResults) { 59 super(rawResults); 60 } 61 62 /** 63 * Checks the overall consistency of the results reported by the tool 64 */ 65 public void assertConsistency() { 66 | 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * Results of running the JstatGcTool ("jstat -gccapacity <pid>") 26 * 27 * Output example: 28 * NGCMN NGCMX NGC S0C S1C EC OGCMN OGCMX OGC OC MCMN MCMX MC YGC FGC CGC 29 * 41984.0 671744.0 41984.0 5248.0 5248.0 31488.0 83968.0 1343488.0 83968.0 83968.0 512.0 110592.0 4480.0 0 0 0 30 31 * Output description: 32 * NGCMN Minimum new generation capacity (KB). 33 * NGCMX Maximum new generation capacity (KB). 34 * NGC Current new generation capacity (KB). 35 * S0C Current survivor space 0 capacity (KB). 36 * S1C Current survivor space 1 capacity (KB). 37 * EC Current eden space capacity (KB). 38 * OGCMN Minimum old generation capacity (KB). 39 * OGCMX Maximum old generation capacity (KB). 40 * OGC Current old generation capacity (KB). 41 * OC Current old space capacity (KB). 42 * MCMN Minimum metaspace capacity (KB). 43 * MCMX Maximum metaspace capacity (KB). 44 * MC Current metaspace capacity (KB). 45 * YGC Number of Young generation GC Events. 46 * FGC Number of Full GC Events. 47 * CGC Number of STW of Concurrent GC Events. 48 */ 49 package utils; 50 51 import common.ToolResults; 52 import java.lang.management.GarbageCollectorMXBean; 53 import java.lang.management.ManagementFactory; 54 import java.util.Arrays; 55 import java.util.List; 56 57 public class JstatGcCapacityResults extends JstatResults { 58 59 public JstatGcCapacityResults(ToolResults rawResults) { 60 super(rawResults); 61 } 62 63 /** 64 * Checks the overall consistency of the results reported by the tool 65 */ 66 public void assertConsistency() { 67 |