Skip to content

Commit 8518c52

Browse files
committed
Use the SAP Java buildpack
1 parent 4c61076 commit 8518c52

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

sample/manifest.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ applications:
55
#
66
- name: logging-sample-app
77
instances: 1
8-
memory: 592M
9-
disk_quota: 140M
8+
buildpack: sap_java_buildpack
9+
memory: 256M
10+
disk_quota: 256M
1011
path: target/logging-sample-app-3.7.0.war
1112
env:
1213
RANDOM_SLEEP: true
1314
# Set LOG_*: true to activate logging of respective field
1415
LOG_SENSITIVE_CONNECTION_DATA: false
1516
LOG_REMOTE_USER: false
1617
LOG_REFERER: false
18+
# Some defaults in the SAP Java buildpack much higher than what this app needs.
19+
# The values below have been devised empirically
20+
JAVA_OPTS: '-XX:ReservedCodeCacheSize=40M -XX:MaxMetaspaceSize=28M -Xss256K'
21+
# Default: '-XX:ReservedCodeCacheSize=240M -XX:MaxMetaspaceSize=141152K -Xss1M'

0 commit comments

Comments
 (0)