Before I left work for my T-day vacation, there was a build problem where some build was taking like 20 hours (when it normally took like 3 hours). Someone suggested that the JVM doing to build had been given too much memory and was getting stuck in some kind of garbage collection loop.
Anyway, at home I have been playing minecraft and it has 9 gigs of ram given to it. After a while it gets into these stutter loops where I am sure the GC is running to clean up a bunch of memory.
This seems to support the idea of giving a JVM too much ram. If this is true, can someone explain or point me to a good article on the subject? How do you know what is enough ram, but not too much?