Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Latest commit

 

History

History
35 lines (28 loc) · 1.53 KB

framework-java_opts.md

File metadata and controls

35 lines (28 loc) · 1.53 KB

JAVA_OPTS Framework

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.

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.

Example

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