Does -XX:SoftRefLRUPolicyMSPerMB affect OutOfMemoryError behavior?
843829Jul 24 2006 — edited Dec 5 2006If an object is softly reachable and it has not yet exceeded the time limit specified by the -XX:SoftRefLRUPolicyMSPerMB parameter, will it still be garbage collected before an OutOfMemoryError occurs?
In other words, if I set -XX:SoftRefLRUPolicyMSPerMB to a very large number (what is the maximum value for this parameter?) will I get the desired effect of SoftReferences not being garbage collected until they are needed to be cleared to avoid an OutOfMemoryError?