|
To assign more memory to the Java virtual machine on Windows systems, it is necessary to change the wrapper.java.maxmemory
parameter in the wrapper.conf
file, which resides in the PowerFolder Server installation directory.
# Maximum Java Heap Size (in MB) wrapper.java.maxmemory=2048 |
The wrapper.java.maxmemory
parameter shown above sets the maximum amount of physical memory available to the JVM. Below there is a list of examples how to scale the -Xmx
parameter.
Examples:
Physical Memory | Suggested Settings |
---|---|
1 GB | -Xmx=512m Please also set (decrease) the -Xms parameter to 128m. |
2 GB | -Xmx1g |
4 GB | -Xmx2g |
6 GB | -Xmx4g |
8 GB | -Xmx6g |
... | ... |
Please note that the above values are just recommendations. You may need to fine tune them if PowerFolder runs out of memory (increase the values) or doesn't start (decrease the values), because there is not enough free memory left.
To assign more memory to the Java virtual machine on Linux systems, it is necessary to change the -Xmx
parameter in the PowerFolder-Server.sh
startup script. The script will automatically detect if it's running on a 32-bit or 64-bit during run time and will then start the Java virtual machine with different values for the memory configuration. The PowerFolder-Server.sh script can be found in the installation directory of PowerFolder Server. It includes the defaults below:
JAVA_MEM="-Xms256m -Xmx1g -XX:NewRatio=8 -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20" |
JAVA_MEM="-Xms256m -Xmx3g -XX:NewRatio=8 -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20" |
The -Xmx
parameter shown above sets the maximum amount of physical memory available to the JVM. Below there is a list of examples how to scale the -Xmx
parameter.
Examples:
Physical Memory | Suggested Settings |
---|---|
1 GB | -Xmx=512m Please also set (decrease) the -Xms parameter to 128m. |
2 GB | -Xmx1g |
4 GB | -Xmx2g |
6 GB | -Xmx4g |
8 GB | -Xmx6g |
... | ... |
Please note that the above values are just recommendations. You may need to fine tune them if PowerFolder runs out of memory (increase the values) or doesn't start (decrease the values), because there is not enough free memory left.
As mentioned before the
In that case please adjust the -Xmx parameter to match your amount of free memory plus some spare memory to be safe. |
For the configuration and increase of the memory under macOS, PowerFolder should run as a application
After the PowerFolder running as a application please follow the following steps for the increase in the memory only if needed:
<string>-Xmx1g</string> |