Zoomdata Version

Configuring Zoomdata's Memory Settings

By default, the Zoomdata server is configured to use 8 GB of RAM. You can change this memory allocation by following these steps:

  1. From your terminal, SSH to your Zoomdata Server.
  2. To modify the memory settings for Zoomdata services, you need to edit or create the corresponding .env files in /etc/zoomdata/ . For more information about the .env files, refer to the Configuration Property Files and Their Corresponding Variables article. Perform the following steps:
    vi /etc/zoomdata/ file_name .env
  3. Add or update the following line(s) in the corresponding .env files:
    Do not allocate more than 85% of your total system memory to all services.
    • For Zoomdata Server ( zoomdata.env ):
      JAVA_OPTS="-Xss256k -Xms 20 g -Xmx 20 g"
      This example configures the Zoomdata server to use 20 GB of RAM. You can adjust the number to fit your system's needs. Replace the 20 with the necessary memory allocation for your operating environment.
    • For Spark Proxy ( spark-proxy.env ) :
      JAVA_OPTS="-Xms 1 g -Xmx 8 g"
    • For Custom Connectors:
      JAVA_OPTS="-Xss256k -Xms 768 m -Xmx 3 g"
  4. Save and exit the .env file.
  5. Restart the service for which you have modified the settings:
    For CentOS v6 or Ubuntu v14:
    sudo service service_name restart
    For CentOS v7 or Ubuntu v16:
    sudo systemctl restart service_name
    The service_name will either be 'zoomdata' or 'spark-proxy'.

Wait a few minutes for the service to restart completely, then open a new browser window to log back into Zoomdata.