Quarkus pod in CrashLoopBackOff while deploying new application in RHOCP 4

Solution Verified - Updated -

Issue

  • Unable to Rollout of the deployment for the configured ENV variable.
  • Starting the Java application using /opt/jboss/container/java/run/run-java.sh giving error:
Starting the Java application using /opt/jboss/container/java/run/run-java.sh ...
INFO exec java -server -XX:+UseShenandoahGC -XX:+AlwaysPreTouch -XX:+UseNUMA -XX:-UseBiasedLocking -XX:+UseLargePages -Xms256M -Xmx1024M -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/ -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:ParallelGCThreads=1 -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 -XX:CICompilerCount=2 -XX:+ExitOnOutOfMemoryError -cp "." -jar /deployments/quarkus-run.jar
Error occurred during initialization of VM
Multiple garbage collectors selected
  • Due to above mentioned error not able to deploy the new application version.
  • Quarkus pod going in CrashLoopBackOff in every new deployments.

Environment

  • Redhat OpenShift Container Platform 4
  • openjdk-11-rhel7
    • 1.12-1

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