Any insight would be appreciated.
Mike
--
You received this message because you are subscribed to the Google Groups "The Java Posse" group.
To post to this group, send email to java...@googlegroups.com.
To unsubscribe from this group, send email to javaposse+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
I've been doing Java development for many years but sometimes
something surprises me. A coworker was explaining to me that many JVMs
allocate all of the memory specified by the -Xmx parameter at
application startup time. He said that this was an optimization
feature and that the JVM needs to ensure that it gets a contiguous
address space for its heap at startup. Some google searches confirmed
that this is the case for the IBM JVM.
In general, the JVM should *never* page. You don't want to page during a STW GC pause. To avoid it, look into using large pages. All Linux/Unix distro's support the feature. You'll get better performance due to better object locality than you will be messing about with reserved vs committed memory.
Regards,
Kirk