Hosted by:

wrapper.java.initmemory Property

wrapper.java.initmemory Property

Configuration Property Overview

- Configuration Property Overview
- JVM Configuration Properties
- Property List by Name

wrapper.java.initmemory

The initial amount of memory in megabytes that the JVM should allocate at startup. Defaults to 0, which will cause the JVM's default value to be used.

If a non-zero value is specified for this property then an appropriate `-Xms` parameter will be added to the Java command generated by the Wrapper. If specified, the initial memory must be less than or equal to the value set for the wrapper.java.maxmemory property.

If this property is set to 0 then it is also possible to specify the `-Xms` parameter manually using the wrapper.java.additional.<n> property.

This value can affect the startup time of the application. Startup time is optimized when this value is fairly close to the actual amount of memory required by the application once it has been started. The default value for Windows and Linux JVMs is usally 2Mb, but Solaris JVMs require a minimum of 3Mb. Valid values are in the range 1 to 4096Mb.

Example:

    wrapper.java.initmemory=3

NOTE MEG

Unless you really do know everything there is to know about memory and Garbage Collection in Java, I would recommend reading through the following document. It describes in detail how the initial and maximum memory values affect Java performance and also goes into detail about what can be done to improve that performance for a given application.

- Tuning Garbage Collection with the 1.4.2 Java Virtual Machine.
- Tuning Garbage Collection with the 1.3.1 Java Virtual Machine.

by Leif Mortenson

Copyright ©1999-2004 by Tanuki Software. All Rights Reserved. | last modified: