#!## css_jetty.tpl
#### Jetty for cenShare Parameters

## Description: censhare user
## Type:        string
## Mandatory:   yes
## Default:     "corpus"
CORPUS="corpus"

## Description: base path below home of $CORPUS - no '/' allowed (no
##              subsub{dub}dir allowed
## Type:	string
## Mandatory:   yes
## Default:     "jetty"
JETTY_BASE="jetty-webclient"

## Description: location for jetty pid file
## Type:	string
## Mandatory:   yes
## Default:	"/var/run"
JETTY_RUN="/var/run/jetty-webclient"

## for jetty-offline-db always add the censhare.home value "-Dcenshare.home=/opt/corpus" to the configuration
## example
##JAVA_OPTIONS="-server -d64 -Djava.awt.headless=true -Xms2560m -Xmx2560m -XX:PermSize=128M -XX:MaxPermSize=128M -XX:NewSize=128M -XX:MaxNewSize=128M -XX:SurvivorRatio=16 -XX:MaxTenuringThreshold=15 -XX:TargetSurvivorRatio=50 -verbose:gc -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCApplicationStoppedTime -XX:+HeapDumpOnOutOfMemoryError -Dcenshare.home=/opt/corpus"

## Description: java options for jetty
## Type: 	string
## Mandatory:   yes
## Default:	"-Xms512m -Xmx1024m -server -Djava.awt.headless=true -verbose:gc -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCApplicationStoppedTime -XX:+HeapDumpOnOutOfMemoryError"
## gc.log will be written to '~$CORPUS/$JETTY_BASE/logs/gc.log'
##
## ---------- 64bit java section ----------  #
## 1 CPU Thread 64bit java (adjust RAM if needed)
##JAVA_OPTIONS="-server -d64 -Djava.awt.headless=true -Xms2560m -Xmx2560m -XX:PermSize=128M -XX:MaxPermSize=128M -XX:NewSize=128M -XX:MaxNewSize=128M -XX:SurvivorRatio=16 -XX:MaxTenuringThreshold=15 -XX:TargetSurvivorRatio=50 -verbose:gc -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCApplicationStoppedTime -XX:+HeapDumpOnOutOfMemoryError"
##
## more than 3 CPU 64bit java (adjust RAM and CPU Threads if needed)
##JAVA_OPTIONS="-server -d64 -Djava.awt.headless=true -Xms3072m -Xmx3072m -XX:PermSize=128M -XX:MaxPermSize=128M -XX:NewSize=128M -XX:MaxNewSize=128M -XX:SurvivorRatio=16 -XX:MaxTenuringThreshold=15 -XX:TargetSurvivorRatio=50 -XX:-UseParallelGC -XX:ParallelGCThreads=4 -XX:-UseParallelOldGC -verbose:gc -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCApplicationStoppedTime -XX:+HeapDumpOnOutOfMemoryError"
## ---------- End 64bit java section ----------  #
##
## ---------- 32bit java section ----------  #
## less RAM 1 CPU Thread 32bit (adjust RAM if needed)
## gc.log will be written to '~$CORPUS/$JETTY_BASE/logs/gc.log'
##JAVA_OPTIONS="-server Djava.awt.headless=true -Xms512m -Xmx512m -XX:PermSize=64M -verbose:gc -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCApplicationStoppedTime -XX:+HeapDumpOnOutOfMemoryError"
##
JAVA_OPTIONS="-Xms512m -Xmx1024m -server -Djava.awt.headless=true -verbose:gc -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCApplicationStoppedTime -XX:+HeapDumpOnOutOfMemoryError"
