One of our servers has been failing with the Heap space error. The openmrs app is running inside a docker container. The server is 8Gb and I see the heap size inside the openmrs app container is 1.69GB. Is there a way to increase the heap size?
An easier approach with Docker is to set the environment variable _JAVA_OPTIONS to something like -Xmx4G -Xms4G within the container. For example, a line like this in a docker-compose.yml: