64bit Is Here And Significant, But
Posted by Mike Brunt at 12:29 PM
10 comments - Categories: ColdFusion | JRun-J2EE
I am currently in Manhattan and the weather here is brilliant. Dan Wilson and myself took lunch today and we chatted about a good number of things; well in reality I was pontificating but that’s another story. We eventually got talking about High Availability (HA) which is a pet subject of mine along with all things tuning-troubleshooting etc. We were discussing the dramatic increase in the amount of memory we have available to us in 64 bit environments, as opposed to 32 bit. Sean Corfield and I did some load testing of 32 bit and 64 bit environments with the same application and the 64 bit was significantly superior in terms of performance. However, as we will typically want to allocate more memory to the JVM Heap this could create a challenge.
Dan posed the question as to whether a dramatic increase in the size of the heap would not mean more work for the Garbage Collector in the JVM as there will be more objects to inspect. I thought about this and in essence I believe he is right. These are early days for 64 bit although I have already assisted one client with some judicious tuning of the JVM where they had allocated 6GB of Heap Memory.
Is anyone out there using 64 bit and if so what sort of memory allocation arguments are you passing?
Marc Esher wrote on 07/03/08 4:10 PM
Mike,I wonder how much it matters. After all, your load testing showed significant performance improvements, and that's the bottom line I'd think. In addition, if I remember correctly from your HA presentations, if the VM is spending lots of time in full GC as a result of too much stuff making it to "old", doesn't that point to potential applications problems and not so much just a "more memory = more gc problems" problem?
I'd think this would be pretty easy to demonstrate, though: just hook up seefusion or even have CF talk to jconsole and look at the time spent in GC. My suspicion is that even if it is measurably increased over the course of a full day, it probably isn't so much increased that it's degrading the app to the point that one would need to decrease memory, especially if all other signs indicate performance improvements.
I'm looking forward to hearing others' real experiences with this. Thanks to Dan for bringing it up and you for posting about it.
--marc