Default JVM GC collector on runtime container

Solution Verified - Updated -

Issue

  • What is the default GC collector on Docker container?
  • Given that ParallelGC is the default collector for JDK 8 and G1GC is the default for JDK 11, why the container is running with Serial Gc?

Environment

  • OpenJDK 8, 11, 17
  • Red hat OpenShift Container Platform (OCP)
    • 3.x/4.x
    • Docker/CRI-O

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content