diff options
author | skydrome | 2019-10-22 08:27:57 -0400 |
---|---|---|
committer | skydrome | 2019-10-22 08:27:57 -0400 |
commit | 343e224b63861ef1b12aef9ac620f2d8298d0ffd (patch) | |
tree | 956f1a761890ba41c98f388cceff5b77f4770d3f /wrapper.config | |
parent | bbcb5c6288002078709ad34b7d589cf46f998793 (diff) | |
download | aur-343e224b63861ef1b12aef9ac620f2d8298d0ffd.tar.gz |
update wrapperconfig
Diffstat (limited to 'wrapper.config')
-rw-r--r-- | wrapper.config | 42 |
1 files changed, 25 insertions, 17 deletions
diff --git a/wrapper.config b/wrapper.config index d2c4b2f248c2..8e4690f939fb 100644 --- a/wrapper.config +++ b/wrapper.config @@ -1,12 +1,12 @@ #encoding=UTF-8 - +#******************************************************************** +# Wrapper Properties +#******************************************************************** # 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=freenet.node.NodeStarter # Java Classpath (include wrapper.jar) Add class path elements as @@ -30,15 +30,11 @@ wrapper.java.additional.3=-Djava.net.preferIPv4Stack=true # You might want to set the following line if you have changed java.maxmemory # wrapper.java.additional.5=-XX:MaxPermSize= -# Enable the Shenandoah Gargabe Collector -#wrapper.java.additional.6=-XX:+UnlockExperimentalVMOptions -#wrapper.java.additional.7=-XX:+UseShenandoahGC - # Initial Java Heap Size (in MB) # If a non-zero value is specified for this property then an appropriate -Xms # parameter will be added. The initial memory must be less than or equal to # the value set for the maxmemory property -wrapper.java.initmemory=128 +#wrapper.java.initmemory=4 # Maximum Java Heap Size (in MB) wrapper.java.maxmemory=512 @@ -77,7 +73,7 @@ wrapper.logfile.loglevel=INFO # the log is rolled. Size is specified in bytes. The default value # of 0, disables log rolling. May abbreviate with the 'k' (kb) or # 'm' (mb) suffix. For example: 10m = 10 megabytes. -wrapper.logfile.maxsize=2M +wrapper.logfile.maxsize=2m # Maximum number of rolled log files which will be allowed before old # files are deleted. The default value of 0 implies no limit. @@ -106,20 +102,17 @@ wrapper.on_exit.4=RESTART wrapper.on_exit.5=RESTART # the router may take a few seconds to save state, etc -wrapper.jvm_exit.timeout=120 - -wrapper.restart.reload_configuration=TRUE -wrapper.filter.trigger.1=java.lang.OutOfMemoryError -wrapper.filter.action.1=RESTART +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.ping.interval=300 +wrapper.restart.reload_configuration=TRUE # 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 +wrapper.ping.interval=300 # pid file for the JVM # Directory must exist or the wrapper will fail to start. @@ -132,7 +125,7 @@ wrapper.java.pidfile=/run/freenet/freenet.pid wrapper.ignore_sequence_gaps=TRUE # Title to use when running as a console -wrapper.console.title=Freenet 0.7 +wrapper.console.title=Freenet Router Service # Set permissions used when creating files # See http://wrapper.tanukisoftware.com/doc/english/prop-umask.html @@ -140,3 +133,18 @@ wrapper.console.title=Freenet 0.7 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 |