Java heap size shrinking even though -Xms and -Xmx are set same heap size.
Issue
- Java heap size shrinking even though
-Xmsand-Xmxare 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.