Why is the JVM consuming less memory than the configured max heap?

Solution Verified - Updated -

Issue

  • The OS shows memory usage that is significantly less than our JVM's configured max heap size. Why is that? Shouldn't the OS show memory usage at least greater than our max heap if the heap config is honored?

Environment

  • Java
  • 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