Tuesday, November 29, 2011

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

No comments:

Post a Comment

CSP on Apache

To add CSP to root if sort of funny. The following will NOT work for most cases !!     <LocationMatch "^/$">        Header s...