Possible Duplicate:
How is the default java heap size determined?
Im curious what happens if I do not specify a -Xms for initial JVM heap size with Java?
Currently I have -Xms256m and -Xmx512m but this gives me an error on my server :
Failed to create JVM, return code is:-1 I believe the JVM is having trouble getting 256MB of contiguous memory with a 256m starting point. Prior to today we only had a -Xmx256m setting but had some processes that were running out of memory.
Can the JVM function if I remove the -Xms setting and just leave the -Xmx512m'? What does the heap start with?
How does it acquire contiguous memory if no starting heap is declared?