Using SAP BTP console client, you can configure the JRE by specifying custom VM arguments.
You have downloaded and configured the console client.
For more information, see Set Up the Console Client.
SAP Business Technology Platform, Neo environment will sunset on December 31, 2028, subject to terms of customer or partner contracts.
For more information, see SAP Note 3351844.
This documentation refers to SAP Business Technology Platform, Neo environment. If you are looking for documentation about other environments, see SAP Business Technology Platform
↗️ .
You can configure the following arguments:
-
System properties - they will be used when starting the application process. For example {{-D<key>=<value>}}
-
Memory arguments - use them to define custom memory settings of your compute units. The supported memory settings are:
-Xms<size>- set initial Java heap size
-Xmx<size> - set maximum Java heap size
-XX:PermSize - set initial Java Permanent Generation size
-XX:MaxPermSize - set maximum Java Permanent Generation size
We recommend that you use the default memory settings. Change them only if necessary and note that this may impact the application performance or its ability to start.
-
Open the command prompt and navigate to the folder containing neo.bat/sh (
<SDK installation folder>/tools
). -
Deploy the application, specifying your desired configurations. For example, if you want to specify a currency and maximum heap size 1 GiB, then execute the deploy with the following parameters:
neo deploy myapp.properties --vm-arguments "-Dcurrency=EUR -Xmx1024m"
If you are deploying using the properties file, note that you have to use double quotation marks twice:
vm-arguments=""-Dcurrency=EUR -Xmx1024m""
.This will set the system properties -Dcurrency=EUR and the memory argument -Xmx1024m.
To specify a value that contains spaces (for example, -Dname=John Doe), note that you have to use single quotation marks for this parameter when deploying.
neo deploy myapp.properties --vm-arguments "-Dcurrency=EUR '-Dname=John Doe' -Xmx1024m"
Related Information