# Tomcat memory settings
# -Xms<size> set initial Java heap size
# -Xmx<size> set maximum Java heap size
# -Xss<size> set java thread stack size
# -XX:MaxPermSize sets the java PermGen size

# Default memory settings if not specified in $RAILO_JAVA_OPTS
: ${RAILO_JAVA_OPTS:="-Xms256m -Xmx512m -XX:MaxPermSize=128m"}

# Activate Java agent and Apache Tomcat native library support
JAVA_OPTS="${RAILO_JAVA_OPTS} -javaagent:lib/railo-inst.jar -Djava.library.path=/usr/lib/x86_64-linux-gnu";

# additional JVM arguments can be added to the above line as needed, such as
# custom Garbage Collection arguments.

export JAVA_OPTS;

# Tomcat memory settings
# -Xms<size> set initial Java heap size
# -Xmx<size> set maximum Java heap size
# -Xss<size> set java thread stack size
# -XX:MaxPermSize sets the java PermGen size

# Default memory settings if not specified in $RAILO_JAVA_OPTS
: ${RAILO_JAVA_OPTS:="-Xms256m -Xmx512m -XX:MaxPermSize=128m"}

# Activate Java agent 
JAVA_OPTS="${RAILO_JAVA_OPTS} -javaagent:lib/railo-inst.jar";

# additional JVM arguments can be added to the above line as needed, such as
# custom Garbage Collection arguments.

export JAVA_OPTS;

# Add location of Apache Tomcat native library to the library path
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu";
export LD_LIBRARY_PATH;

Use LD_LIBRARY_PATH instead of -Djava.library.path
Use LD_LIBRARY_PATH instead of -Djava.library.path
