In Java 8 it is shown as none of the available 4 collectors (GC) are selected by default
问题 I have a container running a Spring Boot microservice. I am using openjdk version "1.8.0_212" under OpenJDK Runtime Environment (IcedTea 3.12.0) (Alpine 8.212.04-r0) When I use - XX:+PrintFlagsFinal flag and print the JVM parameters I expected to see -XX:+UseParallelGC as true But to my surprise none of the 4 collectors (-XX:+UseSerialGC,-XX:+UseParallelGC,-XX:+UseConcMarkSweepGC,–XX:+UseG1GC) were active. Shown below is my dockerfile: FROM openjdk:8-jdk-alpine ADD ./demo-0.0.1-SNAPSHOT.jar