S
Stefan Ram
An appliation should use a certain percentage (approximately)
of the data storage area of its JVM for output file buffers.
If the buffers ever hold more data than this, they are to be
flushed to their respective files. The buffer size should not
be fixed, so that when the user calls the JVM on the command
line with a large maximum memory size, the application will
use it, or when a small memory size is specified, the
application will still run.
Is there a best practice to achieve this?
of the data storage area of its JVM for output file buffers.
If the buffers ever hold more data than this, they are to be
flushed to their respective files. The buffer size should not
be fixed, so that when the user calls the JVM on the command
line with a large maximum memory size, the application will
use it, or when a small memory size is specified, the
application will still run.
Is there a best practice to achieve this?