Increasing the memory available to the Java JVM can help eperi sEcure Platform
performance. Try to give your Tomcat server as much memory as you can.
About this task
Note: Where and how the options are configured depends on the installation method and
operating system used. The following procedure assumes that you have installed
the eperi sEcure Platform on Ubuntu or RHEL using the automated installation
package.
Procedure
-
On the command line navigate to the following directory:
/opt/eperi/gateway/tomcat/conf
-
Open the file javaopts in an editor and change the
existing entry as in the following example:
-Xmx8192m -Xms1024m
What the options mean:
- -Xmx sets the maximum amount of memory that can be allocated
to the JVM heap; here it is being set to 8192 megabytes.
- -Xms sets the initial amount of memory allocated to the JVM
heap; here it is being set to 1024 megabytes.
-
Adapt the numbers above according to the memory available on your
machine.
Note: Please take into consideration that the JVM can consume up to 1 GB of non-heap memory in addition to the configured maximum heap size.
-
Save your changes and close the javaopts file.
-
Restart the eperi sEcure Platform:
sudo systemctl restart eperi-gateway
Important: In a cluster setup, the changes must be made on every
eperi sEcure Platform instance and each eperi sEcure Platform instance must be
restarted.
Results
You have successfully configured the memory available to the
Java JVM.