wrapper.java.maxmemory Property

Search This Site:

Hosted by:
SourceForge

wrapper.java.maxmemory Property
Configuration Property Overview
wrapper.java.maxmemory

The maximum amount of memory in megabytes that the JVM will be allowed to use. The default value is 64 Mb. This is the same as the Sun JVM. Valid values are in the range 1 to 4096Mb. The value must be greater than or equal to the value set for the wrapper.java.initmemory property.

Example:
wrapper.java.maxmemory=64

NOTE

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.

by Leif Mortenson

last modified: