source: installer/resources/portable/configs/wrapper.config @ edb614d

Last change on this file since edb614d was edb614d, checked in by zzz <zzz@…>, 6 years ago

wrapper.config: Remove old mortbay properties, unused by new Jetty

  • Property mode set to 100644
File size: 5.5 KB
Line 
1wrapper.java.command=java
2wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
3
4# Java Classpath (include wrapper.jar)  Add class path elements as
5#  needed starting from 1
6wrapper.java.classpath.1=lib/*.jar
7#  uncomment this to use the system classpath as well (e.g. to get tools.jar)
8#wrapper.java.classpath.2=%CLASSPATH%
9
10# Java Library Path (location of Wrapper.DLL or libwrapper.so)
11wrapper.java.library.path.1=lib
12
13# Java Additional Parameters
14# Numbers must be consecutive (except for stripquotes)
15wrapper.java.additional.1=-DloggerFilenameOverride=logs/log-router-@.txt
16wrapper.java.additional.2=-Di2p.dir.base=.
17wrapper.java.additional.2.stripquotes=TRUE
18
19# Prevent the JVM from exporting stats (and thereby causing hundreds of
20# ms long pauses during GC)
21# http://www.evanjones.ca/jvm-mmap-pause.html
22#wrapper.java.additional.3=-XX:+PerfDisableSharedMem
23
24# PORTABLE installation:
25# uncomment the following
26wrapper.java.additional.3=-Di2p.dir.pid=logs
27wrapper.java.additional.3.stripquotes=TRUE
28wrapper.java.additional.4=-Di2p.dir.temp=tmp
29wrapper.java.additional.4.stripquotes=TRUE
30wrapper.java.additional.5=-Di2p.dir.config=.
31wrapper.java.additional.5.stripquotes=TRUE
32
33# Uncomment this for better performance.
34# If it doesn't work, server mode is not available in your JVM.
35# This may not be required if your machine is already "server-class".
36# See http://java.sun.com/j2se/1.5.0/docs/guide/vm/server-class.html
37#wrapper.java.additional.6=-server
38
39# Initial Java Heap Size (in MB)
40#wrapper.java.initmemory=4
41
42# Maximum Java Heap Size (in MB)
43# The JVM's default is 64MB, and I2P can work fine in that, but to handle
44# lots of I2PSnark activity in the same JVM, increasing the default max heap
45# size should help.  Feel free to reduce this if not using I2PSnark in the jvm
46# High-bandwidth routers may need to increase to 256 or more.
47#
48# WARNING - for any changes to take effect, you must completely
49# stop the router and the wrapper. Clicking 'Restart' on your
50# router console will NOT reread this file! You must
51# click "Shutdown", wait 11 minutes, then start i2p.
52#
53wrapper.java.maxmemory=64
54
55# Application parameters.  Add parameters as needed starting from 1
56wrapper.app.parameter.1=net.i2p.router.Router
57
58#********************************************************************
59# Wrapper Logging Properties
60#********************************************************************
61# Format of output for the console.  (See docs for formats)
62wrapper.console.format=PM
63
64# Log Level for console output.  (See docs for log levels)
65wrapper.console.loglevel=INFO
66
67# Log file to use for wrapper output logging.
68# You may wish to change this on linux so the log is
69# preserved across OS restarts.
70# If you do change it, add the following line above to
71# tell the router where to find the wrapper log
72# (change X to the next available number)
73wrapper.logfile=logs\wrapper.log
74
75# Format of output for the log file.
76# The format consists of the tokens 'L' for log level, 'P' for prefix, 'D' for thread,
77# 'T' for time, 'Z' for millisecond time, and 'M' for message
78# Unfortunately the log timezone cannot be changed, see
79# http://www.nabble.com/Log-message-timezone-td23651317.html
80wrapper.logfile.format=TM
81
82# Log Level for log file output.  (See docs for log levels)
83wrapper.logfile.loglevel=NOTICE
84
85# Maximum size that the log file will be allowed to grow to before
86#  the log is rolled. Size is specified in bytes.  The default value
87#  of 0, disables log rolling.  May abbreviate with the 'k' (kb) or
88#  'm' (mb) suffix.  For example: 10m = 10 megabytes.
89wrapper.logfile.maxsize=1m
90
91# Maximum number of rolled log files which will be allowed before old
92#  files are deleted.  The default value of 0 implies no limit.
93wrapper.logfile.maxfiles=2
94
95# Log Level for sys/event log output.  (See docs for log levels)
96wrapper.syslog.loglevel=NONE
97
98# choose what to do if the JVM kills itself based on the exit code
99wrapper.on_exit.default=SHUTDOWN
100wrapper.on_exit.0=SHUTDOWN
101wrapper.on_exit.1=SHUTDOWN
102# OOM
103wrapper.on_exit.10=RESTART
104# graceful shutdown
105wrapper.on_exit.2=SHUTDOWN
106# hard shutdown
107wrapper.on_exit.3=SHUTDOWN
108# hard restart
109wrapper.on_exit.4=RESTART
110# hard restart
111wrapper.on_exit.5=RESTART
112
113# the router may take a few seconds to save state, etc
114wrapper.jvm_exit.timeout=30
115
116# give the OS 60s to clear all the old sockets / etc before restarting
117# Let's change the default from 60 to 15 seconds and see if anyone moans..
118wrapper.restart.delay=5
119
120wrapper.ping.interval=300
121# The ping timeout must be at least 5 seconds longer than the value of wrapper.ping.interval.
122# Extend this if you are getting 'JVM appears hung' shutdowns.
123wrapper.ping.timeout=320
124
125# use the wrapper's internal timer thread.  otherwise this would
126# force a restart of the router during daylight savings time as well
127# as any time that the OS clock changes
128wrapper.use_system_time=false
129
130# pid file for the JVM
131# If you plan to have multiple wrappers running on the same machine,
132# you should copy this file, change the location or file name,
133# and edit the i2prouter script to change the WRAPPER_CONF setting
134# to point to the new wrapper.config location.
135wrapper.java.pidfile=logs\routerjvm.pid
136# This means i2prouter looks for './i2p.pid'.
137# See comments above for wrapper.java.pidfile
138# PORTABLE installation:
139# Use the following instead.
140wrapper.pidfile=logs/i2p.pid
141
142#********************************************************************
143# Wrapper NT Service Properties
144#********************************************************************
145# Not useful for portable version - BOOM
Note: See TracBrowser for help on using the repository browser.