Why does G1GC log "humongous allocation request failed"?

Solution Verified - Updated -

Issue

  • We see the following messages in our error log followed by a Full GC:
 87080.686: [G1Ergonomics (Heap Sizing) attempt heap expansion, reason: humongous allocation request failed, allocation request: 531476496 bytes]
 87080.686: [G1Ergonomics (Heap Sizing) expand the heap, requested expansion amount: 318767104 bytes, attempted expansion amount: 318767104 bytes]
 87080.686: [G1Ergonomics (Heap Sizing) did not expand the heap, reason: heap expansion operation failed]

Environment

  • Java using G1GC

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.