The Java Service Wrapper manages the startup and shutdown processes for the JVM, and provides logging. It also provides automatic restarts if the Rhapsody JVM fails. The Java Service Wrapper configuration files:

  • wrapper.conf
  • wrapper-local.conf
  • wrapper-platform.conf
  • wrapper-license.conf

These files are located in the <RhapsodyInstallDirectory>\Rhapsody\bin directory.

wrapper.conf

This file is not site-editable.

Useful Configuration Parameters

Parameter

Description

Default Value

wrapper.request_thread_dump_on_failed_jvm_exit

Gets a thread dump when the JVM fails.

true

wrapper.logfile

The log file to use for wrapper output logging.

logs/wrapper.log

wrapper.logfile.maxfiles

The maximum number of rolled log files that will be allowed before the old files are deleted. A value of 0 implies that there is no limit.

10

wrapper-local.conf

This file is site-editable.

The wrapper-local.conf file contains configuration information for the local machine. Any properties you set in this file will override the properties in the wrapper.conf and wrapper-platform.conf files. Uncomment the properties that you require or that you want to change.

################################################################################
## $service.name.display$ Java Service Wrapper Configuration
## Local site config, site editable
## Can override any properties in wrapper.conf or wrapper-platform.conf
################################################################################

# Uncomment the following to debug the wrapper.
#wrapper.debug=TRUE

# Log level for console output. (See docs for log levels).
#wrapper.console.loglevel=INFO

# Log level for log file output. (See docs for log levels).
#wrapper.logfile.loglevel=INFO

# Initial Java heap size (in MB)
wrapper.java.initmemory=$jvm.initial$

# Maximum Java heap size (in MB)
wrapper.java.maxmemory=$jvm.preferred$

#********************************************************************
# GC Options (sequence range 100-199)
#********************************************************************

# Conventional GC Options
wrapper.java.additional.100=-XX:MaxMetaspaceSize=1024m
wrapper.java.additional.101=-XX:MetaspaceSize=256m

# Change the default Derby statement cache setting. 
wrapper.java.additional.102=-Dderby.language.statementCacheSize=500

# Parallel GC Options

# Concurrent GC Options

# Garbage First (G1) GC Options

#********************************************************************
# Other VM Options (sequence range 200-)
#********************************************************************
# Derby statement cache
wrapper.java.additional.200=-Dderby.language.statementCacheSize=500
 
# Metaspace Compress Class Space size (in MB)
wrapper.java.additional.201=-XX:CompressedClassSpaceSize=512m

wrapper-platform.conf

This file is not site-editable.

The wrapper-platform.conf file contains configuration information for the operating system or platform.

################################################################################
## Rhapsody 6.4.0 Java Service Wrapper Configuration
## Platform specific config
##
## Note: This file is *NOT* site editable
################################################################################

#********************************************************************
# VM specific Options (sequence range 50-99)
#********************************************************************

wrapper.java.additional.50=-Djavax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom=com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl
wrapper.java.additional.51=-Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
wrapper.java.additional.52=-XX:+UseG1GC
wrapper.java.additional.53=-Dorg.osgi.framework.os.name=Win32

wrapper-license.conf

The wrapper-license.conf file contains the license for the Java Service Wrapper.