What is the safe way to handle long tomcat connections?

37 Views Asked by At

I have a java spring boot microservice, managed in k8s cluster. The application is just a webmvc app (java, tomcat, spring boot, old but gold RestTemplate), that collects required dats abd sends request to another microservice.

There is a problem - the target microservice can suddenly response slowly (several minutes), that causes heap to grow up to limits and lasts with OOM.

Are there any recommendations for such cases? What jvm / app settings can i tune to make app durable to leaks?

0

There are 0 best solutions below