Daily reboot - RAM settings location

Hi all, we recently started a new server farm to phase out our old Railo servers. These are all AWS AMI servers so I can change as needed, but basically I think I just need to update the max RAM settings a bit lost as the docs only take you to the windows one, and I am a bit unsure as I see nothing in the admin GUI, etc. so any help on what/where and how would be great.

These box’s only function is web naturally, so for 4G or 8G, what would be the recommended settings and again, the location and context would be great! This was a basic direct binary install so everything is in the standard locations.

The errors I am seeing in the log when people connect are;

The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.

Thanks much!

Don’t forget to tell us about your stack!

OS: Ubuntu 20.04LTS
Java Version: 11.0.15 (Eclipse Adoptium) 64bit
Tomcat Version: Apache Tomcat/9.0.62
Lucee Version: 5.3.9.141

I guess you installed lucee at /opt so you need to edit this file: /opt/lucee/tomcat/bin/setenv.sh

Here is the example to set the RAM to 2.5G. You need to leave some RAM for the system, webserver,…

#Xms = minimum to reserve
#Xmx = maximum available 
CATALINA_OPTS="-Xms2500M -Xmx2500M";
export CATALINA_OPTS;

If you have further questions, just ask them :slight_smile:

Michael

Michael,

Thanks for the reply. So that is done, so how can I confirm that?

I assume I need to do a Lucee restart, but does the service look for that file and execute on start, etc. ?

Thanks again.

You could see the processlist with htop - there is a lucee process with the used memory.
You need to restart the service yes, the file is read at startup.