System Properties
Table of Contents
Introduction
The following sections list the system properties that may be set to modify the default Tomcat behaviour.
Property replacements
Property | Description |
---|---|
org.apache.tomcat.util.digester. PROPERTY_SOURCE |
Set this to a comma separated list of fully qualified name of classes
that implement
Use this to add a property source, that will be invoked when
Property replacement from the specified property source on the JVM
system properties can also be done using the
|
org.apache.tomcat.util.digester. REPLACE_SYSTEM_PROPERTIES |
Set this boolean system property to |
Expression Language
Property | Description |
---|---|
org.apache.el.BeanELResolver. CACHE_SIZE |
The number of jakarta.el.BeanELResolver.BeanProperties objects that will be cached by the EL Parser. If not specified, the default of |
org.apache.el.ExpressionBuilder. CACHE_SIZE |
The number of parsed EL expressions that will be cached by the EL Parser. If not specified, the default of |
org.apache.el.parser. COERCE_TO_ZERO |
If If not specified, the default value of |
org.apache.el.parser. SKIP_IDENTIFIER_CHECK |
If If not specified, the default value of |
Specifications
Property | Description |
---|---|
org.apache.catalina. STRICT_SERVLET_COMPLIANCE |
The default value of this system property is If this is
|
org.apache.tomcat.websocket. STRICT_SPEC_COMPLIANCE |
The default value of this system property is If this is
|
Logging
Property | Description |
---|---|
org.apache.juli.formatter |
If no logging configuration file is specified and no logging configuration class is specified
using the |
org.apache.juli. AsyncMaxRecordCount |
The maximum number of log records that the JULI AsyncFileHandler will queue in memory.
New records are added to the queue and get asynchronously removed from the queue
and written to the files by a single writer thread.
When the queue is full and a new record is being logged
the log record will be handled based on the The default value is |
org.apache.juli. AsyncOverflowDropType |
When the queue of log records of the JULI AsyncFileHandler is full, new log records are handled according to the following setting:
The default value is |
org.apache.juli.logging. UserDataHelper.CONFIG |
The type of logging to use for errors generated by invalid input data.
The options are: The default value is The errors currently logged using this system are:
Other errors triggered by invalid input data may be added to this system in later versions. |
org.apache.juli.logging. UserDataHelper.SUPPRESSION_TIME |
When using A value of A negative value means an infinite suppression period. The default value is |
JAR Scanning
Property | Description |
---|---|
tomcat.util.scan. StandardJarScanFilter.jarsToSkip |
A list of comma-separated file name patters that is used as the default
value for The coded default is empty, however the system property is set in
a default Tomcat installation via the
|
tomcat.util.scan. StandardJarScanFilter.jarsToScan |
A list of comma-separated file name patters that is used as the default
value for The coded default is empty, however the system property is set in
a default Tomcat installation via the
|
Websockets
Property | Description |
---|---|
org.apache.tomcat. websocket.DEFAULT_BUFFER_SIZE |
The default size for buffers used in the Websockets container. The default value is |
org.apache.tomcat. websocket.DEFAULT_ORIGIN_HEADER_VALUE |
Default value of the origin header that will be sent by the client during the upgrade handshake. The default is null so that no origin header is sent. |
org.apache.tomcat. websocket.DEFAULT_PROCESS_PERIOD |
The number of periodic ticks between periodic processing which involves in particular session expiration checks. The default value is |
Other
Property | Description |
---|---|
catalina.useNaming |
If this is |
javax.sql.DataSource.Factory |
The class name of the factory to use to create resources of type
|
jakarta.mail.Session.Factory |
The class name of the factory to use to create resources of type
|
jvmRoute |
Provides a default value for the |
catalina.config |
The location from which to load the catalina.properties configuration
file. This may be an absolute URL, a relative (to the current working
directory) URL or an alternative file name in which case Tomcat will
attempt to load the file from the default location of
|
tomcat.util.buf.StringCache.byte.enabled |
If If not specified, the default value of |
tomcat.util.buf.StringCache.char.enabled |
If If not specified, the default value of |
tomcat.util.buf.StringCache.trainThreshold |
The number of times If not specified, the default value of |
tomcat.util.buf.StringCache.cacheSize |
The size of the String cache. If not specified, the default value of |
org.apache.tomcat.util.buf.UriUtil. WAR_SEPARATOR |
The character to use to separate the WAR file and WAR content parts of
a WAR URL using the custom WAR scheme provided by Tomcat. This is
equivalent to how If not specified, the default value of |
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.startup. EXIT_ON_INIT_FAILURE |
If If not specified, the default value of |
org.apache.catalina.startup. RealmRuleSet.MAX_NESTED_REALM_LEVELS |
The CombinedRealm allows nested Realms. This property controls the maximum permitted number of levels of nesting. If not specified, the default value of |
org.apache.catalina.startup. CredentialHandlerRuleSet.MAX_NESTED_LEVELS |
The NestedCredentialHandler allows nested CredentialHandlers. This property controls the maximum permitted number of levels of nesting. If not specified, the default value of |
org.apache.catalina.tribes.io. BufferPool.DEFAULT_POOL_SIZE |
The size of the buffer pool which is used by Tribes in bytes. If not specified, the default value of |