Environment
Novell Open Enterprise Server 2 (OES 2) Linux Support Pack 1
Novell Open Enterprise Server 2 (OES 2) Linux Support Pack 2
Novell Open Enterprise Server 2 (OES 2) Linux Support Pack 3
Novell Open Enterprise Server 11 (OES 11) Linux Support Pack 1Novell Open Enterprise Server 11 (OES 11) Linux Support Pack 2
Open Enterprise Server 2018 (OES 2018) Support Pack 1
Open Enterprise Server 2018 (OES 2018) Support Pack 2
Situation
How to change the Tomcat Java heap size in Open Enterprise Server (OES-Linux)
Certain web applications that run on the OES-Linux server may require an increase the amount of memory available to the Java heap for Tomcat.
Resolution
To change the Tomcat Java Heap size on OES2:
1.) Open /etc/sysconfig/j2ee in a text editor
2.) Locate the Catalina_opts line
3.) add the minimum and maximum heap size parameter as follows: -Xms512m -Xmx1024m (NOTE: These numbers are used as an example the values used on any given server may differ, and should be adjusted to provide the best performance)
4.) Save the j2ee file
5.) Restart tomcat with the 'rcnovell-tomcat5 restart' command
NOTE: The file to modify on OES11 is /etc/opt/novell/tomcat6/conf/novell-tomcat6.conf
and the restart for Tomcat on OES11 is 'rcnovell-tcomat6 restart'
NOTE: The file to modify on OES2018 is /etc/opt/novell/tomcat/conf/novell-tomcat.conf
and the restart for Tomcat on OES2018 is either 'rcnovell-tomcat restart' or 'systemctl restart novell-tomcat.service'
Additional Information
OES11 with Tomcat7 requires this information: /etc/opt/novell/tomcat7/tomcat7.conf
JAVA_OPTS="-Xms256m -Xmx512m -Xss512k" (Note: Adjust the Xms and Xmx settings as needed)
Novell QuickFinder Search uses the tomcat6-32bit program to run. Therefore, the file to modify for OES 11 when you want to change tomcat for QuickFinder is:
/etc/opt/novell/tomcat6-32bit/conf/novell-tomcat6-32bit.conf
To restart the service after changing the file, use rcnovell-tomcat6-32bit restart
NOTE: The default install of OES2015 or OES2015 SP1 still uses the Tomcat settings from OES11, using tomcat6. The normal file to modify is /etc/opt/novell/tomcat6/conf/novell-tomcat6.conf. Only certain specific installs would use tomcat7 instead of tomcat6.