SapMachine in Cloud Foundry Buildpacks
In SAP Business Technology Platform (BTP) Cloud Foundry deployments, SapMachine is available as Java Runtime Environment (JRE) or Java Development Kit (JDK) via the SAP JAVA Buildpack (SJB) or the Cloud Foundry Community Buildpack.
In order to use the SapMachine JRE, set the following environment variable for your Cloud Foundry application:
cf set-env <app_name> JBP_CONFIG_COMPONENTS '{jres: ["JavaBuildpack::Jre::SapMachineJRE"]}'
cf restage <app_name>
Alternatively, you can declare the environment variable in the application’s manifest file:
env:
JBP_CONFIG_COMPONENTS: '{jres: ["JavaBuildpack::Jre::SapMachineJRE"]}'
or even specifying a concrete version, using the version syntax:
env:
JBP_CONFIG_COMPONENTS: '{jres: ["JavaBuildpack::Jre::SapMachineJRE"]}'
JBP_CONFIG_SAP_MACHINE_JRE: '{ jre: { version: 21.+ } }'
More detailed documentation is available on help.sap.com and in the java-buildpack GitHub repository.
To profile your application, obtain a heap dump or a thread dump, you can use our cf java plugin.