- If you used the Jamf Pro Installer to install Jamf Pro, create a backup copy of the file that contains the Tomcat memory settings by executing the following command using the Linux command prompt:
sudo cp /usr/local/jss/tomcat/bin/setenv.sh /usr/local/jss/tomcat/bin/setenv_backup.sh - Open the file that contains the Tomcat memory settings.
- If you used the Jamf Pro Installer to install Jamf Pro, execute:
sudo nano /usr/local/jss/tomcat/bin/setenv.sh If you did not use the Jamf Pro Installer to install Jamf Pro, create the
setenv.shfile in the following location:/usr/local/jss/tomcat/bin/
- Append a custom
JAVA_OPTSenvironment variable to the bottom of thesetenv.shfile to configure the amount of memory allocated to the web app. For example, to allocate 1 GB of RAM, the variable should look something like this:JAVA_OPTS=" -Xmx1024M"Note:Custom settings will persist after performing an upgrade.
- Save and close the file by pressing Control-O, and then Control-X.
- Restart Tomcat. The changes will take effect after Tomcat restarts. For instructions on how to restart Tomcat, see the following article: Starting and Stopping Tomcat