
CATALINA_OPTS might be a better option if you run multiple Java applications. Both JAVA_OPTS and CATALINA_OPTS seem to work. That seemed a little cleaner given the line was already in setenv.sh and I only had to add -Xm圆091. I used this example to increase from 4G to 6G (pictured above): export CATALINA_OPTS="$CATALINA_OPTS -Xm圆091 -XX:PermSize=256m -XX:MaxPermSize=256m" Or you can modify the CATALINA_OPTS variable. You will see environmental preferences for either JAVA_OPTS or CATALINA_OPTS.įollowing similar steps listed above, I could use the following line to allocate 4G of memory in a JAVA_OPTS variable: export JAVA_OPTS="$JAVA_OPTS -Xmx4096M -Xms =true" In a terminal window enter the following: sudo vi /usr/local/jss/tomcat/bin/setenv.sh You will find the script for setenv.sh in the same directory. Locate and open it with either vim or nano. Increase Tomcat Memory with setenv.shĪlternately you can change the settings in setenv.sh. JAVA_OPTS=” -XmxSizeM -XX:MaxPermSize=256M”Īllocate additional memory to Tomcat by modifying the -Xmx parameter.įor example, modifying the variable to look something like this gives you 1 GB of RAM: The variable looks something like the following: Locate the JAVA_OPTS environment variable that defines memory and uncomment it if it is #commented. In a terminal window enter the following: sudo vi /usr/local/jss/tomcat/bin/catalina.sh Locate and open the /usr/local/jss/tomcat/bin/catalina.sh file with either vim or nano. If you used the Linux JSS Installer for a new installation, I have verified this work flow with JAMFPro versions 9.94 – 9.98.

It’s a little cleaner and easier to find the variables. Note: I prefer changing setenv.sh referenced by catalina.sh. The following steps will walk you through adjusting these settings in the catalina.sh script and/or the senenv.sh script. I encountered that recently and it caused major problems for my end users downloading apps from Self Service.
#Jamf pro variables update
It is important to check memory allocation for the web app after each update as some releases will reset them back to default. Normally you would use the database utility to change these settings, but in a clustered environment you have to change either the catalina.sh or setenv.sh scripts on Linux.

Increasing the memory can significantly improve performance. By default only 1Gb of memory is allocated to Tomcat.

You may want to increase Tomcat memory for clustered JamfPro web apps.
