The Java Options Framework contributes arbitrary Java options to the application at runtime.
Detection Criterion | java_opts set in the config/java_opts.yml file or the JAVA_OPTS environment variable set |
Tags | java-opts |
For general information on configuring the buildpack, refer to Configuration and Extension.
The framework can be configured by creating or modifying the config/java_opts.yml
file in the buildpack fork.
Name | Description |
---|---|
from_environment |
Whether to append the value of the JAVA_OPTS environment variable to the collection of Java options |
java_opts |
The Java options to use 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 quotes. |
Any JAVA_OPTS
from either the config file or environment variables that configure memory options will cause deployment to fail as they're not allowed. Memory options are configured by the buildpack and may not be modified.
# JAVA_OPTS configuration
---
from_environment: false
java_opts: -Xloggc:$PWD/beacon_gc.log -verbose:gc