JDK-7099984 : Web Start jar download dialog leaks memory
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86
  • Submitted: 2011-10-12
  • Updated: 2012-03-20
  • Resolved: 2011-10-14
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
Java(TM) SE Runtime Environment (build 1.7.0_02-ea-b08)
Java HotSpot(TM) Client VM (build 22.0-b06, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]

EXTRA RELEVANT SYSTEM CONFIGURATION :
Firefox 7

A DESCRIPTION OF THE PROBLEM :
Java Web start jar download window leaks memory. java.awt.EventQueue starts accumulating sun.awt.EventQueueItem objects after web start program has started. This continues until all memory is used and Java VM freezes. This happends in less than 10 minutes when JVM has 512 mb memory.

Accumulating sun.awt.EventQueueItem objects contains java.awt.event.WindowEvent that has reference to JDialog that has title "Starting application..." so this points to jar download dialog.

This bug only happends when jnlp file jar files are loaded from server. Following starts load jars from cache and there is no memory leak.

REGRESSION.  Last worked in version 6u26

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Install Java 7 update 2 ea b08
2. Open Swing demo from http://download.oracle.com/javase/tutorial/ui/overview/demo.html with web start
3. Monitor demo application with JVisualVM

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Application memory consumption stays quite stable when using JVisualVM "Perform GC" function.
ACTUAL -
Application memory consuption increases all the time even after pressing  JVisualVM "Perform GC" function.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
No erro message. JVM freezes when memory is full because GC takes all the processor time.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
Swing demo in http://download.oracle.com/javase/tutorial/ui/overview/demo.html
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
No found work around.