# The opt-out still works on 27: an explicit choice always wins over the JVM's. === amazoncorretto:27 --cpus=1 --memory=2g -XX:+UseSerialGC $ docker run --rm --cpus=1 --memory=2g amazoncorretto:27 java -XX:+UseSerialGC -cp /app GcReport java.version = 27 availableCpus = 1 maxHeapMB = 511 collector beans = Copy, MarkSweepCompact UseG1GC = false (origin DEFAULT) UseSerialGC = true (origin VM_CREATION) UseParallelGC = false (origin DEFAULT)