...
The recommended memory allocation for signer depends on the amount of RAM available on the host. In addition, also the type of host (virtual, physical etc.) and usage patterns of the Security Server effect on the most optimal amount of memory. The table below shows general recommendations regarding the amount of memory allocated for the signer component.
RAM on host (GB) | SIGNER_PARAMS value |
---|---|
4 | -Xms50m -Xmx100m |
8 | -Xms50m -Xmx150m |
16 | -Xms50m -Xmx200m |
31 | -Xms50m -Xmx200m |
Info |
---|
The default memory allocation for signer is -Xmx50m. In production environments the allocation should be increased. |
Warning |
---|
Please note that the step-by-step guides differ between X-Road 6 and X-Road 7. Therefore, it's extremely important to choose the right guide. More information about the differences is available here. |
...
Memory allocation for signer can be customized modifying the /etc/xroad/services/local.properties
configuration file.
Info |
---|
Signer's default configuration is stored in |
Open
/etc/xroad/services/local.properties
file for editing and make your changes onXROAD_SIGNER_PARAMS
variable value. For example, configuration of dynamic memory allocation of 50 - 200 MB (heap, max memory 200 MB, min memory 50 MB):Code Block XROAD_SIGNER_PARAMS=-Xms50m -Xmx200m
The size of the metaspace can be adjusted changing the value of
MaxMetaspaceSize
parameter. The value can be increased to 80m (-XX:MaxMetaspaceSize=80m
), if needed.Save the
/etc/xroad/services/local.properties
file after making the required changes.Restart the
xroad-signer
service.Code Block systemctl restart xroad-signer
Step-by-step guide for X-Road 6
Memory allocation for signer can be customized modifying /etc/xroad/services/local.conf
configuration file
Info |
---|
Signer's default configuration is stored in |
Open
/etc/xroad/services/local.conf
file for editing and make your changes onSIGNER_PARAMS
variable value. For example, configuration of dynamic memory allocation of 50 - 200 MB (heap, max memory 200 MB, min memory 50 MB):Code Block SIGNER_PARAMS="$SIGNER_PARAMS -Xms50m -Xmx200m "
The size of the metaspace can be adjusted changing the value of
MaxMetaspaceSize
parameter. The value can be increased to 80m (-XX:MaxMetaspaceSize=80m
), if needed.
Note |
---|
It is extremely important that the parameters defined in |
...
|
...
and therefore, the overriding memory parameters are added to the default |
Save the
/etc/xroad/services/local.conf
file after making the required changes.Restart the
xroad-signer
service.Code Block # Ubuntu service xroad-signer restart # RHEL systemctl restart xroad-signer
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Page Properties | ||
---|---|---|
| ||
|