Cannot allocate more than 1.5GB memory for JBoss EAP
Issue
- Need to increase heap size greater than 1.5GB for JDK based on application requirements
- JBoss runs really slow with currently allocated memory.
- When increased JDK memory using
$JBOSS_HOME/jboss-as/bin/run.conffile'sJAVA_OPTS, system complains that it does not have enough memory. - Output of
free -gshows that system has 10GB of memory available. - We are trying to allocate more memory at JBoss server start up; we currently start server with
2048mas-Xmsand2048mas-Xmx. After some rounds of testing we found that we can start JBoss with3072mbut with4096mserver is not starting .
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 5.x
- 6.x
- Red Hat Enterprise Linux (RHEL)
- 5.10
- Open JDK
- 1.6.27
- Oracle JDK
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.