0

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.

TylerH
  • 20,799
  • 66
  • 75
  • 101
SergeZ
  • 298
  • 1
  • 5
  • 18

1 Answers1

0

We use Procfile for this. E.g.

web: java -Dmy.port=1234 -jar my.jar
Juraj Martinka
  • 3,991
  • 2
  • 23
  • 25
  • It doesn’t work either. Only default one is applied. Even if I change the default one, all alternations against ootb file configuration are ignored. – SergeZ Sep 08 '21 at 20:48
  • It does work for us without problems. Can you clarify what exactly you are doing and what "only default one is applied" means? – Juraj Martinka Sep 09 '21 at 07:26