source: installer/resources/small/wrapper.config @ 168d688

Last change on this file since 168d688 was 168d688, checked in by dev <dev@…>, 6 years ago

Disable JVM stats being written to file, to prevent long (up to ~400ms) pauses.

  • Property mode set to 100644
File size: 6.6 KB
Line 
1#********************************************************************
2# Wrapper Properties
3#
4# WARNING - for any changes to take effect, you must completely
5# stop the router and the wrapper. Clicking 'Restart' on your
6# router console will NOT reread this file! You must
7# click "Shutdown", wait 11 minutes, then start i2p.
8#
9#********************************************************************
10# Java Application
11wrapper.java.command=java
12
13# Java Main class.  This class must implement the WrapperListener interface
14#  or guarantee that the WrapperManager class is initialized.  Helper
15#  classes are provided to do this for you.  See the Integration section
16#  of the documentation for details.
17wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
18
19# Java Classpath (include wrapper.jar)  Add class path elements as
20#  needed starting from 1
21# i2p sdk, public domain/BSD/Cryptix
22wrapper.java.classpath.1=lib/i2p.jar
23# router, depends on i2p.jar, public domain
24wrapper.java.classpath.2=lib/router.jar
25# compiled jbigi libraries, contains static libGMP, lgpl
26wrapper.java.classpath.3=lib/jbigi.jar
27# sam bridge, public domain (depends on i2p.jar)
28wrapper.java.classpath.4=lib/sam.jar
29# ministreaming lib -interfaces for streaming, BSD (depends on i2p.jar)
30wrapper.java.classpath.5=lib/mstreaming.jar
31# full streaming lib, public domain (depends on mstreaming.jar, i2p.jar)
32wrapper.java.classpath.6=lib/streaming.jar
33# router console, public domain (depends on i2p.jar, router.jar)
34wrapper.java.classpath.7=lib/routerconsole.jar
35# i2ptunnel, GPL (depends on mstreaming.jar, i2p.jar)
36wrapper.java.classpath.8=lib/i2ptunnel.jar
37# jetty libraries (and dependencies), apache licensed
38wrapper.java.classpath.9=lib/org.mortbay.jetty.jar
39wrapper.java.classpath.10=lib/javax.servlet.jar
40wrapper.java.classpath.11=lib/jasper-compiler.jar
41wrapper.java.classpath.12=lib/jasper-runtime.jar
42wrapper.java.classpath.13=lib/commons-logging.jar
43wrapper.java.classpath.14=lib/commons-el.jar
44wrapper.java.classpath.15=lib/ant.jar
45wrapper.java.classpath.16=lib/xercesImpl.jar
46# java service wrapper, BSD
47wrapper.java.classpath.17=lib/wrapper.jar
48# systray, LGPL
49wrapper.java.classpath.18=lib/systray.jar
50wrapper.java.classpath.19=lib/systray4j.jar
51
52# Java Library Path (location of Wrapper.DLL or libwrapper.so)
53wrapper.java.library.path.1=.
54wrapper.java.library.path.2=lib
55
56# Java Additional Parameters
57wrapper.java.additional.1=-DloggerFilenameOverride=logs/log-router-@.txt
58wrapper.java.additional.2=-Dorg.mortbay.http.Version.paranoid=true
59wrapper.java.additional.3=-Dorg.mortbay.util.FileResource.checkAliases=false
60wrapper.java.additional.4=-Dorg.mortbay.xml.XmlParser.NotValidating=true
61
62# Prevent the JVM from exporting stats (and thereby causing hundreds of
63# ms long pauses during GC)
64wrapper.java.additional.5=-XX:+PerfDisableSharedMem
65
66# Initial Java Heap Size (in MB)
67#wrapper.java.initmemory=4
68
69# Maximum Java Heap Size (in MB)
70# The JVM's default is 64MB, and I2P can work fine in that, but to handle
71# lots of I2PSnark activity in the same JVM, increasing the default max heap
72# size should help.  Feel free to reduce this if not using I2PSnark in the jvm
73# High-bandwidth routers may need to increase to 256 or more.
74#
75# WARNING - for any changes to take effect, you must completely
76# stop the router and the wrapper. Clicking 'Restart' on your
77# router console will NOT reread this file! You must
78# click "Shutdown", wait 11 minutes, then start i2p.
79#
80# Small Distribution - set to 64MB
81#
82wrapper.java.maxmemory=64
83
84# Application parameters.  Add parameters as needed starting from 1
85wrapper.app.parameter.1=net.i2p.router.Router
86
87#********************************************************************
88# Wrapper Logging Properties
89#********************************************************************
90# Format of output for the console.  (See docs for formats)
91wrapper.console.format=PM
92
93# Log Level for console output.  (See docs for log levels)
94wrapper.console.loglevel=INFO
95
96# Log file to use for wrapper output logging.
97wrapper.logfile=wrapper.log
98
99# Format of output for the log file.  (See docs for formats)
100wrapper.logfile.format=LPTM
101
102# Log Level for log file output.  (See docs for log levels)
103wrapper.logfile.loglevel=INFO
104
105# Maximum size that the log file will be allowed to grow to before
106#  the log is rolled. Size is specified in bytes.  The default value
107#  of 0, disables log rolling.  May abbreviate with the 'k' (kb) or
108#  'm' (mb) suffix.  For example: 10m = 10 megabytes.
109wrapper.logfile.maxsize=128k
110
111# Maximum number of rolled log files which will be allowed before old
112#  files are deleted.  The default value of 0 implies no limit.
113wrapper.logfile.maxfiles=2
114
115# Log Level for sys/event log output.  (See docs for log levels)
116wrapper.syslog.loglevel=NONE
117
118# choose what to do if the JVM kills itself based on the exit code
119wrapper.on_exit.default=SHUTDOWN
120wrapper.on_exit.0=SHUTDOWN
121wrapper.on_exit.1=SHUTDOWN
122# OOM
123wrapper.on_exit.10=RESTART
124# graceful shutdown
125wrapper.on_exit.2=SHUTDOWN
126# hard shutdown
127wrapper.on_exit.3=SHUTDOWN
128# hard restart
129wrapper.on_exit.4=RESTART
130# hard restart
131wrapper.on_exit.5=RESTART
132
133# the router may take a few seconds to save state, etc
134wrapper.jvm_exit.timeout=10
135
136# give the OS 10s to clear all the old sockets / etc before restarting
137wrapper.restart.delay=10
138
139wrapper.ping.interval=600
140wrapper.ping.timeout=605
141
142# use the wrapper's internal timer thread.  otherwise this would
143# force a restart of the router during daylight savings time as well
144# as any time that the OS clock changes
145wrapper.use_system_time=false
146
147# pid file for the JVM
148wrapper.java.pidfile=routerjvm.pid
149# pid file for the service monitoring the JVM
150#
151# From i2prouter:
152#
153#     PIDDIR="."
154#     APP_NAME="i2p"
155#     PIDFILE="$PIDDIR/$APP_NAME.pid"
156#
157# This means i2prouter looks for './i2p.pid'.
158wrapper.pidfile=i2p.pid
159
160#********************************************************************
161# Wrapper NT Service Properties
162#********************************************************************
163# WARNING - Do not modify any of these properties when an application
164#  using this configuration file has been installed as a service.
165#  Please uninstall the service before modifying this section.  The
166#  service can then be reinstalled.
167
168# Name of the service
169wrapper.ntservice.name=i2p
170
171# Display name of the service
172wrapper.ntservice.displayname=I2P Service
173
174# Description of the service
175wrapper.ntservice.description=The I2P router service
176
177# Service dependencies.  Add dependencies as needed starting from 1
178wrapper.ntservice.dependency.1=
179
180# Mode in which the service is installed.  AUTO_START or DEMAND_START
181wrapper.ntservice.starttype=AUTO_START
182
183# Allow the service to interact with the desktop.
184wrapper.ntservice.interactive=true
185
Note: See TracBrowser for help on using the repository browser.