Setting the Memory Used by Digital Hive

Setting the Memory Used by Digital Hive

Question

How do you set the amount of memory that Digital Hive uses?

Answer

If you have lots of available memory on the Digital Hive server you will want to increase the Tomcat JVM.

Setting the Tomcat Memory in Windows

  1. In Services, stop DigitalHive - node1
  2. In File Explorer navigate to DigitalHive\app\node1\tomcat\bin
  3. Right click tomcat9w
  4. Select Create shortcut
  5. Drag tomcat9w - Shortcut to your Desktop
  6. Select Properties
  7. In Target, append   //ES//DigitalHive-node1
  8. Click OK
  9. Double click tomcat9w - shortcut
  10. Click Yes
  11. Click the Java tab
  12. Set Initial memory pool and Maximum memory pool to the size you want, for example, if you want to increase to 8 GB, then set them to 8192
  13. Clik OK
  14. In Services, start DigitalHive - node1
Digital Hive is now set for an 8GB JVM

Setting the Tomcat Memory in Linux

  1. Navigate to your DigitalHive home, in this example, cd /home/mk3admin/DigitalHive
  2. Stop Tomcat by running ./tomcat.sh -stop
  3. Edit theia.properties, for example, vi /home/mk3admin/DigitalHive/app/node1/tomcat/conf/theia.properties
  4. Look for the motio.theia.tomcat.jvm.opts property
  5. Change the Xms and Xmx to the size you want, for example, if you want to set the JVM to 8 GB, then set them to -Xms8192m -Xmx8192m
  6. Save :wq
  7. Start Tomcat by running ./tomcat.sh -start
Digital Hive is now set for an 8GB JVM


    • Related Articles

    • Setting the Memory Used by Elasticsearch

      Question Can I increase the JVM for Elasticsearch? Answer Yes, it is possible to adjust the Elasticsearch JVM size. By default, Digital Hive sets the Elasticsearch JVM to 500 MB for each node and this is sufficient for most environments. If your ...
    • Digital Hive Designer Elements Used for Authoring Hives

      Overview Digital Hive provides a very robust, zero code, authoring experience that enables authors to create visually stunning and impactful end user applications, called Hives. As part of the authoring process, there are different elements that can ...
    • Unable to Explore Digital Hive Content

      Question When using the Explore Content interface to browse the Digital Hive content, a message stating "Something went wrong" and a Try Again button is displayed How do I resolve this? Answer This issue is usually a result of Elasticsearch being ...
    • Backing up the Digital Hive Content Store

      Question Is there a way to backup the Digital Hive content store? Answer Digital Hive uses PostgreSQL as the application content store. As part of the Digital Hive platform, a daily process executes that creates an archive of the entire content ...
    • Digital Hive Architecture Overview

      Overview Digital Hive is a lightweight, web-based application that is both easy to install as well as to maintain and manage. Other than the Microsoft C++ redistributable (https://www.microsoft.com/en-ca/download/details.aspx?id=40784), there are no ...