Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.8 KB

File metadata and controls

40 lines (28 loc) · 1.8 KB

IBM SDK

The IBM SDK is the default JVM used by the Liberty buildpack. Unless otherwise configured, the version of IBM SDK that will be used is specified in the config/ibmjdk.yml file. If necessary, the IBM SDK can also be explicitly enabled by setting the JVM environment variable to ibmjdk. For example, using the manifest.yml file:

---
env:
  JVM: ibmjdk

The Liberty buildpack also supports OpenJDK and OpenJ9 as alternative JVMs.

Configuration

IBM SDK can be configured by modifying the config/ibmjdk.yml file in the buildpack fork or by passing an environment variable that overrides configuration in the yml file.

Name Description
repository_root The URL of the IBM JRE repository index (details).
version The version of Java runtime to use. Candidate versions can be found here.
heap_size_ratio The ratio that is used to calculate the maximum heap size. The default heap size ratio is 0.75 (75% of the total available memory).

Common Configuration Overrides

The IBM SDK configuration can be overridden with the JBP_CONFIG_IBMJDK environment variable. The value of the variable should be valid inline YAML. For example:

  1. Adjust heap size ratio:

    $ cf set-env myApplication JBP_CONFIG_IBMJDK 'heap_size_ratio: 0.90'
  2. Use a specific candidate version:

    $ cf set-env myApplication JBP_CONFIG_IBMJDK 'version: 8.0.6.31'