Increase memory allocation for upgraded server

I recently upgraded a server (ec2). When it was installed it used the lucee default settings for memory of 512. The initial server instance only had 1GB of memory.

It’s instance is running on 2Gb memory now and I want to take advantage of that.

How do i increase the memory allocation? What files do I need to modify?


Don’t forget to tell us about your stack!

OS: ??? aws linux 2023
Linux (6.1.34-59.116.amzn2023.x86_64) 64bit
Java Version: ???
11.0.18 (Eclipse Adoptium) 64bit
Tomcat Version: ???
Apache Tomcat/9.0.71
Lucee Version: ???

tomcat is the app server, google it :slight_smile:

I don’t know if this is the ideal way. But this is what I did. If its not the best practice let me know. Thanks.

  1. I created a file in in opt/lucee/tomcat/bin
  2. Added the export JAVA_OPTS=“-Xms666m -Xmx666m” line to the file
  3. Rebooted.
  4. ps -ef | grep java

contains: -Xms666m -Xmx666m