Configuring the JVM is an important step of a project. Here we discuss the mandatory and preferred JVM options to get the best performance out of Atoti Server.Documentation Index
Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
Use this file to discover all available pages before exploring further.
Memory Allocation
Configuring how much memory is allocated to your application is usually necessary. You can control it through these options:Garbage Collection
Recommended configuration
A poorly-configured garbage collector can make a significant dent in your application’s performance and uptime. We recommend using these options:Fine-tuning
Here we provide important options that are known to affect the performance of Atoti Server with the G1GC. Only try them if you experience issues with Garbage Collection, and have found out after analyzing the logs that they indeed can help with the issues you are having. The values to set up need to be tuned for your application:-XX:G1NewSizePercent=xx -XX:G1MaxNewSizePercent=xxenables to change the percentage of the heap to use for the young generation. You may want to increase this percentage when using very large machines with terabytes of RAM, since a heavy use of off-heap enables the old generation not to host a lot of data.-XX:InitiatingHeapOccupancyPercent=xenables to change the heap occupancy threshold that triggers concurrent garbage collection cycles. You may want to decrease this value in order not to wait up until the last minute on very large machines.