Vinicius Araujo
04/24/2024, 2:53 PMAndrew O'Hara
04/24/2024, 3:55 PMJames Richardson
04/24/2024, 5:02 PMVinicius Araujo
04/24/2024, 6:47 PM-Xms128m -Xmx256m
. It is running on a amazoncorretto:11
container.
I`ll dig more about the mongo situation, I know it does make a lot of requests but I got no hints that they are slowVinicius Araujo
04/24/2024, 6:53 PMAndrew O'Hara
04/24/2024, 7:06 PMJames Richardson
04/25/2024, 11:16 AMCies
04/25/2024, 12:26 PM-XX:
+*UseContainerSupport* -XX:MaxRAMPercentage=80.0 -XX:ActiveProcessorCount=1
where our instances have only one (v)CPU. 80% RAM leave some room for the OS an OS services. The UseContainerSupport a bit magical, try reading on it. We some times increase RAM on our instances, this config flag set makes JVM scale along nicely.James Richardson
04/25/2024, 12:36 PM"-XX:+AlwaysActAsServerClassMachine",
"-XX:InitialRAMPercentage=60.0",
"-XX:MinRAMPercentage=60.0",
"-XX:MaxRAMPercentage=70.0",
"-XX:+ExitOnOutOfMemoryError",
the active processor count is a good suggestion, but i think might not be required on 11.0.16+ (OP is 11.0.23) as it can pick up cpu share from cgroups. (not 100% sure on that)Vinicius Araujo
04/25/2024, 12:57 PMjhsdb jmap
and GC seems to work normal.Vinicius Araujo
04/25/2024, 1:19 PMJVM version is 11.0.23+9-LTS
using thread-local object allocation.
Mark Sweep Compact GC
Heap Configuration:
MinHeapFreeRatio = 40
MaxHeapFreeRatio = 70
MaxHeapSize = 268435456 (256.0MB)
NewSize = 44695552 (42.625MB)
MaxNewSize = 89456640 (85.3125MB)
OldSize = 89522176 (85.375MB)
NewRatio = 2
SurvivorRatio = 8
MetaspaceSize = 21807104 (20.796875MB)
CompressedClassSpaceSize = 1073741824 (1024.0MB)
MaxMetaspaceSize = 17592186044415 MB
G1HeapRegionSize = 0 (0.0MB)
Heap Usage:
New Generation (Eden + 1 Survivor Space):
capacity = 40435712 (38.5625MB)
used = 6246584 (5.957206726074219MB)
free = 34189128 (32.60529327392578MB)
15.448185999544165% used
Eden Space:
capacity = 35979264 (34.3125MB)
used = 5063816 (4.829231262207031MB)
free = 30915448 (29.48326873779297MB)
14.074262330658014% used
From Space:
capacity = 4456448 (4.25MB)
used = 1182768 (1.1279754638671875MB)
free = 3273680 (3.1220245361328125MB)
26.540599149816178% used
To Space:
capacity = 4456448 (4.25MB)
used = 0 (0.0MB)
free = 4456448 (4.25MB)
0.0% used
tenured generation:
capacity = 89522176 (85.375MB)
used = 26105088 (24.895751953125MB)
free = 63417088 (60.479248046875MB)
29.160470808931187% used
James Richardson
04/25/2024, 1:21 PMVinicius Araujo
04/25/2024, 1:32 PMIllustrator
04/26/2024, 9:33 AMFred Friis
04/30/2024, 6:47 PMVinicius Araujo
05/02/2024, 5:10 PMAndrew O'Hara
05/02/2024, 6:30 PMVinicius Araujo
05/02/2024, 6:38 PMAndrew O'Hara
05/02/2024, 6:39 PMAndrew O'Hara
05/02/2024, 6:42 PM