Cannot allocate more than 1.5GB memory for JBoss EAP

Solution Verified - Updated -

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.conf file's JAVA_OPTS, system complains that it does not have enough memory.
  • Output of free -g shows that system has 10GB of memory available.
  • We are trying to allocate more memory at JBoss server start up; we currently start server with 2048m as -Xms and 2048m as -Xmx. After some rounds of testing we found that we can start JBoss with 3072m but with 4096m server 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.

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