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
- In Services, stop DigitalHive - node1
- In File Explorer navigate to DigitalHive\app\node1\tomcat\bin
- Right click tomcat9w
- Select Create shortcut
- Drag tomcat9w - Shortcut to your Desktop
- Select Properties
- In Target, append //ES//DigitalHive-node1

- Click OK
- Double click tomcat9w - shortcut
- Click Yes
- Click the Java tab
- 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

- Clik OK
- In Services, start DigitalHive - node1
Digital Hive is now set for an 8GB JVM
Setting the Tomcat Memory in Linux
- Navigate to your DigitalHive home, in this example, cd /home/mk3admin/DigitalHive
- Stop Tomcat by running ./tomcat.sh -stop
- Edit theia.properties, for example, vi /home/mk3admin/DigitalHive/app/node1/tomcat/conf/theia.properties
- Look for the motio.theia.tomcat.jvm.opts property
- 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
- Save :wq
- Start Tomcat by running ./tomcat.sh -start
Digital Hive is now set for an 8GB JVM