Skip to content

Commit

Permalink
Update region_size.py
Browse files Browse the repository at this point in the history
added checks for JVM args
  • Loading branch information
bschoening authored Dec 15, 2021
1 parent 14d9d96 commit 7bb2ca2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions region_size.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7bb2ca2

Please sign in to comment.