Skip to content

Instantly share code, notes, and snippets.

@Miuler
Last active January 1, 2016 08:29
Show Gist options
  • Save Miuler/8118761 to your computer and use it in GitHub Desktop.
Save Miuler/8118761 to your computer and use it in GitHub Desktop.
Configuration of jetty (9.1.0.v20131115)
#/home/almacen/java/jetty-distribution-9.1.0.v20131115/start.ini
#===========================================================
# Jetty start.jar arguments
#
# The contents of this file, together with the *.ini
# files found in start.d directory are used to build
# the classpath and command line on a call to
# java -jar start.jar [arg...]
#
# Use the following command to see more options
# java -jar start.jar --help
#
# Each line in these files is prepended to the command line
# as arguments and may be either:
# + A property like: name=value
# + A module to enable like: --module=jmx
# + An XML configuration file like: etc/jetty-feature.xml
# + A start.jar option like: --dry-run
#
# If --exec or --dry-run are used, then this file may also
# contain lines with:
# + A JVM option like: -Xmx2000m
# + A System Property like: -Dcom.sun.management.jmxremote
#
# The --add-to-start=module option can be used to append
# a configuration template for a module to start.ini
# The --add-to-startd=module option can be used to create
# a configuration template for a module in start.d/module.ini
# For example configure and run with SPDY use
#
# java -jar start.jar --add-to-startd=spdy
# $EDITOR start.d/spdy.ini
# java -jar start.jar
#
#===========================================================
#
# Initialize module server
#
--module=server
## Server Threading Configuration
# minimum number of threads
threads.min=10
# maximum number of threads
threads.max=200
# thread idle timeout in milliseconds
threads.timeout=60000
# What host to listen on (leave commented to listen on all interfaces)
#jetty.host=myhost.com
# Dump the state of the Jetty server, components, and webapps after startup
jetty.dump.start=false
# Dump the state of the Jetty server, before stop
jetty.dump.stop=false
#
# Initialize module deploy
#
--module=deploy
#
# Initialize module websocket
#
--module=websocket
#
# Initialize module jsp
#
--module=jsp
# JSP Configuration
# To use an non-jdk compiler for JSP compilation uncomment next line
# -Dorg.apache.jasper.compiler.disablejsr199=true
#
# Initialize module ext
#
--module=ext
#
# Initialize module resources
#
--module=resources
# MIULER -----------------
--module=annotations
--module=client
--module=http
#--module=https
--module=jaspi
--module=jndi
--module=jmx
--module=jmx-remote
--module=jvm
#--module=monitor
--module=logging
--module=requestlog
--module=servlet
--module=stats
--module=servlets
#--module=spdy
# MIULER -----------------
#=================================================================
# MIULER - para que funcione spring forms
# esto funcione en jetty8 no se si en el 9 funciona
# http://wiki.eclipse.org/Jetty/Howto/Configure_JSP#Compiling_JSPs
-Dorg.apache.jasper.compiler.disablejsr199=true
#=================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment