I changed my
CATALINA_OPTS="-Xms1024m -Xmx2048m -XX:MaxPermSize=1024m -javaagent:lib/lucee-inst.jar”;
But my Lucee 22.214.171.124 overview page shows me:
- Non-heap: 1181mb available and 83mb in use
- Heap: 380mb available and 120mb in use
via @djulianm on CFML Slack
In the Lucee Dockerfiles we update the Tomcat
setenv.sh to pick up environment variables that allow you to modify the JVM settings when the container spins up.
A few important points…
Perm size is no longer a thing since JDK8; just remove any reference to it.
Loading the lucee-inst.jar javaagent is no longer necessary and should be removed from your JVM arguments if you have it in place. (This could be in your Lucee dir at tomcat/bin/setenv.sh on *nix or tomcat/bin/service.bat on Windows.)
The agent is gone in Lucee 5. You’ll need to remove
-javaagent:lib/lucee-inst.jar and the JAR file.
You definitely want the
/dev/urandom reference to improve Tomcat start-up. Not entirely sure why it isn’t a default on all installations.