title: How to set heap size for wildfly inside Docker container?
body: <p>I am trying to increase heap size for wildfly in docker container. This is easily done by updating <code>wildfly/bin/standalone.conf</code> in a regular wildfly setup. </p>
  
  <p>Our base docker image for wildfly has a default heapsize of <code>512 MB</code> which is required to be <code>1GB</code> in one of the web apps. One way to go is by simple text replace in the Docker file using <code>sed</code> command - </p>
  
  <pre><code>RUN sed -i -- 's/JAVA_OPTS="-Xms64m -Xmx512m -XX:MaxPermSize=256m/JAVA_OPTS="-Xms2048m -Xmx6144m -XX:MaxPermSize=256m/g' /path/standalone.conf
  </code></pre>
  
  <p>I wanted to know if there's another (cleaner) way to solve this?</p>