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