title: Tomcat 7: "setenv.sh" vs "/etc/default/tomcat7" to update JAVA_OPTS
body: <p>I wish to update the <code>JAVA_OPTS</code> used by Tomcat 7 to enable JMX monitoring.</p>
  
  <p>When I look at the internet I see 2 primary ways to do it:</p>
  
  <ol>
  <li><p>Using <strong>"setenv.sh"</strong> [The popular way]</p></li>
  <li><p>Update <strong>"/etc/default/tomcat7"</strong></p></li>
  </ol>
  
  <p>Now which is the recommended way to do this? What are the advantages and disadvantages of each?</p>