Increase Absolute Service (Tomcat) Memory/RAM

Version 1

    Details

    PROBLEM
    The performance can be improved by increasing the memory since Tomcat/LiveTime uses a maximum pool of 2GB memory/RAM by default.

    This article will go over the memory increase from 2GB to 4GB RAM.

    Recommended Pre-requisite:

    • Minimum of 6GB memory in the server.
    • Database is stored in a different server.

    ENVIRONMENT
    LiveTime

    RESOLUTION
    Important Note: Do not make maximum memory pool same as server memory. Remember to leave enough memory for the operating system and other resources.

    On Windows:
    [list=1:]
  • Stop LiveTime
  • Rename tomcat7w.exe to HEATsoftwareService.exe in C:\Program Files\LiveTime\Server\bin.
  • Open HEATsoftwareService.exe.
  • Go to Java tab and increase Maximum memory pool value (e.g. Try 4096 which will set to 4GB).
  • Click Okay.
  • Start LiveTime
    [attachment=0:]HEATsoftwareService.JPG[/attachment:]

    On Linux:
    [list=1:]
  • Stop LiveTime.
  • Open/Edit catalina.sh from LiveTime/Server/bin
  • Replace the following line from

    [======CODE======]
    JAVA_OPTS="-server -d64 -XX:MaxPermSize=256m -Xms256m -Xmx2048m -Djava.awt.headless=true -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=0 -XX:CMSIncrementalDutyCycle=10 -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled -XX:MaxGCPauseMillis=250 -XX:MaxGCMinorPauseMillis=100"
    [======ENDCODE======]

    to

    [======CODE======]
    JAVA_OPTS="-server -d64 -XX:MaxPermSize=256m -Xms256m -Xmx4096m -Djava.awt.headless=true -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=0 -XX:CMSIncrementalDutyCycle=10 -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled -XX:MaxGCPauseMillis=250 -XX:MaxGCMinorPauseMillis=100"
    [======ENDCODE======]

  • Save and Close.
  • Start LiveTime.