title: Spring boot 2 + AWS Beanstalk setting heapsize
body: <p>I am trying to set JVM heapsize of Spring boot 2 application that is being deployed in AWS Beanstalk as war. I am using gradle 'bootWar' task to create war.</p>
  
  <p>I placed .config file in /srv/main/resources/.ebextensions with content:</p>
  
  <pre><code>option_settings:
      aws:elasticbeanstalk:application:environment:
          Xmx: 512m
          Xms: 512m
  </code></pre>
  
  <p>But setting seems to be ignored.</p>
  
  <p>I have also tried setting:</p>
  
  <pre><code>aws:elasticbeanstalk:container:tomcat:jvmoptions
  </code></pre>
  
  <p>But AWS failed to deploy with error:</p>
  
  <pre><code>InvalidParameterValue: Unknown template parameter: JVMOptions
  </code></pre>
  
  <p>How do I set JVM heap size properly?</p>