[Java SE] Increased Java Heap Usage by java.util.zip.ZipFile$Source After Upgrading to JDK 9 and Later Versions
(Doc ID 3056285.1)
Last updated on DECEMBER 13, 2024
Applies to:
Java SE JDK and JRE - Version 9 and laterInformation in this document applies to any platform.
Symptoms
An increase in Java heap memory usage may occur when upgrading to JDK 9 or later versions from JDK 8 or earlier versions. A comparison of an application's Java heap usage for a JDK 8 runtime and a JDK 9 or later runtime shows the later versions have a large amount of retained heap by the class java.util.zip.ZipFile$Source.
Example data from a JDK 17 Java heap histogram:
Changes
Upgrading a Java application to JDK 9 or a later version triggers the behavior change.
Also note that with JDK 9 and later versions, any change in an application's software stack or increased load that causes heavier use of the java.util.zip.ZipFile (ZipFile) implementation could cause an application to require more Java heap memory for the ZipFile implementation.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |