|
From: Nathan W. <wr...@de...> - 2007-11-14 14:00:01
|
On 11/14/07, Leif Mortenson <le...@ta...> wrote: > > > > I assume things can get strange when swapping starts. > In my experience, Java behaves VERY poorly when its memory is swapped. > Things can start running 100 to 1000 slower depending on how bad the > swapping is. You want to be careful to make sure that there is always > enough memory to keep the OS and JVM completely in memory. > > I have seen this lead to crashes with Java 1.3. But not with newer JVMs. UseParallelGC is documented to crash the JVM if the memory sweep takes too much time. I don't have any experience with the alternate collection behavior, just going from the docs: "The parallel garbage collector (UseParallelGC) throws an out-of-memory exception if an excessive amount of time is being spent collecting a small amount of the heap. http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html |