If an application is experiencing
java.lang.OutOfMemoryErrors
then this often indicates that the maximum amount of memory
available to the application needs to be increased. Be
aware that setting the maximum memory to a value which is
greater than the amount of actual memory on the machine
will result in memory swapping. Memory swapping is a
function of the operating system, and thus its performance
is highly operating system specific. However from
experience this tends to result in a large decrease in
application performance. In most cases, it is better to
set the maximum memory to a value which fits within
available memory and then rely on Java's garbage
collection.
|