The JAVA_OPTS
Framework provides Java options to the application at runtime.
Detection Criterion | The java_opts Framework is set in the config/java_opts.yml file or in the JAVA_OPTS environment variable. |
Tags | java_opts |
For more information about configuring the buildpack, see Configuration and Extension.
To configure the framework, you can modify the config/javaopts.yml
file.
Name | Description |
---|---|
from_environment |
Whether 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_opts |
The 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. |
# JAVA_OPTS configuration
---
from_environment: false
java_opts: -Xloggc:$PWD/beacon_gc.log -verbose:gc