Search code examples
tomcatamazon-web-servicesconfigurationamazon-elastic-beanstalkjava-opts

Cannot change tomcat configs in AWS through .ebextensions files


I am trying to increase Java heap size in tomcat in a Beanstalk application. For that, I created a YAML config file (named tomcat.config) as follows:

option_settings:
  - namespace: aws:elasticbeanstalk:container:tomcat:jvmoptions
    option_name: Xms
    value: 256m
    option_name: Xmx
    value: 1024m
    option_name: XX:MaxPermSize
    value: 64m

I have placed this file within src/main/resources/.ebextensions/ directory.

When I deploy this war on tomcat, I don't see Xmx2014m in tomcat. What am I doing wrong?


Solution

  • Here is what worked for me, in case anyone else needs the answer.

    option_settings:
      - namespace: aws:elasticbeanstalk:container:tomcat:jvmoptions
        option_name: Xmx
        value: 1024m