idle instance OpenMRS

So I don’t know your setup, but I’m going to be giving generic instructions to keep Java/JVM software in production.

First, I assume you are running docker on linux. If that’s not the case, that’s your problem right there.

Second, you need to check exactly what’s the JVM heap configuration looks like. If you don’t set, the default is usually not great. Make sure you know the minimum and maximum configured. Most of the java ‘performance’ problems is actually garbage collection problems.

I do expect that your CPU to be spiking on exactly one core when it ‘freezes’. If you are willing, you can hook up a lot of different observability tools to get a little bit more insight, but you need to know the basics first.