===================================================================
Please evaluate the attached programs.
These are 2 applets, which switch to another page each other
by using showDocument().
Please Repeat several times to change document
by clicking the button.
We can easily see Free Memory decreasing little by little.
1. Configration
- PlugIn : Java PlugIn 1.1.3
- JDK : JDK 1.1.8
- Browser: Internet Explorer(4.01)
- OS : Windows NT(SP3)/95(OSR2) (whole japanese)
- Memory : Memory 128 [MBytes]
- processor : Pentium II 400[MHz]
2. Reproduce
(1) Change the option of Internet Explorer
- Select [view]- [internet option]
- Click the "detail setting" tag
- Check the "Java console enabled"
These applets show the usage of memory to Java console
(2) Compile the attached java codes with JDK1.1.8
(3) Modify the attached html files
( Parm name : URLadress )
(4) Open a1.html files
-> you can see the "applet2" button
(5) Click the button
-> you can see another java applet showing up
and "applet1" button
(6) Click the button
-> you can see (2)
Please repeat (2)-(4), so you can see the free memory
is decreasing gradually.
3. Results
The followings are the result of trial on winNt and Win95.
Note)
- Use Mem. is the result of Total Mem. minus Free Mem.
3.1 On WinNT
NUm. of
clicking Free Mem. Use Mem. Total Mem. [bytes]
------------+-------------+--------------+------------
1 575648 472920 1048568
10 526008 522560 1048568
20 478760 569808 1048568
30 430416 618152 1048568
40 379232 669336 1048568
50 1377928 719216 2097144
60 1329486 767656 2097144
70 1280656 816488 2097144
80 1234152 862992 2097144
90 1185352 911792 2097144
100 1136976 960168 2097144
3.2 On Win95
NUm. of
clicking Free Mem. Use Mem. Total Mem. [bytes]
------------+-------------+--------------+------------
1 18262632 611728 18874360
10 18214288 660072 18874360
20 18165024 709336 18874360
30 18114600 759760 18874360
40 18064200 810160 18874360
50 18015200 859160 18874360
60 17966160 908200 18874360
70 17917016 957344 18874360
80 17867976 1006384 18874360
90 17817576 1056800 18874360
100 17769856 1104504 18874360
3.3 Reported result by Lisencee
On licensee's site, the results are as follows.
NUm. of
clicking Free Mem. Use Mem. Total Mem. [bytes]
------------+-------------+--------------+------------
1 376480 672088 1048568
10 1328320 768824 2097144
20 1250384 846760 2097144
30 1207528 889616 2097144
40 1100520 996624 2097144
50 1054656 1042488 2097144
60 982328 1114816 2097144
70 906456 1190688 2097144
80 801240 1295904 2097144
90 757216 1339928 2097144
100 683560 1413584 2097144
4. Notes
The attached applets has a few objects, "button" and "label".
So, the decreasing rate of free memory looks slow.
However, actual Licensee's applet has a lot of objects,
like "button", "text Box", "Menu".....and so on.
So, the applications or system hang easily.
tbaba@japan 2000-02-28
==========================================================================
Please evaluate the attached programs.
These are 2 applets, which switch to another page each other
by using showDocument().
Please Repeat several times to change document
by clicking the button.
We can easily see Free Memory decreasing little by little.
1. Configration
- PlugIn : Java PlugIn 1.1.3
- JDK : JDK 1.1.8
- Browser: Internet Explorer(4.01)
- OS : Windows NT(SP3)/95(OSR2) (whole japanese)
- Memory : Memory 128 [MBytes]
- processor : Pentium II 400[MHz]
2. Reproduce
(1) Change the option of Internet Explorer
- Select [view]- [internet option]
- Click the "detail setting" tag
- Check the "Java console enabled"
These applets show the usage of memory to Java console
(2) Compile the attached java codes with JDK1.1.8
(3) Modify the attached html files
( Parm name : URLadress )
(4) Open a1.html files
-> you can see the "applet2" button
(5) Click the button
-> you can see another java applet showing up
and "applet1" button
(6) Click the button
-> you can see (2)
Please repeat (2)-(4), so you can see the free memory
is decreasing gradually.
3. Results
The followings are the result of trial on winNt and Win95.
Note)
- Use Mem. is the result of Total Mem. minus Free Mem.
3.1 On WinNT
NUm. of
clicking Free Mem. Use Mem. Total Mem. [bytes]
------------+-------------+--------------+------------
1 575648 472920 1048568
10 526008 522560 1048568
20 478760 569808 1048568
30 430416 618152 1048568
40 379232 669336 1048568
50 1377928 719216 2097144
60 1329486 767656 2097144
70 1280656 816488 2097144
80 1234152 862992 2097144
90 1185352 911792 2097144
100 1136976 960168 2097144
3.2 On Win95
NUm. of
clicking Free Mem. Use Mem. Total Mem. [bytes]
------------+-------------+--------------+------------
1 18262632 611728 18874360
10 18214288 660072 18874360
20 18165024 709336 18874360
30 18114600 759760 18874360
40 18064200 810160 18874360
50 18015200 859160 18874360
60 17966160 908200 18874360
70 17917016 957344 18874360
80 17867976 1006384 18874360
90 17817576 1056800 18874360
100 17769856 1104504 18874360
3.3 Reported result by Lisencee
On licensee's site, the results are as follows.
NUm. of
clicking Free Mem. Use Mem. Total Mem. [bytes]
------------+-------------+--------------+------------
1 376480 672088 1048568
10 1328320 768824 2097144
20 1250384 846760 2097144
30 1207528 889616 2097144
40 1100520 996624 2097144
50 1054656 1042488 2097144
60 982328 1114816 2097144
70 906456 1190688 2097144
80 801240 1295904 2097144
90 757216 1339928 2097144
100 683560 1413584 2097144
4. Notes
The attached applets has a few objects, "button" and "label".
So, the decreasing rate of free memory looks slow.
However, actual Licensee's applet has a lot of objects,
like "button", "text Box", "Menu".....and so on.
So, the applications or system hang easily.
tbaba@japan 2000-02-28
==========================================================================
- duplicates
-
JDK-4249798 Memory leak in java plug-in
-
- Resolved
-
- relates to
-
JDK-4318947 Memory leak happens in JRE1.2.2 and JRE1.3
-
- Closed
-