Linux Setenv.sh question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
09-20-2017
08:49 AM
- last edited on
03-04-2025
02:15 AM
by
kh-richa_mig
I began noticing in 9.99.0 and now 9.101.0 that setenv.sh has 2 lines
export CATALINA_OPTS="$CATALINA_OPTS -XX:PermSize=256m -XX:MaxPermSize-256m"
JAVA_OPTS=" -Xmx1024M -XX:MaxPermSize=256M"
Looking at the comment section in the file and the line above though, it seems like this line should read
export JAVA_OPTS=" -Xmx1024M -XX:MaxPermSize=256M"
RHEL 7.4 using the JSS Linux Installer.
@were.wulff or someone else, could you confirm either the top lines are correct or whether the JAVA_OPTS should be changed to the bottom line?
Thanks
- Labels:
-
Jamf Pro

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 09-20-2017 11:31 AM
This is a copy/paste of what we did for RHEL 7, if that helps. This was for 9.99.0.
#! /bin/sh
# Place any and all customizations to your Tomcat instance here.
# Examples:
#
export JAVA_OPTS="$JAVA_OPTS -Xmx5120M -Xms256M -XX:MaxPermSize=512M -Djava.awt.headless=true"
# export CATALINA_OPTS="$CATALINA_OPTS -XX:MaxPermSize=256m"
# export CATALINA_TMPDIR="/tmp"
#
# This file will be backed up and restored on upgrades.
export CATALINA_OPTS="$CATALINA_OPTS -XX:PermSize=256m -XX:MaxPermSize=512m"
