The aside (was: Crash when running 1.6.0_03)

Kees Jan Koster kjkoster at kjkoster.org
Fri Aug 15 18:52:06 UTC 2008


Dear Nicklas,

> As an aside, it's a really, really bad idea to ever call System.gc()
> directly in a modern JVM.  It's much better to leave it to the JVM  
> to decide
> when to do garbage collection.

Interesting. Could you elaborate on this? What makes doing a manual  
gc() so bad? Any documents on the 'web that talk about this in detail?

--
Kees Jan

http://java-monitor.com/forum/
kjkoster at kjkoster.org
06-51838192

Rule 1 for being in a hole: stop digging.



More information about the freebsd-java mailing list