Java gives no reliable way to adjust the garbage collection times.  There are a 
number of parameters that can be used to adjust the algorithm though.  All of these 
are available to you for intellij:

see:  http://java.sun.com/docs/hotspot/VMOptions.html

But if you are experiencing long garbage collection times ( I.e. > 10 seconds), then 
most likely the process is swapped out.  The only real answer is to get more 
memory.

Alternatively, your best bet is to try to increase the size of the young generation. 
(try 
the -XX:NewRation=2 .. I believe the default is 8 unless you are running with -
server).

This will allow more of the objects to garbage collect using copy, rather than 
compaction.  If your processor is fast enough, you might consider turning on 
incremental garbage collection as well, (which will frequently run minor garbage 
collection events).

In short, you need to play arround with the different parameters available within the 
vm.  If you find anything that seems to work better, please post it back!

Mike


On 8 Feb 2002 at 9:04, Vestal, Rick wrote:

> Is there a way to set a threshold for 
> when to garbage collect?
> 
> I'd like to be able to specify that if I
> am not active in Intellij for N seconds,
> garbage collect.  I'd also like to be able
> to say that if memory is 90% full, garbage
> collect.
> 
> Thanks!
> 
> -- Rick
> 
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list
> 

---
[EMAIL PROTECTED]
To obtain my PGP public key, mail "SEND PUB KEY" in the 
subject to "[EMAIL PROTECTED]"


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to