JDK-6500694 : Need to backport fix for 6236036 to Java 5 from Java 6
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.concurrent
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2003
  • CPU: x86
  • Submitted: 2006-12-05
  • Updated: 2011-02-16
  • Resolved: 2006-12-05
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 5.2.3790]

A DESCRIPTION OF THE PROBLEM :
See bug 6236036 for details.  Also bug 6457123 which has a number of comments from people including myself regarding the fact that this bug is causing production systems to crash.

In essence the bug is with LinkedBlockqingQueue, poll()s which timeout create objects that are not released; a large number of timeouts without anything being added to the queue will eventually use all available heap memory causing an OutOfMemoryError

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See bugs 6236036 and 6457123

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
See bugs 6236036 and 6457123
ACTUAL -
See bugs 6236036 and 6457123

ERROR MESSAGES/STACK TRACES THAT OCCUR :
See bugs 6236036 and 6457123

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
See bugs 6236036 and 6457123
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Upgrade to Java 6 but as I need to install into a production environment and Java 6 is still only at RC level this is not really a viable option.

Comments
EVALUATION We completely agree with the submitter that the timed acquire bug needs to be fixed and backported. That work is being done under 6460501: Synchronizer timed acquire still leaks memory http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6460501 Note that there is more work to be done than just a backport.
05-12-2006