Changing the Java Heap Size

Checking the Java Heap Memory

Check the Java heap memory settings as follows.

  1. Open the Console.

  2. Enter the following command.

java-heap

You can also check the Java heap memory in the <Java Heap Memories> tab of the <Admin | Servers | Server Properties> menu.

Changing the Java Heap Size on Windows

3RABBITZ_HOME refers to the folder where ManualWorks is installed.

When Registered as a Windows Service

Change the Java heap memory settings as follows.

  1. Open Command Prompt as an administrator.

  2. Go to the 3RABBITZ_HOME\bin folder.

  3. Run the following command.

tomcat9 //US//3Rabbitz --JvmMs 256 --JvmMx 2048
  1. Restart the ManualWorks service.

  2. Check that the Java heap memory settings have changed.

When Not Registered as a Windows Service

Change the Java heap memory settings on Windows as follows.

  1. In File Explorer, go to the 3RABBITZ_HOME/bin folder.

  2. Open the startup.bat file and change the Java heap memory settings in the following section.

...
cd /d "%CURRENT_DIR%"

set TITLE=3Rabbitz
set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx2048m
set JAVA_OPTS=%JAVA_OPTS% -D3rabbitz.home="%RABBITZ_HOME%"
set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8
set JAVA_OPTS=%JAVA_OPTS% -XX:-OmitStackTraceInFastThrow

:gotHome
...
  1. Restart ManualWorks.

  2. Check that the Java heap memory settings have changed.

Changing the Java Heap Size on Linux

3RABBITZ_HOME refers to the directory where ManualWorks is installed.

Change the Java heap memory settings on Linux as follows.

  1. Go to the 3RABBITZ_HOME/bin directory.

  2. Open the startup.sh file and change the Java heap memory settings in the following section.

...
EXECUTABLE=catalina.sh

JAVA_OPTS="$JAVA_OPTS -Xms256m -Xmx2048m"
JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"
JAVA_OPTS="$JAVA_OPTS -Dstdout.encoding=UTF-8 -Dstderr.encoding=UTF-8"
JAVA_OPTS="$JAVA_OPTS -D3rabbitz.home=\"${RABBITZ_HOME}\""
JAVA_OPTS="$JAVA_OPTS -XX:-OmitStackTraceInFastThrow"

export JAVA_OPTS
...
  1. Restart ManualWorks.

  2. Check that the Java heap memory settings have changed.