source: installer/resources/portable/configs/wrapper.config @ 820b99e

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

Commented out java runtime argument

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