Java Reliability Recipes

Java at peak runs into four limits: heap size against the container, GC pauses, the Tomcat thread pool and the HikariCP pool. I'd fix the heap first, because the JVM's default heap uses a quarter of the container's memory. Start with Fix Java Heap Space OOM in Kubernetes Containers.