How to Increase Java Heap Size for GroupWise Calendar Server

  • 7023857
  • 07-May-2019
  • 07-May-2019

Environment

SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server 12

Situation

Java Heap errors showing up in the Calendar Server log file

Slow performance for users

Resolution

On a dedicated GroupWise Calendar Server it is recommended that at least half of the server memory be dedicated to Java.

This can be done by editing the startup file, /opt/novell/groupwise/calsvr/gwcalsvr. There is a GWDAV_CMD variable that contains the java command line.   

The parameters to add are for minimum and maximum amounts of memory.  If you had 8GB of ram then the parameters would be:  -Xms2048m -Xmx4096m.  If you have more or less memory on the box then adjust as needed so the max is set to half of the total ram

Note: Unfortunately, there is not currently any facility for storing JVM command line options in a permanent configuration file.  Please make a note of the changes you make so you can re-add them following an upgrade.

The edited line should look like this:

GWDAV_CMD="${JAVA_BIN} -Xms2048m -Xmx4096m -Djdk.tls.client.protocols=TLSv1.2 -Dlog4j.configurationFile=file:${CALSVR_LOG_CONFIG} -cp ${RUNNER_BASE}/lib/*:${RUNNER_BASE}/davrun.jar com.novell.groupwise.dav.runner.Runner --config ${CALSVR_CONFIG_FILE} --webapps ${WEBAPPS_BASE} --uid ${CALSVR_USER} --gid ${CALSVR_GROUP} "