From 7bb2ca2df49039869c016f1dae253b78369a4104 Mon Sep 17 00:00:00 2001 From: Brad Schoening <5796692+bschoening@users.noreply.github.com> Date: Wed, 15 Dec 2021 09:15:33 -0500 Subject: [PATCH] Update region_size.py added checks for JVM args --- region_size.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/region_size.py b/region_size.py index d05362c..c042d95 100644 --- a/region_size.py +++ b/region_size.py @@ -14,6 +14,14 @@ total = 0 for line in f.read().splitlines(): + if (maxheap == None and re.search("CommandLine flags",line) != None): + maxheap = re.search("-XX:MaxHeapSize=[0-9]+", line).group() + sizepolicy = re.search("-XX:+PrintAdaptiveSizePolicy", line) + if (sizepolicy == None): + print("please enable logs with -XX:+PrintAdaptiveSizePolicy") + exit(0) + print(f"maxheap: {maxheap}") + if re.search("allocation request:.*source: concurrent humongous allocation", line) is not None: total += 1 req = re.search("allocation request: [0-9]+", line).group()