Skip to content

Instantly share code, notes, and snippets.

@atz
Created May 20, 2015 18:51
Show Gist options
  • Save atz/e19aece8c1b5328e2716 to your computer and use it in GitHub Desktop.
Save atz/e19aece8c1b5328e2716 to your computer and use it in GitHub Desktop.
Jetty start.ini file, modified for log4j and java options
#===========================================================
# Jetty start.jar arguments
# Each line of this file is prepended to the command line
# arguments # of a call to:
# java -jar start.jar [arg...]
#===========================================================
#===========================================================
# If the arguments in this file include JVM arguments
# (eg -Xmx512m) or JVM System properties (eg com.sun.???),
# then these will not take effect unless the --exec
# parameter is included or if the output from --dry-run
# is executed like:
# eval $(java -jar start.jar --dry-run)
#
#-----------------------------------------------------------
--exec
-Xmx2000m
-XX:+PrintCommandLineFlags
-XX:+UseConcMarkSweepGC
-XX:+CMSClassUnloadingEnabled
-XX:PermSize=64M
-XX:MaxPermSize=256M
# Some logging
-Dorg.eclipse.jetty.util.log.IGNORED=true
-Dorg.eclipse.jetty.LEVEL=DEBUG
-Dorg.eclipse.jetty.util.log.stderr.SOURCE=true
# Solr logging
-Djava.util.logging.config.file=etc/logging.properties
-Dlog4j.configuration=file:etc/log4j.properties
-Dlog4j.debug=true
#-----------------------------------------------------------
#===========================================================
# Start classpath OPTIONS.
# These control what classes are on the classpath
# for a full listing do
# java -jar start.jar --list-options
#-----------------------------------------------------------
OPTIONS=Server,jsp,jmx,ext
#-----------------------------------------------------------
#===========================================================
# Configuration files.
# For a full list of available configuration files do
# java -jar start.jar --help
#-----------------------------------------------------------
etc/jetty.xml
etc/jetty-fedorarealm.xml
#etc/jetty-webapps.xml
#-----------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment