set javavmargs
set javavmargs=vmargs
The value of this option will be passed to the Java Virtual Machine (JVM) as command line arguments when the JVM is loaded. This option can't specify the class path. Set the class path using the set javaclasspath option.
The setting for javavmargs is only evaluated when the first java_type function is called in a Arbortext Editor session. Subsequent changes to set javavmargs will not affect the running Java Virtual Machine unless you exit Arbortext Editor and start a new session. Consequently, when using the java_type functions, you should set javavmargs before invoking a java_type function.
Example:
# Define system property my.preferences and set the JVM
# initial memory pool to six megabytes.
set javavmargs="-Dmy.preferences=c:\prefs.txt -Xms6m"
If set javavmargs is used with Arbortext Publishing Engine, you should protect it from being sourced again after the JVM has started. Put the set javavmargs statement inside an appropriate if statement. For example:
# Try to change this value only if the JVM has not started yet.
# This protects from failure in case this file is sourced again
# after the JVM has already started.
if (!java_init()) {
set javavmargs="-Xms10m"
}
When using XSL-FO to publish documents of any size, XSL-FO may require more Java stack size than that set by default. If the stack size is insufficient, Arbortext Publishing Engine or Arbortext Editor may terminate unexpectedly. If this scenario occurs, increase the Java stack size by adding the following line to an ACL file stored in the custom\init directory:
set javavmargs="-Xss2m"
Related Topics