how to pass JVM arguments in AWS ECS?

拟墨画扇 提交于 2019-12-11 17:50:31

问题


I am trying to set up a microservice in Amazon ECS. How can JVM arguments be configured and passed to the microservice?


回答1:


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.




回答2:


You can set an ENTRYPOINT in your Dockerfile like: ENTRYPOINT ["java","-Xms1024m","-Xmx1800m","-jar","/app.jar"]



来源:https://stackoverflow.com/questions/49512115/how-to-pass-jvm-arguments-in-aws-ecs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!