Railo Memory Issue - JAVA_OPTS

Error on starting railo service.
When starting Railo, it will show Railo service started but when checking the railo status 'No PID Found'
Also there will be errors like the following in the catalina.out log file.

# cat /opt/railo/tomcat/logs/catalina.out

Error occurred during initialization of VM
Could not reserve enough space for object heap


As we see the error log file, we can assume that the error is related to memory.
As Railo runs on JVM, memory issue related to java.

Java's Memory initiations is done by reading the script file,  setenv.sh.

By default it is as shown below,

# cat /opt/railo/tomcat/bin/setenv.sh

JAVA_OPTS="-Xms64m -Xmx256m -XX:MaxPermSize=64m ";   # memory settings
export JAVA_OPTS;

If there is any problem in starting Railo,change the memory parameters to default.

By effectively changing these parameters, Railo performance can be increased.