There are a number of typical JVM settings that you can use in your repository configuration. The standard JVM settings are as follows:
-Xms1G -Xmx2G -Dcom.sun.management.jmxremote
Tune the JVM using the following steps:
- Use as much RAM as possible for the JVM (-Xmx32GB).
- Do not add any other configuration settings.
To avoid memory swapping, -Xmx should never exceed the available RAM in the system. Remember to leave room for memory used by the operating system and other applications, like LibreOffice using JOD (JOD often uses 1 GB of RAM per OO instance).
In general, if you don’t give the JVM enough heap, adjusting the other JVM settings won’t make any difference. Once the JVM has enough heap, you shouldn’t need to change the other JVM settings.
CAUTION: The remaining information on this page might help in
exceptional circumstances only. It’s unlikely to apply to your use case, and we
advise against JVM tuning beyond what’s already been discussed here.**