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

Latest commit

 

History

History
41 lines (28 loc) · 1.69 KB

File metadata and controls

41 lines (28 loc) · 1.69 KB

IBM JRE

The IBM JRE is the default JRE used by the Liberty buildpack. Unless otherwise configured, the version of IBM JRE that will be used is specified in the config/ibmjdk.yml file. If necessary, the IBM JRE 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 as an alternative Java runtime.

Configuration

The JRE 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 JRE 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 IBM JRE version 7:

    $ cf set-env myApplication JBP_CONFIG_IBMJDK 'version: 1.7.+'