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