Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Does -XX:SoftRefLRUPolicyMSPerMB affect OutOfMemoryError behavior?

843829Jul 24 2006 — edited Dec 5 2006
If 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?

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 2 2007
Added on Jul 24 2006
7 comments
6,082 views