Skip to content

Latest commit

 

History

History
161 lines (117 loc) · 6.36 KB

jre-zing_jre.md

File metadata and controls

161 lines (117 loc) · 6.36 KB

Azul Platform Prime JRE

Azul Platform Prime (formerly Zing) provides high-performance Java runtimes from Azul. No versions of the JRE are available by default due to licensing restrictions. You must add Azul Platform Prime JRE entries to the buildpack's manifest.yml file.

Detection Criterion Configured via JBP_CONFIG_ZING_JRE environment variable.
  • Existence of a Volume Service service is defined as the VCAP_SERVICES payload containing a service whose name, label or tag has heap-dump as a substring.
Tags zing=⟨version⟩, open-jdk-like-memory-calculator=⟨version⟩
Tags are printed to standard output by the buildpack detect script.

Setup Requirements

To use Azul Platform Prime JRE, you must:

  1. Fork the buildpack and add Azul Platform Prime JRE entries to manifest.yml
  2. Package and upload your custom buildpack to Cloud Foundry
  3. Configure your application to use the Azul Platform Prime JRE

For complete step-by-step instructions, see the Custom JRE Usage Guide.

Adding Azul Platform Prime JRE to manifest.yml

Add the following to your forked buildpack's manifest.yml:

# Add to url_to_dependency_map section:
url_to_dependency_map:
  - match: zing(\d+\.\d+\.\d+\.\d+)-\d+-ca-jdk(\d+\.\d+\.\d+)-linux_x64\.tar\.gz
    name: zing
    version: $2

# Add to default_versions section:
default_versions:
  - name: zing
    version: 21.x

# Add to dependencies section:
dependencies:
  # Azul Platform Prime JDK 17
  - name: zing
    version: 17.0.13
    uri: https://cdn.azul.com/zing-zvm/feature-preview/zing24.10.0.0-3-ca-jdk17.0.13-linux_x64.tar.gz
    sha256: <calculate-sha256-of-downloaded-file>
    cf_stacks:
      - cflinuxfs4

  # Azul Platform Prime JDK 21
  - name: zing
    version: 21.0.5
    uri: https://cdn.azul.com/zing-zvm/feature-preview/zing24.10.0.0-3-ca-jdk21.0.5-linux_x64.tar.gz
    sha256: <calculate-sha256-of-downloaded-file>
    cf_stacks:
      - cflinuxfs4

Calculating SHA256

# Download the JDK
curl -LO https://cdn.azul.com/zing-zvm/feature-preview/zing24.10.0.0-3-ca-jdk17.0.13-linux_x64.tar.gz

# Calculate SHA256
sha256sum zing24.10.0.0-3-ca-jdk17.0.13-linux_x64.tar.gz

Azul Platform Prime Download URLs

Azul Platform Prime downloads require an Azul account and license. Contact Azul for access:

The URL patterns typically follow:

  • https://cdn.azul.com/zing-zvm/feature-preview/zing<zing-version>-ca-jdk<jdk-version>-linux_x64.tar.gz

Configuration

After adding Azul Platform Prime JRE to your buildpack's manifest, configure your application:

# Push with your custom buildpack
cf push my-app -b my-custom-java-buildpack

# Select Azul Platform Prime JRE
cf set-env my-app JBP_CONFIG_ZING_JRE '{jre: {version: 21.+}}'

# Restage to apply
cf restage my-app

Or in your application's manifest.yml:

applications:
  - name: my-app
    buildpacks:
      - my-custom-java-buildpack
    env:
      JBP_CONFIG_ZING_JRE: '{jre: {version: 21.+}}'

Configuration Options

Name Description
JBP_CONFIG_ZING_JRE Configuration for Azul Platform Prime JRE, including version selection (e.g., '{jre: {version: 21.+}}').

Memory Configuration

Azul Platform Prime does not use the memory calculator. See Memory below.

Custom CA Certificates

Recommended approach: Use Cloud Foundry Trusted System Certificates. Operators deploy trusted certificates that are automatically available in /etc/cf-system-certificates and /etc/ssl/certs.

JVMKill / Out of Memory Handling

Azul Platform Prime JRE does not use the jvmkill agent. Instead, it uses the -XX:ExitOnOutOfMemoryError flag by default, which terminates the JVM process when an out-of-memory error occurs.

If a Volume Service with the string heap-dump in its name or tag is bound to the application, terminal heap dumps will be written with the pattern <CONTAINER_DIR>/<SPACE_NAME>-<SPACE_ID[0,8]>/<APPLICATION_NAME>-<APPLICATION_ID[0,8]>/<INSTANCE_INDEX>-<TIMESTAMP>-<INSTANCE_ID[0,8]>.hprof

Heapdump written to /var/vcap/data/9ae0b817-1446-4915-9990-74c1bb26f147/pcfdev-space-e91c5c39/java-main-application-892f20ab/0-2017-06-13T18:31:29+0000-7b23124e.hprof

Memory

The Java buildpack does not run the Java Buildpack Memory Calculator for Azul Platform Prime. It sets no heap, metaspace, or thread stack sizes, so the memory calculator settings (class_count, headroom, stack_threads) have no effect and the JVM uses its own defaults. To size memory regions, set the JVM options yourself, for example -Xmx, with Java Options.

Azul Platform Prime Features

Azul Platform Prime includes advanced features beyond standard OpenJDK:

  • ReadyNow!: Eliminates JVM warm-up time through persistent compilation profiles
  • Falcon JIT Compiler: LLVM-based JIT compiler for better peak performance
  • C4 Garbage Collector: Pauseless garbage collection for low-latency applications
  • Optimizer Hub: Cloud-based compilation optimization (requires separate configuration)

Refer to Azul Platform Prime documentation for feature configuration.

See Also