Can Java explicit garbage collection be disabled?

Solution Verified - Updated -

Issue

  • Our application does not use RMI explicitly, couldn't we disable the RMI garbage colleciton using the -XX:+DisableExplicitGC JVM Flag, or does JBoss use RMI Internally?
  • How do we disable Distributed Garbage Collection in our environment?

Environment

  • OpenJDK
  • Sun JDK
  • JBoss Enterprise Application Platform (EAP)

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