Video content has been moved to the official Red Hat YouTube channel, which you can find here.

Java heap size shrinking even though -Xms and -Xmx are set same heap size.

Solution Unverified - Updated -

Issue

  • Java heap size shrinking even though -Xms and -Xmx are set same heap size.
  • Garbage collection log showed that Java heap size became shrinking little by little from 1024m, even though both -Xms and -Xmx were same size 1024MB. Is this right behaviour or Java VM bug?

Environment

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

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