Posted on 09-12-2014 11:39 AM
Hey Guys,
Noticed a few changes with altering memory allocation and pool size with JSS v9 for Linux Distros. Got some helpful notes from our support rep:
Max Pool Size: - /usr/local/jss/tomcat/webapps/ROOT/WEB-INF/xml/DataBase.xml ** note the case as Linux is case sensitive (DataBase)
MySQL Database Connections & MaxPacket Size: - /etc/mysql/my.cnf
To set the Tomcat Memory:
Using “sudo nano” edit this file:
/usr/local/jss/tomcat/bin/catalina.sh or this setting could be in setenv.sh
ps -aef | grep tomcat <-- to show correct allocation
Edit the below section to look like the following, adding in the “JAVA_OPTS=…":
--------------------------------------------------------------------------------------
# LOGGING_MANAGER (Optional) Override Tomcat's logging manager
# Example (all one line)
# LOGGING_MANAGER="-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
#
# $Id: catalina.sh 1498485 2013-07-01 14:37:43Z markt $
# -----------------------------------------------------------------------------
JAVA_OPTS=“ -Xmx3070M -XX:MaxPermSize=256M"
# OS specific support. $var must be set to either true or false.
cygwin=false
--------------------------------------------------------------------------------------
*** As of JSS 9.xx, the JAVA_OPTS line is missing, so we add it in manually, see defect: D-004762
sudo /.jamf.tomcat7 stop
sudo /.mysql restart
sudo .jamf.tomcat7 start
ps -aef | grep tomcat <-- to show correct allocation
Posted on 09-15-2014 09:18 AM
Hi @McLeod][/url,
You may wish to create/use /usr/local/jss/tomcat/bin/setenv.sh instead. This will keep as the JSS is periodically updated. This is also the recommended approach. You can also modify other variables used by the catalina.sh
Example contents:
#!/bin/bash
JAVA_OPTS=" -Xmx3070M -XX:MaxPermSize=256M"
CATALINA_TMPDIR="/local/mnt/temp"
Got this from our rep awhile back. I think it is the current Linux docs as well. Also noted in the RedHat version of catalina.sh
# Do not set the variables in this script. Instead put them into a script # setenv.sh in CATALINA_BASE/bin to keep your customizations separate.
Best regards,