title: heap memory recommended for jenkins with docker (JAVA_OPTS)
body: <p>What should be minimum and maximum recommended size for heap memory in JENKINS as per ram size ?</p>
  <p><strong>I want to know the minimum and maximum % percentage of RAM which can be use for HEAP</strong></p>
  <p>While starting jenkins server on Docker container, generally pass JAVA_OPTS parameter for heap memory allocation. There parameters are given below,
  Use -Xmx to specify the maximum heap size 
  Use -Xms to specify the initial Java heap size 
  Use -Xss to set the Java thread stack size</p>
  <p>The example command would be: </p>
  <pre><code>docker run --name myjenkins -p 8080:8080 -p 50000:50000 --env JAVA_OPTS=-Xmx1024m -Xms512m  Dhudson.footerURL=http://mycompany.com jenkins/jenkins:lts
  </code></pre>