I am trying to set up a microservice in Amazon ECS. How can JVM arguments be configured and passed to the microservice?
Asked
Active
Viewed 4,173 times
2 Answers
2
We do this sort of thing by passing them as env
variables on the task. When you edit your container in your task, scroll down to the Env Variables
section:
You can then reference these as normal env
variables on the command line when you launch your application.

MrDuk
- 16,578
- 18
- 74
- 133
-
ECS lauches the docker container and the application automatically. so, at what level shoudl these parameters be referred or how these variables can be referred through command line? – KurioZ7 Sep 08 '20 at 08:57
0
You can set an ENTRYPOINT in your Dockerfile like: ENTRYPOINT ["java","-Xms1024m","-Xmx1800m","-jar","/app.jar"]

Bilal Aybar
- 23
- 4