Skip to content

Commit 3c48c8b

Browse files
FastLizard4Gerrit Code Review
authored andcommitted
Merge "JVM memory plugin improvements"
2 parents 4e78e3b + ed3f345 commit 3c48c8b

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

minecraft_jvm.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,41 +40,51 @@ class space used 20375K, committed 21184K, reserved 1048576K
4040

4141
if ($argv[1] == "config") {
4242
echo "graph_args --base 1024 -l 0\n";
43-
echo "graph_title " . ((empty($_ENV['customTitle'])) ? "Minecraft JVM Heap Info" : $_ENV['customTitle'] . " JVM Heap Info") . "\n";
43+
echo "graph_title " . ((empty($_ENV['customTitle'])) ? "Minecraft JVM Memory" : $_ENV['customTitle'] . " JVM Memory") . "\n";
4444
echo "graph_vlabel Bytes (B)\n";
4545
echo "graph_category minecraft\n";
4646

4747
// Order of the graph elements is important as that determines how things are stacked!
4848
echo "metaspace_class_used.label Class space used\n";
4949
echo "metaspace_class_used.draw AREASTACK\n";
5050
echo "metaspace_class_used.info Portion of metaspace used for classes\n";
51+
echo "metaspace_class_used.colour f58484\n";
5152
echo "metaspace_used.label Other metaspace used\n";
5253
echo "metaspace_used.draw AREASTACK\n";
5354
echo "metaspace_used.info Other metaspace used, excluding class space\n";
55+
echo "metaspace_used.colour ff0000\n";
5456
echo "metaspace_class_committed.label Class space committed\n";
5557
echo "metaspace_class_committed.draw AREASTACK\n";
5658
echo "metaspace_class_committed.info Portion of metaspace committed for classes but not used\n";
59+
echo "metaspace_class_committed.colour ffcc00\n";
5760
echo "metaspace_committed.label Other metaspace committed\n";
5861
echo "metaspace_committed.draw AREASTACK\n";
5962
echo "metaspace_committed.info Other metaspace committed but not used, excluding class space\n";
63+
echo "metaspace_committed.colour ff8000\n";
6064
echo "metaspace_class_reserved.label Class space reserved\n";
6165
echo "metaspace_class_reserved.draw AREASTACK\n";
6266
echo "metaspace_class_reserved.info Portion of metaspace reserved for classes but not committed\n";
67+
echo "metaspace_class_reserved.colour 990099\n";
6368
echo "metaspace_reserved.label Other metaspace reserved\n";
6469
echo "metaspace_reserved.draw AREASTACK\n";
6570
echo "metaspace_reserved.info Other metaspace reserved but not committed, excluding class space\n";
71+
echo "metaspace_reserved.colour 330099\n";
6672
echo "heap_young.label Young heap\n";
6773
echo "heap_young.draw AREASTACK\n";
6874
echo "heap_young.info Young generation region of the heap\n";
75+
echo "heap_young.colour 00cc00\n";
6976
echo "heap_survivor.label Survivor heap\n";
7077
echo "heap_survivor.draw AREASTACK\n";
7178
echo "heap_survivor.info Survivor generation region of the heap\n";
79+
echo "heap_survivor.colour 84c4f5\n";
7280
echo "heap_used.label Other used heap\n";
7381
echo "heap_used.draw AREASTACK\n";
7482
echo "heap_used.info Other used heap memory, excluding the young and survivor regions\n";
83+
echo "heap_used.colour 0066b3\n";
7584
echo "heap_free.label Free heap\n";
7685
echo "heap_free.draw AREASTACK\n";
7786
echo "heap_free.info Unused but allocated heap memory\n";
87+
echo "heap_free.colour ccff00\n";
7888
die();
7989
}
8090

0 commit comments

Comments
 (0)