On Sat, 2001-10-27 at 19:55, Valentin Kipiatkov wrote: > Thus, it is up to you how to configure the heap size in the most compromise > way.
Are you using soft references? In that case I suppose you can also affect IDEA's behaviour using -XX:SoftRefLRUPolicyMSPerMB (for HotSpot 1.3.1+)? For those who don't know, using -XX:SoftRefLRUPolicyMSPerMB=2000 (for example) means that if you have allocated 50 MB of memory and you have -mx120M, then there's potentially 70 MB free, and HotSpot allows soft references to persist for up to 70*2000 ms = 140 seconds after the latest time they were referenced. If you lower this setting, HotSpot will be more likely to free soft references rather than increase the size of the heap towards the maximum. In 1.3.0 and before, Java would immediately clear soft references at any full GC. (Source: http://java.sun.com/docs/hotspot/PerformanceFAQ.html#175 -- lots of other HotSpot options are documented at http://java.sun.com/docs/hotspot/VMOptions.html, including -XX:MaxHeapFreeRatio and -XX:MinHeapFreeRatio which might also be useful.) _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
