I have a spring boot application that runs inside tomcat. The problem is, sometimes the memory usage goes out of control and it takes up all available RAM so other applications starts error. Is there any way to set a limit for my spring boot application so that it can not use more than x MB RAM even if the demand is higher than the limit? I have multiple application running inside the same tomcat so I can not set the limit inside tomcat server, instead I need to set it at app level.
Asked
Active
Viewed 16 times
1
-
4Does this answer your question? [Is it possible to limit the memory in Tomcat for a single WAR app?](https://stackoverflow.com/questions/42077879/is-it-possible-to-limit-the-memory-in-tomcat-for-a-single-war-app) – ozkanpakdil Nov 30 '20 at 22:14