Excessive Heap Consumption in com.sun.imageio.plugins.jpeg.JPEGImageWriter using OpenJDK

Solution Verified - Updated -


  • After upgrading to java-1.6.0-openjdk-, Java applications are consuming more memory (specifically int[] objects allocated by com.sun.imageio.plugins.jpeg.JPEGImageWriter), without releasing it.
  • It throws a OOME Heap Size Exception. How to fix it?


  • Red Hat Enterprise Linux
    • 5
    • 6
  • OpenJDK
    • java-1.6.0-openjdk-
    • java-1.6.0-openjdk-

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