JAVA_OPTS Framework

July 11, 2014 ยท View on GitHub

The JAVA_OPTS Framework provides Java options to the application at runtime.

Detection CriterionThe java_opts Framework is set in the config/java_opts.yml file or in the JAVA_OPTS environment variable.
Tagsjava_opts
Tags are printed to standard output by the buildpack detect script.

Configuration

For more information about configuring the buildpack, see Configuration and Extension.

To configure the framework, you can modify the config/javaopts.yml file.

NameDescription
from_environmentWhether to append the value of the JAVA_OPTS environment variable to the collection of Java options, to disable this functionality, remove the from_environment key.
java_optsThe Java options that can be used when running the application. All values are used without modification when invoking the JVM. The options are specified as a single YAML scalar in plain style or enclosed in single or double quote marks.

Example

# JAVA_OPTS configuration
---
from_environment: false
java_opts: -Xloggc:$PWD/beacon_gc.log -verbose:gc