JDK-5064686 : Regression of 4723654
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-06-17
  • Updated: 2005-06-02
  • Resolved: 2005-06-02
Related Reports
Duplicate :  
Description
Name: rv122619			Date: 06/17/2004

4723654 is an ancient bug. There was a lot of communication between us and Dennis Gu at Sun about this problem. The problem was that it was easily possible to make applets really slow when using the animated steaming cup of copy that displayed during the loading of the applet. The result of this bug was to change the default to NOT use the animated cup. I noticed with 1.5 Beta 3 that an animation is back during applet loading. The animation is different, quite snazzy. I decided to run the tests that we had sent with the original defect. What I found was NOT encouraging. Running on a 400MHZ Intel PC running Windows 2000 with the animated cup, it too over 300 seconds to run this loop: 
  java.security.SecureRandom r = new java.security.SecureRandom();
  long n = 1000000L;
  double sum = 0;
  for(long i = 0; i < n; i++)
    sum += r.nextGaussian() + r.nextDouble();
 
Without the animated cup (specify image="" in the html params) the same loop takes 20 seconds. Thus it is still EASY to starve an applet. I think this should be looked at with 1.5 and not wait for 1.5.1.

======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
29-07-2004

WORK AROUND Name: rv122619 Date: 06/17/2004 pass image="" as a parameter in the html page. ======================================================================
29-07-2004

EVALUATION I tested on a few machines with different CPU speed, it appears the performance regression has relation to CPU speed. Measured in init() method. 1. With my dual CPU XEON workstation, it is almot not regression at all. 2. With SunPCI AMD 1.4G, it is about 14% regression. 3. With Pentium II/550MHZ, iy is about 34% regression. The result shows animation is really CPU intensive operation, when applet also a CPU bound application, the performance will degarde. Solution: PhoneHome v2.0 design mainly from UE perspect, we allow animation run into applet's init() method, since the phrase that applet is still invisible. 1. Stop animation when starts init(), shows white box. 2. Stop animation when starts init(), shows static image. 3. Use workaround as SAS metioned. ###@###.### 2004-06-21 Uses workaround. Will fix in next release. ###@###.### 2004-06-23
21-06-2004