JDK-8338920 : Release Note: Parallel GC Throws OOM before Heap Is Fully Expanded
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 21.0.4,21.0.7-oracle,22.0.2,23
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2024-08-23
  • Updated: 2025-03-07
  • Resolved: 2024-08-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21 JDK 22 JDK 23
21.0.7-oracleResolved 22.0.2Resolved 23Resolved
Description
An existing bug may have prevented the full usage of the Java heap allotted with the command line flag `-Xmx`. That bug has been fixed with JDK-8328744. As a side effect of this fix, installations may experience an increased heap usage when using Parallel GC. Customers should, if necessary, adjust the maximum heap size.