Change JAVA_OPTS for tomcat in AWS Elastic Beanstalk
<p>I deployed a beanstalk application (spring-boot) but it is crashing due to "GC overhead limit exceeded" exception. I checked that tomcat8 runs with Java options <code>-Xms256m -Xmx256m -XX:MaxPermSize=64m</code>.</p>

<p>I changed those by editing <code>/etc/sysconfig/tomcat8</code> to increase to <code>-Xmx1024m</code> only to realize that these changed are overwritten once you redploy the application.</p>

<p>Could someone help me make the configuration change permanent? I looked at the documentation <a href="http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-configuration-methods-after.html" rel="nofollow">here</a> but it does not help. I don't see the options for JVM heap size in <code>Management Console</code>.</p>