Java Heap Memory Leak with JPEGImageWriter and JPEGImageReader Objects

(Doc ID 2144622.1)

Last updated on JULY 31, 2016

Applies to:

Java SE JDK and JRE - Version 6 to 7 [Release 6 to 7]
Information in this document applies to any platform.


This issue can present as either an OutOfMemory crash or as a performance issue with full garbage collections cycling over and over again due to an increasing number of live JPEGImageWriter or JPEGImageReader objects.  Analysis of a heap dump shows that a large portion of the Java heap is consumed by com/sun/imageio/plugins/jpeg/JPEGImageWriter or com/sun/imageio/plugins/JPEGImangeReader objects.


Affects Java versions:

Java SE 6u45 - 6u51

Java SE 7u21 - 7u40



Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms