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
Increase Heap Space in RHEL OS
To increase the heap space for Validation Authority installed in RHEL, follow the below mentioned steps:
-
Stop the Validation Authority server.
-
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
-
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:
-
Stop the Validation Authority server (Use server.bat stop command, from the <VA-home>\authority\bin directory).
-
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
-
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:
-
Stop VA service from the Windows services tab.
-
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
-
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.