Is it possible to limit the memory in Tomcat for a single WAR app?

前端 未结 1 1939
一向
一向 2021-01-28 13:45

I have a vaadin app where if I don\'t limit the RAM, the WAR will run it up to 2.5+gb in Tomcat but if I limit it to 1gb in eclipse using this the program will stay steady aroun

相关标签:
1条回答
  • 2021-01-28 14:20

    Eclipse runs each program in a separate JVM.

    A Tomcat instance runs inside of a JVM, and so will all web apps deployed in it. You could start a second Tomcat instance (and thus a second JVM) and set the specific memory constraints for each JVM

    0 讨论(0)
提交回复
热议问题