Configure to Increase Heap Space

Validation Authority can store millions of certificates in its database. It is recommended to increase the heap space on Validation Authority server, to process the OCSP pre generated proofs from its database and to push thousands of certificates in Validation Authority using the REST APIs. It is recommended to allocate 50% of the RAM to the heap space for better performance.

In this section, we will discuss the procedure to increase the heap space for all the supported Operating System (OS):

  • Increase Heap Space in RHEL OS

  • Increase Heap Space in Windows OS

Note: For demonstration purposes, we increased the heap space to 4096M, however user can increase/decrease the heap space depending on their available RAM and based on the requirements (For example, 1024M, 8192M, etc.)

Increase Heap Space in RHEL OS

To increase the heap space for Validation Authority installed in RHEL, follow the below mentioned steps:

  1. Stop the Validation Authority server.

  2. Go to the directory /<VA-home>/authority/bin, edit the common.sh file, replace the line JAVA_MEM_CONFIG=-Xmx512M with JAVA_MEM_CONFIG=-Xmx4096M

  3. Start the Validation Authority server.

Increase Heap Space in Windows OS

To increase the heap space for Validation Authority installed in Windows, you can follow one of the below steps based on the way you start the Validation Authority process.

  • Increase Heap Space using Command Line

  • Increase Heap Space using Windows Services

Increase Heap Space using Command Line

Follow the below steps using the command line:

  1. Stop the Validation Authority server (Use server.bat stop command, from the <VA-home>\authority\bin directory).

  2. Go to the <VA-home>\authority\bin directory, edit the common.bat file and replace the JAVA_MEM_CONFIG=-Xmx512M with JAVA_MEM_CONFIG=-Xmx4096M

  3. Start the Validation Authority server (Use server.bat start command from the <VA-home>\authority\bin directory).

Increase Heap Space using Windows Services

Follow the below steps in the Windows services:

  1. Stop VA service from the Windows services tab.

  2. Go to the directory <VA-home>\authority\bin, edit the service.bat file, replace the line "%EXECUTABLE%" //US//%SERVICE_NAME% --JvmMx 512 --Startup auto ++JvmOptions –Xrs with the "%EXECUTABLE%" //US//%SERVICE_NAME% --JvmMx 4096 --Startup auto ++JvmOptions –Xrs

  3. Go to: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\ValidationAuthority7.4\Parameters\Java on the Windows registry, update the key JvmMx value to 4096 in decimal.