Configuring Web App Memory Using the System Command Line

Jamf Pro Installation and Configuration Guide for Linux 11.16.0

Solution
Application
Content Type
Technical Documentation
Utilities & Services
version
11.16.0
ft:locale
en-US
vrm_version
11.16.0
  1. 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
  2. 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.sh file in the following location: /usr/local/jss/tomcat/bin/

  3. Append a custom JAVA_OPTS environment variable to the bottom of the setenv.sh file 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.

  4. Save and close the file by pressing Control-O, and then Control-X.
  5. 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