Configure heap size without -Xmx
Is it possible to configure java to always start with 512M head size without use the -Xmx option. In other words, can I change the default heap size from 64M to 512M or do I have to always start my java with -Xmx512M?
[224 byte] By [
smassemana] at [2007-11-26 20:34:31]

# 1
Hi,
Are you really asking whether you can change the maximum heap size, programmatically, from within the JVM? If you do, the answer is that you cannot do that. The JVM needs to pre-allocate a few memory spaces (generations, card table, etc.) while it's starting up and, once it's up and running and starts executing bytecodes, at least some of those memory spaces cannot be resized.
Tony, HS GC Group
# 3
Hey,What OSes are you targeting? The script should be the same for all the Unixes and maybe you'll have to write a bat file for windows, which is really not that hard.Tony, HS GC Group