System Properties
Introduction
The follow sections list the system properties that may be set to modify the default Tomcat behaviour.
Servlet container and connectors
Attribute | Description |
catalina.useNaming |
If this is |
jvmRoute |
Provides a default value for the |
org.apache.catalina.loader. WebappClassLoader.ENABLE_CLEAR_REFERENCES |
If There have been some issues reported with log4j when this option is
Applications without memory leaks using recent JVMs should operate
correctly with this option set to If not specified, the default value of |
catalina.config |
The URL for the catalina.properties configuration file. |
org.apache.tomcat.tomcat.util.buf.StringCache.byte.enabled |
If |
org.apache.tomcat.tomcat.util.buf.StringCache.char.enabled |
If |
org.apache.tomcat.tomcat.util.buf.StringCache.trainThreshold |
The number of times |
org.apache.tomcat.tomcat.util.buf.StringCache.cacheSize |
The size of the String cache. If not specified, the default value of
|
org.apache.tomcat.tomcat.util.buf.StringCache.maxStringSize |
The maximum length of String that will be cached. If not specified, the
default value of |
org.apache.tomcat.util. http.FastHttpDateFormat.CACHE_SIZE |
The size of the cache to use parsed and formatted date value. If not
specified, the default value of |
org.apache.catalina.core. StandardService.DELAY_CONNECTOR_STARTUP |
If |
org.apache.catalina.connector. Request.SESSION_ID_CHECK |
If |
org.apache.coyote. USE_CUSTOM_STATUS_MSG_IN_HEADER |
If this is |
org.apache.tomcat.util. http.ServerCookie.VERSION_SWITCH |
If using cookie values which have to be quoted to be valid and v0 cookies,
this will cause an automatic switch to v1 cookies. If not
specified, the default value of |
EL
Attribute | Description |
org.apache.el.parser.COERCE_TO_ZERO |
If |
JSP
Attribute | Description |
org.apache.jasper.compiler. Generator.VAR_EXPRESSIONFACTORY |
The name of the variable to use for the expression language expression
factory. If not specified, the default value of
|
org.apache.jasper.compiler. Generator.VAR_INSTANCEMANAGER |
The name of the variable to use for the instance manager factory. If
not specified, the default value of |
org.apache.jasper.compiler. Parser.STRICT_QUOTE_ESCAPING |
If |
org.apache.jasper.runtime. JspFactoryImpl.USE_POOL |
If |
org.apache.jasper.runtime. JspFactoryImpl.POOL_SIZE |
The size of the ThreadLocal |
org.apache.jasper.Constants. JSP_SERVLET_BASE |
The base class of the Servlets generated from the JSPs. If not
specified, the default value of
|
org.apache.jasper.Constants. SERVICE_METHOD_NAME |
The name of the service method called by the base class. If not
specified, the default value of |
org.apache.jasper.Constants. SERVLET_CLASSPATH |
The name of the ServletContext attribute that provides the classpath
for the JSP. If not specified, the default value of
|
org.apache.jasper.Constants. JSP_FILE |
The name of the request attribute for |
org.apache.jasper.Constants. PRECOMPILE |
The name of the query parameter that causes the JSP engine to just
pregenerate the servlet but not invoke it. If not specified, the default
value of |
org.apache.jasper.Constants. JSP_PACKAGE_NAME |
The default package name for compiled jsp pages. If not specified, the
default value of |
org.apache.jasper.Constants. TAG_FILE_PACKAGE_NAME |
The default package name for tag handlers generated from tag files. If
not specified, the default value of |
org.apache.jasper.Constants. ALT_DD_ATTR |
The servlet context attribute under which the alternate deployment
descriptor for this web application is stored. If not specified, the
default value of |
org.apache.jasper.Constants. TEMP_VARIABLE_NAME_PREFIX |
Prefix to use for generated temporary variable names. If not specified,
the default value of |
org.apache.jasper.Constants. USE_INSTANCE_MANAGER_FOR_TAGS |
If |
org.apache.jasper.Constants. USE_INSTANCE_MANAGER_FOR_TAGS |
If |
Security
Attribute | Description |
org.apache.catalina.connector. RECYCLE_FACADES |
If this is |
org.apache.catalina.connector. CoyoteAdapter.ALLOW_BACKSLASH |
If this is |
org.apache.tomcat.util.buf. UDecoder.ALLOW_ENCODED_SLASH |
If this is |
Specification
Attribute | Description |
org.apache.catalina. STRICT_SERVLET_COMPLIANCE |
If this is
|
org.apache.catalina.core. StandardWrapperValve.SERVLET_STATS |
If |
org.apache.catalina.session. StandardSession.ACTIVITY_CHECK |
If this is |