Configure Memory Settings
Unified service memory configuration recommendations can help you avoid out of memory issues, unpredictable service stability, and memory allocation. We strongly recommend you use the new default for Java: Xms=Xmx. These updated default memory allocations are designed configure your services more effectively for a production load after installation or upgrade.
If you’re upgrading your environment:
Review your data source connector usage; stop unused connectors.
Review your memory settings based on the chart below.
7.x / 23.1 Xms/Xmx | 23.2 Xms/Xmx | |
---|---|---|
Admin Server | 512M/1024M | Deprecated |
Config Server | 512M/1024M | Deprecated |
Data Writer | 128M/256M | 512M/512M |
EDC * | 128M/512M | 512M/512M |
EDC hdfs/s3 | 512M/3584M | 1500M/1500M |
Query Engine | 1G/6G | 4G/4G |
Screenshot Service | 128M/1G | 750M/750M |
Zoomdata Web | 1G/2G | 4G/4G |
Change memory allocation settings for Composer microservices
From your terminal, SSH to your Composer server.
-
To modify the memory settings for Composer microservices, you need to edit or create the corresponding
.jvm
files in/etc/zoomdata/
. Perform the following steps:vi/etc/zoomdata/<component_name>.jvm
For complete information on editing configuration files, see Edit a Composer Configuration File.
-
Add or update the following line(s) in the corresponding
.jvm
files.Important: Do not allocate more than 85% of your total system memory to all microservices.The following example configures the Composer server to use 20 GB of RAM in the
zoomdata.jvm
configuration file. You can adjust the number to fit your system's needs. Replace the 20 with the necessary memory allocation for your operating environment.-Xms20g
-Xmx20g -
Save and exit the
.jvm
file. -
Restart the microservice for which you have modified the settings:
For CentOS 7 and Ubuntu 18, 20, or 22:
sudo systemctl restart <service-name>
Wait a few minutes for the microservice to restart completely, then open a new browser window to log back into Composer.
Comments
0 comments
Please sign in to leave a comment.