SECTION: 250-Configuration TITLE: 350System Properties QUESTION: What System Properties can I set for Jetty?
Property NameDefault ValueDescription
JRE Properties
java.versionNo defaultJRE version
java.io.tmpdirPlatform dependentDefault temporary file path
line.separatorPlatform dependentLine separator ("/n" on *nix)
os.archPlatform dependentOperating system architecture
os.namePlatform dependentName of the operating system
os.versionPlatform dependentVersion of the operating system
user.homePlatform dependentUser's home directory
Jetty Properties
jetty.class.pathNot setAdds extra class directories or jars onto the system classpath at startup
jetty.homeDetermined at runtimePath of the Jetty installation. The start.jar startup method uses an algorithm to search for this location unless this property has been set on the command line
jetty.ssl.keystoreSee the FAQ entry on SSL
jetty.ssl.keystore.provider.classSee the FAQ entry on SSL
jetty.ssl.keystore.provider.nameSee the FAQ entry on SSL
jetty.ssl.keystore.typeSee the FAQ entry on SSL
jetty.ssl.keypasswordSee the FAQ entry on SSL
jetty.ssl.passwordSee the FAQ entry on SSL
org.mortbay.http.HttpRequest.maxFormContentSize200000Limits the size of the data a client can push at the server
org.mortbay.http.PathMap.separators:,Separators used to specify multiple paths as a single string.
org.mortbay.http.Version.paranoidIf true, suppresses the Jetty version information in the response's HTTP headers
org.mortbay.jetty.servlet.SessionCookieJSESSIONIDName of cookie used for sessions
org.mortbay.jetty.servlet.SessionURLjsessionidName of parameter when using URL rewriting for sessions
org.mortbay.util.ByteArrayPool.pool_size8Size of pool for recycling byte arrays.
org.mortbay.util.FileResource.checkAliasestrueIf set to false, Jetty will allow requests for files that involve symbolic links or aliases
org.mortbay.util.TypeUtil.IntegerCacheSize600Size of cache for converting int and String to Integer
org.mortbay.util.URI.charsetUTF-8Character encoding of URLs
org.mortbay.xml.XmlParser.NotValidatingfalseIf true, validation is not performed on the web.xml file
main.classSpecifies the name of the class of the Jetty server to invoke by the start.jar mechanism, overriding the default. For standard Jetty the default is org.mortbay.jetty.Server, for JettyPlus it is org.mortbay.jetty.plus.Server. Defaults are specified in a start.config file. This property used to be called start.class.
JETTY_NO_SHUTDOWN_HOOKfalseIf false, a shutdown hook thread is registered with the runtime to stop the server when the runtime is shutdown
POOL_MAX256Used by the utility class org.mortbay.util.Pool to determine the default max number of items in the pool. Can be overridden by calling setMaxSize(int i). The org.mortbay.util.ThreadPool class uses Pool internally, thus this property can be used to effect the default size of the ThreadPool for servicing requests.
POOL_MIN2Used by the utility class org.mortbay.util.Pool to determine the minimum number of items in the pool. Can be overriden by calling setMinSize (int i). The org.mortbay.util.ThreadPool class uses Pool internally, thus this property can be used to effect the default minimum size of the ThreadPool for servicing requests.
ROLLOVERFILE_BACKUP_FORMATHHmmssSSSFormat for the date string that is appended to files during rollover.
ROLLOVERFILE_RETAIN_DAYS31Number of days before old request log files will be removed.
STARTorg/mortbay/start/start.configPath to customized startup file. Used for example, by JettyPlus.
STOP.KEYNo defaultIf specified with the start.jar command, a random key is printed on stdout and must be used with the stop.jar command. Security measure to guard against unauthorized stop/starts.
STOP.PORT8079The local port used to signal to stop the server used with stop.jar. A value of 0 disables the mechanism. See also STOP.KEY
DEBUGNot setIf true, enables debug messages when used with the Jetty logging plugin for Commons logging. See the FAQ entry on logging.
DEBUG_PATTERNSNo defaultOnly for use with the Jetty log plugin for Commons logging. Specifies a list of patterns for classnames for which to generate debug messages. See the FAQ entry on logging and the tutorial.
DEBUG_VERBOSE0Set to a positive integer value, enables both trace and debug level messages. Set to 0, only debug messages are enabled. Only for use with the Jetty logging plugin for Commons logging.See the FAQ entry on logging and the tutorial.
Other
org.apache.commons.logging.LogFactoryorg.mortbay.log.FactoryProperty used by the Apache Commons Logging API to specify the classname of the LogFactory implementation. This property is set in the start.config file. For standard Jetty, it is the Jetty log implemenation org.mortbay.log.Factory. For JettyPlus, it is the Log4J implementation.