Kirk Pepperdine: In terms of the garbage collection models, memory models within the IBM virtual machine, up until 1.4 they were quite divergent from the Sun generational model and the JRocket generational model. Can you describe to us what's changed and maybe some of the reasoning behind those changes? Holly Cummins: Sure, as of 1.5 we've got 3 or 4 policies, depending on how you count it. We've got the standard mark-sweep concurrent. We've got the standard mark, sweep not-concurrent. And we do find in most situations, that does actually give better throughput than the generational policy, which is why it is the default. But in 1.5, we do introduce the generational model, and so it's just got two generations because we found when we did our performance tuning that you got the greatest benefit from generations by having just two. And some of the downsides of generational policy you avoided by having just two generations. And so you've got in the younger generation you've got a copying collector, which is extremely fast, and gives you very fast allocation, and very fast application access. And then in the older generation it's a concurrent collector and so we found with our gen-con policy the pause times tend to be quite short because in the nursery, the nursery is pretty small, it can, it collects pretty quickly, and then if you do a full collection, it's still a pretty quick collection because it's concurrent, and so it's running in the background for most of the duration of the collection.See also: Do you know how to Optimize your JVM? - A video tech brief with Dr. Cummins.
-
Q&A with Holly Cummins on Java Garbage Collection (9 messages)
- Posted by: Nitin Bharti
- Posted on: November 20 2007 11:56 EST
In this interview, Dr. Holly Cummins, noted IBM garbage collection tuning specialist, discusses the benefits of Java garbage collection and a number of other topics all to do with Java heap space, garbage collection and other matters that can be seen a activities that degrade application performance and throughput. From the interview:Threaded Messages (9)
- Re: Q&A with Holly Cummins on Java Garbage Collection by Hans Schwaebli on November 21 2007 03:48 EST
- Re: Q&A with Holly Cummins on Java Garbage Collection by Shekhar Gulati on November 15 2008 20:53 EST
- Re: Q&A with Holly Cummins on Java Garbage Collection by Kit Davies on November 21 2007 04:02 EST
- Re: Q&A with Holly Cummins on Java Garbage Collection by John Brand on November 21 2007 04:13 EST
- Re: Q&A with Holly Cummins on Java Garbage Collection by Joseph Ottinger on November 22 2007 03:21 EST
- Re: Q&A with Holly Cummins on Java Garbage Collection by Kirk Pepperdine on November 23 2007 16:58 EST
- Re: Q&A with Holly Cummins on Java Garbage Collection by John Brand on November 21 2007 04:13 EST
- JVM commits 230 MB on any flavor of unix by Brandon India on November 22 2007 04:25 EST
- Re: JVM commits 230 MB on any flavor of unix by Benoit Maisonny on November 23 2007 03:06 EST
- Re: JVM commits 230 MB on any flavor of unix by James Watson on November 25 2007 13:37 EST
-
Re: Q&A with Holly Cummins on Java Garbage Collection[ Go to top ]
- Posted by: Hans Schwaebli
- Posted on: November 21 2007 03:48 EST
- in response to Nitin Bharti
Collecting garbage is not prestigious thing to do. -
Re: Q&A with Holly Cummins on Java Garbage Collection[ Go to top ]
- Posted by: Shekhar Gulati
- Posted on: November 15 2008 20:53 EST
- in response to Hans Schwaebli
Read about garbage collection at http://www.java4all.info/articles/corejava/garbage-collection-java.html -
Re: Q&A with Holly Cummins on Java Garbage Collection[ Go to top ]
- Posted by: Kit Davies
- Posted on: November 21 2007 04:02 EST
- in response to Nitin Bharti
Sorry, this appeared on TSS in October. See here -
Re: Q&A with Holly Cummins on Java Garbage Collection[ Go to top ]
- Posted by: John Brand
- Posted on: November 21 2007 04:13 EST
- in response to Kit Davies
Sorry, this appeared on TSS in October. See here
Yeah, not another thread focusing on blue hair and gender instead of relevant topics. -
Re: Q&A with Holly Cummins on Java Garbage Collection[ Go to top ]
- Posted by: Joseph Ottinger
- Posted on: November 22 2007 15:21 EST
- in response to John Brand
No, it didn't - there were two interviews. One's a video, the other is a podcast. (This one's the podcast.)Sorry, this appeared on TSS in October. See here
Yeah, not another thread focusing on blue hair and gender instead of relevant topics. -
Re: Q&A with Holly Cummins on Java Garbage Collection[ Go to top ]
- Posted by: Kirk Pepperdine
- Posted on: November 23 2007 16:58 EST
- in response to Kit Davies
Sorry, this appeared on TSS in October. See here
Eugene did the video interview and I did this interview. Two different interviews done at different times on her specialty. Kirk -
JVM commits 230 MB on any flavor of unix[ Go to top ]
- Posted by: Brandon India
- Posted on: November 22 2007 04:25 EST
- in response to Nitin Bharti
use JMX, ps aux whatever you choose. JVM 1.5 uses 280 MB of VSS committed virtual memory. JVM 1.6 uses 230MB. Linux and solaris is the worst platform for Java these days. Same VM running same nothing app commits a total of 30MB on Windows. This is a JVM doing nothing but printing a sysout every 10 seconds. Bug reported to SUN nothing done. So dont talk to me about the heap until you can explain this. Because its killing unix based java servers! -
Re: JVM commits 230 MB on any flavor of unix[ Go to top ]
- Posted by: Benoit Maisonny
- Posted on: November 23 2007 03:06 EST
- in response to Brandon India
JVM 1.5 uses 280 MB of VSS committed virtual memory.
Can you cite a reference or at least give a link?
JVM 1.6 uses 230MB. Linux and solaris is the worst platform for Java these days.
Same VM running same nothing app commits a total of 30MB on Windows. -
Re: JVM commits 230 MB on any flavor of unix[ Go to top ]
- Posted by: James Watson
- Posted on: November 25 2007 13:37 EST
- in response to Brandon India
use JMX, ps aux whatever you choose.
Well, Holly Cummins works for IBM, not Sun so this is a little misplaced but what you are seeing may not be a bug or a problem. Have you looked at the documentation for the JVM and determined what the default minimum heap size? You can set this and the maximum heap size if the heap is too large for your app. It might just be that Sun decided that most apps on the server were using more heap than the old default of 32 and to improve the start-up time they went with a higher default.
JVM 1.5 uses 280 MB of VSS committed virtual memory.
JVM 1.6 uses 230MB. Linux and solaris is the worst platform for Java these days.
Same VM running same nothing app commits a total of 30MB on Windows.
This is a JVM doing nothing but printing a sysout every 10 seconds.
Bug reported to SUN nothing done. So dont talk to me about the heap until you can explain this. Because its killing unix based java servers!