Add jdk27-memory: compact object headers and G1-everywhere on a Spring Boot service
Spring Boot 4.1.1 catalog service measured on JDK 25, 26 and 27: live heap 320 MB to 273 MB with compact headers, per-class bytes per instance, container-sizing sweeps with real cgroup limits, 1-CPU Serial vs G1 with Native Memory Tracking, removed flags (MaxRAM, UseCompressedClassPointers), and a kernel OOM-kill check. Outputs in jdk27-memory/output. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TF9JWFvJSNm6HVzswzZU5a
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
$ curl -s -w ' [HTTP %{http_code}]\n' localhost:18081/memory
|
||||
java.version=27
|
||||
UseCompactObjectHeaders=true
|
||||
collectors=[G1 Young Generation, G1 Concurrent GC, G1 Old Generation]
|
||||
availableProcessors=2
|
||||
maxHeapMB=1024
|
||||
products=0
|
||||
heapLiveAfterGcMB=12
|
||||
heapCommittedMB=1024
|
||||
rssMB=238
|
||||
gcCountTotal=7
|
||||
gcMillisTotal=121
|
||||
[HTTP 200]
|
||||
|
||||
$ curl -s -w ' [HTTP %{http_code}]\n' localhost:18081/load?n=2000000
|
||||
loaded=2000000
|
||||
loadMillis=237
|
||||
gcCountDuringLoad=0
|
||||
gcMillisDuringLoad=0
|
||||
[HTTP 200]
|
||||
|
||||
$ curl -s -w ' [HTTP %{http_code}]\n' localhost:18081/memory
|
||||
java.version=27
|
||||
UseCompactObjectHeaders=true
|
||||
collectors=[G1 Young Generation, G1 Concurrent GC, G1 Old Generation]
|
||||
availableProcessors=2
|
||||
maxHeapMB=1024
|
||||
products=2000000
|
||||
heapLiveAfterGcMB=272
|
||||
heapCommittedMB=1024
|
||||
rssMB=417
|
||||
gcCountTotal=9
|
||||
gcMillisTotal=626
|
||||
[HTTP 200]
|
||||
|
||||
$ curl -s -w ' [HTTP %{http_code}]\n' localhost:18081/products/42
|
||||
{"id":42,"priceCents":142,"stock":42,"active":true,"sku":"SKU-100000042"} [HTTP 200]
|
||||
|
||||
$ curl -s -w ' [HTTP %{http_code}]\n' localhost:18081/products/2000000
|
||||
{"timestamp":"2026-09-24T14:57:54.671Z","status":404,"error":"Not Found","path":"/products/2000000"} [HTTP 404]
|
||||
|
||||
Reference in New Issue
Block a user