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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.