- Documentation
- Configuration Property Overview
- JVM Configuration
- wrapper.java.additional.<n> Property
Index |
|
wrapper.java.additional.<n> |
||||||||||||||
Additional Java parameters to pass to Java when it is launched. These are not parameters for your application, but rather parameters for the JVM. <n> component: Each element has a property name which starts with "wrapper.java.additional." and the "<n>" component of the property name is an integer number counting up from "1". By default the numbering should be in sequence without gaps". The wrapper.ignore_sequence_gaps property can optionally be set to allow gaps in the sequence.
It is important that each property only define a single argument to the JVM. If the value needs to include a space, then it is necessary to add quotes following the rules described below.
NOTEWhen the wrapper.java.detect_debug_jvm property is set to TRUE, if one of wrapper.java.additional.<n> properties is set to "-Xdebug", then the Wrapper will consider that the JVM is using a debugger and ignore certain timeouts. If you wish to dynamically change the list of additional Java parameters, there are a few ways to do so. The first is to make use of cascading include files to append a generated configuration file listing the wrapper.java.additional.<n> properties along with your JVM options. Alternatively, you may use the wrapper.java.additional_file property to reference a parameter file where you would simply list the JVM options without properties. Finally, you can pass the wrapper.java.additional.<n> as command line properties when launching the Wrapper.
|
wrapper.java.additional.<n>.stripquotes |
||||||||||
If a wrapper.java.additional.<n> value contains quotes, then the contents of the quotes will be passed to the JVM as a single argument on Windows. However on UNIX, the quotes will also be included as part of the argument value. In most cases, this is not correct behavior on UNIX, but it is this way to maintain backwards compatibility. The wrapper.java.additional.<n>.stripquotes property makes it possible to tell the Wrapper to automatically strip those extra quotes on UNIX. The property is ignored on Windows. Defaults to the value of the wrapper.java.additional.default.stripquotes property, which itself defaults to "FALSE". <n> component: Each element has a property name which starts with "wrapper.java.additional." and the "<n>" component of the property name is an integer number counting up from "1". By default the numbering should be in sequence without gaps". The wrapper.ignore_sequence_gaps property can optionally be set to allow gaps in the sequence.
The following replacements will be made when stripping quotes. All other characters will remain unchanged.
|
wrapper.java.additional.<n>.java_version.min |
||||||||||
This property can be used to append the option with index 'n' only if the Java version is greater than or equal to the specified value. The default value is '1.4' which is the oldest JVM version supported by the Wrapper. Any lower value is invalid and will cause the Wrapper to stop. The value can be in the format '1.major[.minor[_revision]]' or 'major[.minor[.revision]]', regardless the version of Java. This is done to support both numbering schemes returned by 'java -version': prior to Java 9 the first format was used, while Java 9 and above use the second format. The brackets indicate that the minor and revision components are optional. Leaving one or both unspecified means that these placeholders will accept any number.
WARNING
|
wrapper.java.additional.<n>.java_version.max |
||||||||||
This property can be used to append the option with index 'n' only if the Java version is lower than or equal to the specified value. The default value is 'UNLIMITED'. The value can be in the format '1.major[.minor[_revision]]' or 'major[.minor[.revision]]', regardless the version of Java. This is done to support both numbering schemes returned by 'java -version': prior to Java 9 the first format was used, while Java 9 and above use the second format. The brackets indicate that the minor and revision components are optional. Leaving one or both unspecified means that these placeholders will accept any number.
WARNING
|
wrapper.java.additional_file |
||||||||
In certain cases, it can be inconvenient to list up your Java parameters in the Wrapper configuration file. This property provides a way to specify a file which can contain one or more parameters that will be passed as is to the JVM when it is launched. This can be very useful when the parameter list needs to be generated dynamically or via an installer. Any parameters defined in this file will appear after those defined using the standard wrapper.java.additional.<n> properties. Starting with Wrapper version 3.5.23, any environment variable references in the file will be expanded. NOTEYou may target different versions of Java by including the WRAPPER_JAVA_VERSION environment variable in the name of the file. Parameter File Format: The file format is simple.
|
wrapper.java.additional_file.required |
||||||||
Specifies if the Java additional file is required or not. If it is required and not found, the Wrapper will stop without starting the JVM. If it is not required, the file will be ignored when not found. The default value is TRUE.
|
wrapper.java.additional_file.stripquotes |
||||||||||
Different platforms handle parameters with spaces differently. To make a given configuration work consistently, you should always quote those values. They will be used as is on Windows. However, on UNIX platforms, the quotes will be stripped as the command line is broken into a parameter list. In almost all cases you will want to strip these quotes. The default value is "FALSE".
|
Usage Examples |
||||||
|