Translated message

A translation of this page exists in English.

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, 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