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?
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