# 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:+UseStringDeduplication \
-Xlog:gc*,gc+age=trace:/var/log/eltex-ems/gc.log:time,uptime,level,tags:filecount=7,filesize=5M"

# 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="$JAVA_OPTS \
#-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
