author | stefank |
Thu, 29 Aug 2013 11:08:42 +0200 | |
changeset 20194 | 0290e87d5b58 |
parent 16502 | 4ee53f7dc660 |
child 22562 | e909d64b8dd8 |
permissions | -rw-r--r-- |
16502
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
1 |
# |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
2 |
# matching the following output specified as a pattern that verifies |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
3 |
# that the numerical values conform to a specific pattern, rather than |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
4 |
# specific values. |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
5 |
# |
20194
0290e87d5b58
8014659: NPG: performance counters for compressed klass space
stefank
parents:
16502
diff
changeset
|
6 |
# MCMN MCMX MC CCSMN CCSMX CCSC YGC FGC FGCT GCT |
0290e87d5b58
8014659: NPG: performance counters for compressed klass space
stefank
parents:
16502
diff
changeset
|
7 |
# 512.0 132096.0 5120.0 512.0 131072.0 512.0 1 0 0.000 0.004 |
16502
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
8 |
|
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
9 |
BEGIN { |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
10 |
headerlines=0; datalines=0; totallines=0 |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
11 |
} |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
12 |
|
20194
0290e87d5b58
8014659: NPG: performance counters for compressed klass space
stefank
parents:
16502
diff
changeset
|
13 |
/^ MCMN MCMX MC CCSMN CCSMX CCSC YGC FGC FGCT GCT $/ { |
16502
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
14 |
headerlines++; |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
15 |
} |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
16 |
|
20194
0290e87d5b58
8014659: NPG: performance counters for compressed klass space
stefank
parents:
16502
diff
changeset
|
17 |
/^[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+$/ { |
16502
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
18 |
datalines++; |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
19 |
} |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
20 |
|
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
21 |
{ totallines++; print $0 } |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
22 |
|
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
23 |
END { |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
24 |
if ((headerlines == 1) && (datalines == 1) && (totallines == 2)) { |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
25 |
exit 0 |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
26 |
} |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
27 |
else { |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
28 |
exit 1 |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
29 |
} |
4ee53f7dc660
8004172: Update jstat counter names to reflect metaspace changes
stefank
parents:
diff
changeset
|
30 |
} |