27 Aug
2011
27 Aug
'11
9:01 p.m.
Is it necessary that we reserve such large areas at startup? #define READ_ONLY_SPACE_SIZE (0x0ffff000) /* 256MB - 1 page */ #define STATIC_SPACE_SIZE (0x0ffff000) /* 256MB - 1 page */ #define BINDING_STACK_SIZE (0x07fff000) /* 128MB - 1 page */ #define CONTROL_STACK_SIZE (0x07fff000 - 8192) (about 128 MB) Why are read-only and static space so large when a core file is less than 30MB? And why do we need such huge stacks? The default stack limit for a JVM is less than 500KB. With such settings one needs at least 720MB to start. That's a problem unless overcommitting is enabled. Helmut