Skip to content

Commit 6a8242e

Browse files
authored
Update .platform.app.yaml
1 parent cf48b83 commit 6a8242e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spring-jpa/.platform.app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ web:
3434
export HOST=`echo $PLATFORM_RELATIONSHIPS|base64 -d|jq -r ".database[0].host"`
3535
export DATABASE=`echo $PLATFORM_RELATIONSHIPS|base64 -d|jq -r ".database[0].path"`
3636
export URL="jdbc:postgresql://${HOST}:${DB_PORT}/${DATABASE}"
37-
java -jar -Xmx512m \
37+
java -jar -Xmx$(jq .info.limits.memory /run/config.json)m -XX:+ExitOnOutOfMemoryError \
3838
-Dspring.datasource.url=$URL \
3939
-Dspring.datasource.username=$USER \
4040
-Dspring.datasource.password=$PASSWORD \

0 commit comments

Comments
 (0)