United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-5012380 : Java Plugin clean up thread uses 50Mb as limit even though unlimited is used

Details
Type:
Bug
Submit Date:
2004-03-12
Status:
Closed
Updated Date:
2004-04-28
Project Name:
JDK
Resolved Date:
2004-04-07
Component:
deploy
OS:
windows_2000
Sub-Component:
plugin
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.4.2_03
Fixed Versions:
1.4.2_05 (05)

Related Reports

Sub Tasks

Description
OS: Windows 2000
Product: JRE 1.4.2_03

Problem:
Files in PlugIn cache are deleted on machine with a lot available memory and unlimited
cache size. It seems that the cleaner thread uses 50M for limitation and ignores the actual setting.
It happens on JRE1.4.2_02 and 1.4.2_03.

Test case
The problem occurs as a result of having the Cache Details Window from the Java 
Plug-in Control Panel open for more than a minute.  Here are the steps:

1) Close all instances of the Java Plug-in Control Panel.
2) Navigate an URL to install 100+ MB of JARs:  
3) Open the Java Plug-in Control Panel.
4) Select the Cache Tab and click View, leave it open.
5) After 1 minute the cache will be reduced to less than 50 MB.
###@###.### 2004-03-12
###@###.### 2004-03-12

                                    

Comments
SUGGESTED FIX

In src\plugin\share\classes\sun\plugin\panel\ConfigurationInfo.java, add 
java.net.Security.setProperty("javaplugin.cache.size", cacheSize); after 
cacheSize = props.getProperty("javaplugin.cache.size", "50m");

###@###.### 2004-03-12
                                     
2004-03-12
EVALUATION

The root cause of the bug is caused by the Cache cleanup thread is controlled by reading the system property value java.plugin.size. After the Control Panel reads it from deployment.property file, it has never been set. So cache cleanup thread will run even though the size was set to "unlimited".

This bug is not applied to tiger since tiger uses different way to handle the property. 
###@###.### 2004-03-12
                                     
2004-03-12
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
1.4.2_05
generic

FIXED IN:
1.4.2_05

INTEGRATED IN:
1.4.2_05

VERIFIED IN:
1.4.2_05


                                     
2004-06-14



Hardware and Software, Engineered to Work Together