R
Red Orchid
Sun has made the exception 'OutOfMemory' to be
under the control of Java VM.
Why?
Besides ..
Though Java VM has the options 'MinHeapFreeRatio' and
'MaxHeapFreeRatio', she has the option 'Xmx'.
Why is 'Xmx' needed ?
When a program has the trouble like 'OutOfMemory',
it is not a valid way to increase the value of 'Xmx'
because you are not very sure that the max memory
size of the program will be 'xxxx' MBytes.
Let's consider a program that shows the list of user data.
The max size of user data is unknown for the most part.
And the magnitude of data displayed on the program is
at the discretion of user. Therefore,
the max memory size of the program is not determinate.
I think that the exception like 'OutOfMemory' has to be
under the control of OS, not Java VM.
What is your comment ?
Thanks.
under the control of Java VM.
Why?
Besides ..
Though Java VM has the options 'MinHeapFreeRatio' and
'MaxHeapFreeRatio', she has the option 'Xmx'.
Why is 'Xmx' needed ?
When a program has the trouble like 'OutOfMemory',
it is not a valid way to increase the value of 'Xmx'
because you are not very sure that the max memory
size of the program will be 'xxxx' MBytes.
Let's consider a program that shows the list of user data.
The max size of user data is unknown for the most part.
And the magnitude of data displayed on the program is
at the discretion of user. Therefore,
the max memory size of the program is not determinate.
I think that the exception like 'OutOfMemory' has to be
under the control of OS, not Java VM.
What is your comment ?
Thanks.