Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

Java 应用抛出异常 java.lang.OutOfMemoryError: Java heap space

Solution Verified - Updated -

Issue

  • JBoss 应用服务器不能对请求做出响应。
  • 如下的信息出现在JBoss server.log 文件中:

        ERROR [STDERR] java.lang.OutOfMemoryError: Java heap space 
    
  • 如下的日志信息出现在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
    

Environment

  • Java (针对所有的JDK)

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