I could not find this in the Lucee documentation, so I wanted to check how to properly set the heap size on a Linux server (Ubuntu in my case).
Is this the proper procedure:
1. Create setenv.sh file
Create a file new named setenv.sh in the following location.
sudo nano /opt/lucee/tomcat/bin/setenv.sh
2. Add the JAVA_OPTS line
In the file, add JAVA_OPTS line with the desired memory values. For example:
JAVA_OPTS="-Xms256m -Xmx512m";
Save the file.
Questions
-
What restart command do I then use so that these values go into effect?
-
How can I check the heap settings? I want to verify the new values are being used.
-
What are the recommended min and max heap settings for a 2 Gb server?
4 posts - 3 participants