# Eltex.EMS (ACS GUI) Server daemon parameters

# Location of java
JAVA=/usr/bin/java

# Maximum size of Java heap
JAVA_MAX_HEAP_MB=1024
# Initial size of Java heap
JAVA_INIT_HEAP_MB=256

# Options for Java Garbage Collector
GC_OPTS="-XX:+UseG1GC \
-XX:+PrintGCDateStamps \
-XX:+PrintGCDetails \
-XX:+UseGCLogFileRotation \
-XX:NumberOfGCLogFiles=7 \
-XX:GCLogFileSize=5M \
-XX:+UseStringDeduplication \
-XX:+PrintGCTimeStamps \
-XX:+PrintTenuringDistribution \
-Xloggc:/var/log/eltex-ems/gc.log"

# Additional arguments to pass to java
JAVA_OPTS="-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath=/var/log/eltex-ems \
-Djava.security.egd=file:/dev/./urandom"

# Remore monitoring
#JAVA_OPTS="-XX:+HeapDumpOnOutOfMemoryError \
#-XX:HeapDumpPath=/var/log/eltex-ems \
#-Djava.security.egd=file:/dev/./urandom \
#-Dcom.sun.management.jmxremote \
#-Djava.rmi.server.hostname=192.168.1.1 \
#-Dcom.sun.management.jmxremote.port=9900 \
#-Dcom.sun.management.jmxremote.authenticate=false \
#-Dcom.sun.management.jmxremote.ssl=false"

# Eltex.EMS home location
ELTEX_EMS_HOME="/usr/lib/eltex-ems"

# Set it more than (EMS tree objects number * 5)
FILE_LIMIT=65535
