Is there anything that can be done about the long collection times caused by having large numbers of objects in the VM?
Basically, if I have 10 million live objects in the VM, the garbage collection takes forever, because it’s scanning all of those objects. I know that these 10 million objects are going to live a very long time - they’re essentially static data - so if there were some way for me to indicate that they should go directly into some special heap (static heap?) that only gets examined very rarely (perhaps a scan can be specifically requested), then the garbage collection times would go back down to nothing.
As it is now, the only way to work around this is to represent those objects as primitive values, on or off the Java heap.
Azeem, can you respond to this?
God bless,
-Toby Reyelts