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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.