Some options for Tomcat 6

Not much options found, but I drop down the useful ones for reference. Note that those options should be assigned to the CATALINA_OPTS. Actually, you may put them in catalina.bat.

  • Startup memory size
    -Xms256m
  • Maximum memory size
    -Xmx256m
  • Garbage collection path
    -Xloggc:/gc.log
  • Disable DNS caching
    -Dsun.net.inetaddr.ttl=0
  • Skip quote escape checking (If you have tag like this <mytags:tag value="<%= "hi!" %>" /> , which is validate in Tomcat 5 before. In Tomcat 6, you may need to turn on the following option to prevent running into error. Ref: http://www.andowson.com/posts/list/346.page)
    -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPE=false
  • Turn on JMX remote
    -Dcom.sun.management.jmxremote
    -Dcom.sun.management.jmxremote.port=9004
    -Dcom.sun.management.jmxremote.authenticate=false
    -Dcom.sun.management.jmxremote.ssl=false
  • Set default Tomcat language / locale to English
    -Duser.language=en

Comments

Popular posts from this blog

Java encoding : UTF-8, Big5, x-MS950-HKSCS