Table of Contents
To increase the maximum amount of memory Java and this Entitystream Custodian is permitted to use the following steps must be taken on the server in your startup scripts, please be careful not to expose too much memory or more memory than is physically available at the time of startup.
Docker
If you are using a docker-compose.yml file to install your custodian instance
custodian: image: entitystream/custodian:snapshot entrypoint: java -Xmx4G -jar /entitystream/EntityStream-thorntail.jar container_name: custy hostname: hostname restart: always ports: - "80:80" volumes: - /root/entitystream/:/root/EntityStream
Add the -Xmx4G to represent 4GB of Memory, -Xmx8G for 8GB, etc.
If you start docker from a docker run command
docker run --entrypoint "java -Xmx4G -jar /entitystream/EntityStream-thorntail.jar" custodian
Windows/Unix command line
If you start custodian from a command line or script in windows or *nix, then you should append the port directive to the java command:
java -Xmx4G -jar /usr/local/EntityStream-thorntail.jar