When using the Java Garbage First (G1) garbage collector "to-space exhausted" appears in GC logs?

Solution Verified - Updated -

Issue

  • We are observing many "to-space exhausted" messages in our GC logs such as the following:
35795.933: [GC pause (young) (to-space exhausted), 0.3919600 secs]
    ....
 [Times: user=0.59 sys=0.00, real=0.40 secs]

Environment

  • Java 7
  • Java 8
  • G1 garbage collector

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.