AWS EBS Java Options update

193 Views Asked by At

How can I update default JVM options for AWS ElasticBeanstalk application (Spring Boot app)?

I have tried doing it with .ebextensions folder, however "JVM Options" parameter is "unrecognised" by the platform.

Another attempt I have tried was to use Configuration section and specify Xmx and Xmx (as well as JVM Options and JAVA_OPTS) there, but running application experiences no difference (have embedded some stat printing out at the start of the app).

In short - neither Configuration nor .ebextensions folder embedded in the WAR makes no difference to EBS runtime and hence to my app.

Looks like I have searched whole the web for the answer, but none of advised works and they all looks like either obsolete or not working.

AWS documentation is not clear in this regard as well.

1

There are 1 best solutions below

2
On

We use Procfile for this. E.g.

web: java -Dmy.port=1234 -jar my.jar