JDK-6205422 : REGRESSION: Applet load time slow in JRE 5.0 due to Java logo animation
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 1.4.2,5.0,6
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_2000,windows_xp
  • CPU: x86
  • Submitted: 2004-12-07
  • Updated: 2010-04-04
  • Resolved: 2005-03-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u4Fixed 6 b28Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
My applet startup time on 1.4.2 was 40 seconds.  When I moved to JRE 5.0, the applet starts up on 4 minutes.

This seems most noticable on single processor machines and/or machines that are not hyperthreaded (Intel).

My processor:
Processor	x86 Family 15 Model 2 Stepping 7 GenuineIntel ~2192 Mhz

I created a thread in the following forum and it seems to be a problem for a number of people.

http://forum.java.sun.com/thread.jspa?threadID=566480


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Our applet is a large (Enterprise) applet used by I/T shops, it has about 4 MB of jar files.

2. The applet is loaded on a single proc (non hyperthreaded) box (like a laptop.

3. Try to load the applet and it loads very slowly.  Minimize the applet window once the starburst animation / progress bar comes up and it goes fast.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Load times should be as good or better than 1.4.2. In our case, about 40 seconds.
ACTUAL -
Load time with JRE is now 4 minutes.

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
Define a custom logo with the image Parameter. Then instead of the animated gif, the defined image is shown or if it doesn't even exist it is left blank . For example for OBJECT Tag
<PARAM name="image" value="images/speedupjava.gif">
For Embed Tag:
image="images/speedupjava.gif"

The custom logo, or no logo helps.  But a problem with this workaround (as documented in sun doc) is that the logo is placed in the upper left corner of the applet window.  It will center it, if the gif is the same size as the applet window, but who knows what that will ever be?

Release Regression From : 1.4.2
The above release value was the last known release where this 
bug was known to work. Since then there has been a regression.
###@###.### 2004-12-07 22:34:14 GMT

Comments
EVALUATION The problem seems to be that in some applets, sending timer and paint events thru the awt event queue, then painting on the awt event queue, slows down an applet doing omething else on the awt event queue thread at the same time (durring applet initialization). The fix is to do the animation on a seperate thread, not interferring with the awt event queue (no events) and not using the awt event queue thread. ###@###.### 2005-2-25 19:59:40 GMT The fix was put in mustang in b28, and will be ported to 5.0 update 4. (see 2123733) ###@###.### 2005-03-25 14:03:48 GMT
25-02-2005