Java application "java.lang.OutOfMemoryError: Java heap space"

Solution Verified - Updated -

Issue

  • JBoss Application server stops accepting incoming requests.
  • The following message appears in the JBoss server.log  file :

        ERROR [STDERR] java.lang.OutOfMemoryError: Java heap space 
    
  • The following log message appears in the JBoss Operations Network (JON) server log:

            Caused by: java.lang.OutOfMemoryError: Java heap space
            ERROR [STDERR] Exception in thread "RMI TCP Connection(44627)-192.168.1.1"
            ERROR [STDERR] java.lang.OutOfMemoryError: Java heap space
  • We would like to root cause analysis of the heap dump generated by one of our application (GRCC) and would like to get some recommendation on heap size parameter setting.

Environment

  • Java (all vendors)

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.