My organization uses a cloud-hosted version of OpenMRS (RefApp 2.6 distro) for a telemedicine use case. On the user-facing side, we have a custom module and also a mobile client that use the REST API to interact with the OpenMRS server. We've hosted it on Digital Ocean as well as a local VPS provider.
Dimitri @mksd (whose organization also has cloud-hosted deployments) and I were speaking about some common challenges we're facing with hosting openMRS on the cloud, and one thing that was a challenge for both was the excessive amount of RAM that OpenMRS consumes. In my organization's case we need at least 8GB of memory for a small telemedicine clinic deployment that has a total of 10 users but no more than 6 concurrent users at a time.
We're also facing performance issues when we have more than one client making several REST API calls, the server starts to get non-responsive and sluggish.
After about a couple of days, the server's memory consumption becomes very high, it becomes completely non-responsive and the only fix is to physically restart it. As a result, we've had to institute a policy to physically restart the server every day.
I was wondering if anyone else has faced these issues and why they might be.
Tagging my other team members - @dbarretto @prithiraj69 @amalafrozalam