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

Solution Verified - Updated -

Issue

  • After upgrading to java-1.6.0-openjdk-1.6.0.0-1.61.1.11.11.el6_4.x86_64, 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?

Environment

  • Red Hat Enterprise Linux
    • 5
    • 6
  • OpenJDK
    • java-1.6.0-openjdk-1.6.0.0-1.41.1.11.11.90.el5_9
    • java-1.6.0-openjdk-1.6.0.0-1.61.1.11.11.el6_4.x86_64

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