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