summarylogtreecommitdiffstats
path: root/wrapper.config
diff options
context:
space:
mode:
authorskydrome2019-10-30 16:56:21 -0400
committerskydrome2019-10-30 16:56:21 -0400
commit292a42df7c8776b6ef9e8eccdb0ea7ca1e7044db (patch)
treefe0364d47211fbe27e8cbcdd1df6e43aab3cafc9 /wrapper.config
parent72e0930bc3479f33c4e62fc90e0a8740e717ea8c (diff)
downloadaur-292a42df7c8776b6ef9e8eccdb0ea7ca1e7044db.tar.gz
0.9.43
Diffstat (limited to 'wrapper.config')
-rwxr-xr-xwrapper.config38
1 files changed, 24 insertions, 14 deletions
diff --git a/wrapper.config b/wrapper.config
index b09517bf5bb0..0df169c9020a 100755
--- a/wrapper.config
+++ b/wrapper.config
@@ -4,17 +4,15 @@
#
# WARNING - for any changes to take effect, you must completely
# stop the router and the wrapper. Clicking 'Restart' on your
-# router console will NOT reread this file! You must
-# click "Shutdown", wait 11 minutes, then start i2p.
+# router console will NOT reload this file! You must
+# click "Shutdown", wait 10 minutes, then start i2p.
#
#********************************************************************
# Java Application
wrapper.java.command=/usr/lib/jvm/default/bin/java
# Java Main class. This class must implement the WrapperListener interface
-# or guarantee that the WrapperManager class is initialized. Helper
-# classes are provided to do this for you. See the Integration section
-# of the documentation for details.
+# or guarantee that the WrapperManager class is initialized.
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
# Java Classpath (include wrapper.jar) Add class path elements as
@@ -44,8 +42,8 @@ wrapper.java.additional.4.stripquotes=TRUE
# Two things that may help if you experience this issue
# 1) "echo 0 > /proc/sys/net/ipv6/bindv6only" as root; or
# 2) uncomment the next two lines:
-wrapper.java.additional.5=-Djava.net.preferIPv4Stack=true
-wrapper.java.additional.6=-Djava.net.preferIPv6Addresses=false
+#wrapper.java.additional.5=-Djava.net.preferIPv4Stack=true
+#wrapper.java.additional.6=-Djava.net.preferIPv6Addresses=false
# Location used to hold temporary files.
wrapper.java.additional.7=-Djava.io.tmpdir=/opt/i2p/.tmp
@@ -75,6 +73,7 @@ wrapper.app.parameter.1=net.i2p.router.Router
wrapper.console.format=PM
# Log Level for console output. (See docs for log levels)
+# https://wrapper.tanukisoftware.com/doc/english/prop-console-loglevel.html
wrapper.console.loglevel=INFO
# Log file to use for wrapper output logging.
@@ -129,16 +128,12 @@ wrapper.jvm_exit.timeout=60
# give the OS 60s to clear all the old sockets / etc before restarting
# Let's change the default from 60 to 10 seconds and see if anyone moans..
wrapper.restart.delay=5
+wrapper.restart.reload_configuration=TRUE
-wrapper.ping.interval=300
# The ping timeout must be at least 5 seconds longer than the value of wrapper.ping.interval.
# Extend this if you are getting 'JVM appears hung' shutdowns.
wrapper.ping.timeout=320
-
-# use the wrapper's internal timer thread. otherwise this would
-# force a restart of the router during daylight savings time as well
-# as any time that the OS clock changes
-wrapper.use_system_time=false
+wrapper.ping.interval=300
# pid file for the JVM
# If you plan to have multiple wrappers running on the same machine,
@@ -155,7 +150,7 @@ wrapper.java.pidfile=/run/i2p/i2p.pid
wrapper.ignore_sequence_gaps=TRUE
# Title to use when running as a console
-wrapper.console.title=I2P Service
+wrapper.console.title=I2P Router Service
# Set permissions used when creating files
# See http://wrapper.tanukisoftware.com/doc/english/prop-umask.html
@@ -163,3 +158,18 @@ wrapper.console.title=I2P Service
wrapper.umask=0022
wrapper.java.umask=0022
wrapper.logfile.umask=077
+
+#********************************************************************
+# Wrapper JVM Checks
+#********************************************************************
+# Out Of Memory detection.
+wrapper.filter.trigger.1=java.lang.OutOfMemoryError
+wrapper.filter.action.1=RESTART
+wrapper.filter.message.1=The JVM has run out of memory.
+
+#********************************************************************
+# Advanced Options
+#********************************************************************
+# Enable the Shenandoah Gargabe Collector
+#wrapper.java.additional.100=-XX:+UnlockExperimentalVMOptions
+#wrapper.java.additional.101=-XX:+UseShenandoahGC