C
catphive
That java gets out of memory errors, and that the maximum heap size
needs to be controlled by a flag has always bugged me. Why is this so?
Most systems already have mechanisms in place to set hard limits
(getrlimit, setrlimit) on resource usage, and have mechanisms to
increase the number of pages available for memory management (brk,
sbrk). Why doesn't java just rely on these instead of putting extra
hard limits on memory?
Also, is it at all possible to turn this behavior off? I find that
many java programs eventually run into and crash on their default max
heap size. It would be nice to have a way to either tell individual
java instances, or preferably all java programs to have no maximum
heap size except that defined by rlimit.
Thanks
needs to be controlled by a flag has always bugged me. Why is this so?
Most systems already have mechanisms in place to set hard limits
(getrlimit, setrlimit) on resource usage, and have mechanisms to
increase the number of pages available for memory management (brk,
sbrk). Why doesn't java just rely on these instead of putting extra
hard limits on memory?
Also, is it at all possible to turn this behavior off? I find that
many java programs eventually run into and crash on their default max
heap size. It would be nice to have a way to either tell individual
java instances, or preferably all java programs to have no maximum
heap size except that defined by rlimit.
Thanks