Changing GC settings in EAP on Openshift gives error "Conflicting collector option used"

Solution Verified - Updated -

Issue

  • Changing garbage collection option using command oc env dc/demoeap JAVA_OPTS_APPEND=-XX:+UseG1GC in JBoss EAP on Openshift, pods shows error Conflicting collector option used.
  • How do I switch the default GC strategy from -XX:-UseParallelOldGC to -XX:+UseG1GC/-XX:+UseConcMarkSweepGC/-XX:+UseSerialGC?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x for OpenShift
  • JBoss Web Server
    • 3.x for OpenShift
    • 5.x for OpenShift

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